mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-06 12:36:39 +07:00
OMAPDSS: hdmi: Make hdmi_mode_has_audio() more user friedly
Make hdmi_mode_has_audio() more user friedly by taking hdmi_config as parameter. Signed-off-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
4284c35f5d
commit
5a8bf632fb
@ -331,9 +331,9 @@ void hdmi_wp_audio_config_format(struct hdmi_wp_data *wp,
|
||||
struct hdmi_audio_format *aud_fmt);
|
||||
void hdmi_wp_audio_config_dma(struct hdmi_wp_data *wp,
|
||||
struct hdmi_audio_dma *aud_dma);
|
||||
static inline bool hdmi_mode_has_audio(int mode)
|
||||
static inline bool hdmi_mode_has_audio(struct hdmi_config *cfg)
|
||||
{
|
||||
return mode == HDMI_HDMI ? true : false;
|
||||
return cfg->hdmi_dvi_mode == HDMI_HDMI ? true : false;
|
||||
}
|
||||
|
||||
/* HDMI DRV data */
|
||||
|
Loading…
Reference in New Issue
Block a user