summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-06-15 14:40:21 +0200
committerTakashi Iwai <tiwai@suse.de>2012-06-15 14:42:06 +0200
commit250e41ac9f31216db1b592bfd77c6a097f10503d (patch)
tree7c42fdf077c5b104cc3b6fce7eaadc6ca85dae25 /sound/pci/hda
parentceaa86ba2ed90780617be76526de975521374595 (diff)
downloadop-kernel-dev-250e41ac9f31216db1b592bfd77c6a097f10503d.zip
op-kernel-dev-250e41ac9f31216db1b592bfd77c6a097f10503d.tar.gz
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/hda')
-rw-r--r--sound/pci/hda/patch_hdmi.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index f51a0b5..8891fa6 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)
spec->cvts[i].cvt_nid);
if (err < 0)
return err;
- if (codec->patch_ops.unsol_event) {
- err = simple_hdmi_build_jack(codec, i);
- if (err < 0)
- return err;
- }
+ err = simple_hdmi_build_jack(codec, i);
+ if (err < 0)
+ return err;
}
return 0;
@@ -1589,6 +1587,7 @@ static const struct hda_codec_ops simple_hdmi_patch_ops = {
.build_pcms = simple_playback_build_pcms,
.init = simple_playback_init,
.free = simple_playback_free,
+ .unsol_event = simple_hdmi_unsol_event,
};
static int patch_simple_hdmi(struct hda_codec *codec,
@@ -1875,11 +1874,7 @@ static int patch_atihdmi(struct hda_codec *codec)
static int patch_via_hdmi(struct hda_codec *codec)
{
- int err = patch_simple_hdmi(codec, VIAHDMI_CVT_NID, VIAHDMI_PIN_NID);
- if (err < 0)
- return err;
- codec->patch_ops.unsol_event = simple_hdmi_unsol_event;
- return 0;
+ return patch_simple_hdmi(codec, VIAHDMI_CVT_NID, VIAHDMI_PIN_NID);
}
/*
OpenPOWER on IntegriCloud