Skip to content

Commit 5eb8a0d

Browse files
terry182broonie
authored andcommitted
ASoC: hdmi-codec: use SND_JACK_AVOUT as jack status
Use SND_JACK_AVOUT as the mask to align with hdac_hdmi driver so that we can determine HDMI/DP devices from event type. Most drivers that uses hdmi-codec driver will not be affected since they are creating jacks with SND_JACK_LINEOUT mask. They will still report SND_JACK_LINEOUT when the jack status is updated with snd_soc_jack_report. Signed-off-by: Terry Cheong <htcheong@chromium.org> Link: https://patch.msgid.link/20250613-hdmi-v1-1-665ba7ecd5e7@chromium.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent dae29b6 commit 5eb8a0d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sound/soc/codecs/hdmi-codec.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ static void hdmi_codec_jack_report(struct hdmi_codec_priv *hcp,
943943
{
944944
if (jack_status != hcp->jack_status) {
945945
if (hcp->jack)
946-
snd_soc_jack_report(hcp->jack, jack_status, SND_JACK_LINEOUT);
946+
snd_soc_jack_report(hcp->jack, jack_status, SND_JACK_AVOUT);
947947
hcp->jack_status = jack_status;
948948
}
949949
}
@@ -964,7 +964,7 @@ static void plugged_cb(struct device *dev, bool plugged)
964964
else
965965
snd_show_eld(dev, &hcp->eld_parsed);
966966
}
967-
hdmi_codec_jack_report(hcp, SND_JACK_LINEOUT);
967+
hdmi_codec_jack_report(hcp, SND_JACK_AVOUT);
968968
} else {
969969
hdmi_codec_jack_report(hcp, 0);
970970
memset(hcp->eld, 0, sizeof(hcp->eld));
@@ -984,7 +984,7 @@ static int hdmi_codec_set_jack(struct snd_soc_component *component,
984984
* Report the initial jack status which may have been provided
985985
* by the parent hdmi driver while the hpd hook was registered.
986986
*/
987-
snd_soc_jack_report(jack, hcp->jack_status, SND_JACK_LINEOUT);
987+
snd_soc_jack_report(jack, hcp->jack_status, SND_JACK_AVOUT);
988988

989989
return 0;
990990
}

0 commit comments

Comments
 (0)