ALSA: HDA: Fix duplicated output to more than one codec
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 1 Feb 2012 11:05:41 +0000 (12:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 19:16:51 +0000 (11:16 -0800)
commitb23a6ba81e42ad2d95afc04840d08b558092ba24
tree072f7bbcf50207d920f6e17f8369af858fd4de05
parentcb935a3a4ffa533491976365aa430ad9d586718f
ALSA: HDA: Fix duplicated output to more than one codec

commit 54c2a89f60fd71b924d0f848ac892442951401a6 upstream.

This typo caused the wrong codec's nid to be checked for wcaps type.
As a result, sometimes speakers would duplicate the output sent to
HDMI output.

BugLink: https://bugs.launchpad.net/bugs/924320
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_codec.c