]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - sound/pci/hda/patch_hdmi.c
ALSA: hda - Remove limit of widget connections
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Feb 2013 17:18:19 +0000 (18:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Feb 2013 19:01:08 +0000 (20:01 +0100)
commit4eea30914facd2c99061cd70e5b05d3c76c743a2
treeb65f4322f33b80f20211962fe337d4eb2b50b630
parentc1279f8787f9cddd2f4a7d6abc15375b30b80501
ALSA: hda - Remove limit of widget connections

Currently we set the max number of connections to be 32, but there
seems codec that gives longer connection lists like AD1988, and we see
errors in proc output and else.  (Though, in the case of AD1988, it's
a list of all codecs connected to a single vendor widget, so this must
be something fishy, but it's still valid from the h/w design POV.)

This patch tries to remove this restriction.  For efficiency, we still
use the fixed size array in the parser, but takes a dynamic array when
the size is reported to be greater than that.

Now the fixed array size is found only in patch_hdmi.c, but it should
be fine, as the codec itself can't support so many pins.

Reported-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_proc.c
sound/pci/hda/patch_hdmi.c