From: Takashi Iwai Date: Wed, 20 Jun 2012 07:19:32 +0000 (+0200) Subject: ALSA: hda - Fix the pin nid assignment in patch_hdmi.c X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=21cd683d318041c63876b4acbebb3f6d9d80597b;p=~shefty%2Frdma-dev.git ALSA: hda - Fix the pin nid assignment in patch_hdmi.c This fixes the regression introduced by the commit d0b1252d for refactoring simple_hdmi*(). The pin NID wasn't assigned correctly. Reported-by: Annie Liu Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 8891fa65838..72a3b26736a 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -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;