ALSA: hda - Fix the pin nid assignment in patch_hdmi.c
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Jun 2012 07:19:32 +0000 (09:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Jun 2012 07:21:45 +0000 (09:21 +0200)
This fixes the regression introduced by the commit d0b1252d for
refactoring simple_hdmi*().  The pin NID wasn't assigned correctly.

Reported-by: Annie Liu <annieliu@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c

index 8891fa658382cff491aaba57188e19388570cdc8..72a3b26736aee6842b6e99525624eb1060c3ac53 100644 (file)
@@ -1607,7 +1607,7 @@ static int patch_simple_hdmi(struct hda_codec *codec,
        spec->num_cvts = 1;
        spec->num_pins = 1;
        spec->cvts[0].cvt_nid = cvt_nid;
-       spec->cvts[0].cvt_nid = pin_nid;
+       spec->pins[0].pin_nid = pin_nid;
        spec->pcm_playback = simple_pcm_playback;
 
        codec->patch_ops = simple_hdmi_patch_ops;