diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-06-15 08:40:21 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-06-15 08:42:06 -0400 |
commit | 250e41ac9f31216db1b592bfd77c6a097f10503d (patch) | |
tree | 7c42fdf077c5b104cc3b6fce7eaadc6ca85dae25 /sound/pci | |
parent | ceaa86ba2ed90780617be76526de975521374595 (diff) |
ALSA: hda - Enable unsol event for ATI and Nvidia HDMI codecs too
ATI and Nvidia HDMI codecs have also the pin-detection capability,
so let's enable the jack-detecion for them, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index f51a0b5bfcb2..8891fa658382 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -1401,11 +1401,9 @@ static int simple_playback_build_controls(struct hda_codec *codec) | |||
1401 | spec->cvts[i].cvt_nid); | 1401 | spec->cvts[i].cvt_nid); |
1402 | if (err < 0) | 1402 | if (err < 0) |
1403 | return err; | 1403 | return err; |
1404 | if (codec->patch_ops.unsol_event) { | 1404 | err = simple_hdmi_build_jack(codec, i); |
1405 | err = simple_hdmi_build_jack(codec, i); | 1405 | if (err < 0) |
1406 | if (err < 0) | 1406 | return err; |
1407 | return err; | ||
1408 | } | ||
1409 | } | 1407 | } |
1410 | 1408 | ||
1411 | return 0; | 1409 | return 0; |
@@ -1589,6 +1587,7 @@ static const struct hda_codec_ops simple_hdmi_patch_ops = { | |||
1589 | .build_pcms = simple_playback_build_pcms, | 1587 | .build_pcms = simple_playback_build_pcms, |
1590 | .init = simple_playback_init, | 1588 | .init = simple_playback_init, |
1591 | .free = simple_playback_free, | 1589 | .free = simple_playback_free, |
1590 | .unsol_event = simple_hdmi_unsol_event, | ||
1592 | }; | 1591 | }; |
1593 | 1592 | ||
1594 | static int patch_simple_hdmi(struct hda_codec *codec, | 1593 | static int patch_simple_hdmi(struct hda_codec *codec, |
@@ -1875,11 +1874,7 @@ static int patch_atihdmi(struct hda_codec *codec) | |||
1875 | 1874 | ||
1876 | static int patch_via_hdmi(struct hda_codec *codec) | 1875 | static int patch_via_hdmi(struct hda_codec *codec) |
1877 | { | 1876 | { |
1878 | int err = patch_simple_hdmi(codec, VIAHDMI_CVT_NID, VIAHDMI_PIN_NID); | 1877 | return patch_simple_hdmi(codec, VIAHDMI_CVT_NID, VIAHDMI_PIN_NID); |
1879 | if (err < 0) | ||
1880 | return err; | ||
1881 | codec->patch_ops.unsol_event = simple_hdmi_unsol_event; | ||
1882 | return 0; | ||
1883 | } | 1878 | } |
1884 | 1879 | ||
1885 | /* | 1880 | /* |