ASoC: hdmi-codec: Fix "ELD Bypass Switch"

CA info should be ignored in the ELD Bypass Situation.

Fixes: c6c61f8679 ("ASoC: hdmi-codec: Add option for ELD bypass")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I02265570ebcf4d17558b604644dcf5e9425f06cb
This commit is contained in:
Sugar Zhang 2023-04-04 09:38:08 +08:00 committed by Tao Huang
parent 44484c9fcf
commit eff4833be1

View File

@ -352,6 +352,9 @@ static int hdmi_codec_get_ch_alloc_table_idx(struct hdmi_codec_priv *hcp,
unsigned long spk_mask;
const struct hdmi_codec_cea_spk_alloc *cap = hdmi_codec_channel_alloc;
if (hcp->eld_bypass)
return 0;
spk_alloc = drm_eld_get_spk_alloc(hcp->eld);
spk_mask = hdmi_codec_spk_mask_from_alloc(spk_alloc);