ALSA: hda - Supports more audio streams
authorTakashi Iwai <tiwai@suse.de>
Thu, 24 Nov 2011 13:31:46 +0000 (14:31 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 26 Nov 2011 09:19:44 +0000 (10:19 +0100)
commit01b65bfb4f8cd45b0d44547c961ef59a0bcf74be
treeb297e5611802e0734a263718f59434d3e436e6c9
parentb37c0096b448d099d304bb47c4eada9117dba4cf
ALSA: hda - Supports more audio streams

So far, the driver supports up to 10 streams.  This is a restriction in
hda_intel.c and hda_codec.c: in the former, the fixed array size limits
the amount, and in the latter, the fixed device-number assignment table
(in get_empty_pcm_device()) limits the possibility.

This patch reduces the restriction by
- using linked list for managing PCM instances in hda_intel.c, and
- assigning non-fixed device numbers for the extra devices

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_intel.c