linux/sound
Pawel MOLL f90c06a2b6 ALSA: Fix limit of 8 PCM devices in SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE
When compiled with CONFIG_SND_DYNAMIC_MINORS the ALSA core is fine
to have more than 8 PCM devices per card, except one place - the
SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE ioctl, which will not enumerate
devices > 7. This patch fixes the issue, changing the devices list
organisation.

Instead of adding new device to the tail, the list is now kept always
ordered (by card number, then device number). Thus, during enumeration,
it is easy to discover the fact that there is no more given card's
devices.

Additionally the device field of struct snd_pcm had to be changed to int,
as its "unsignednity" caused a lot of problems when comparing it to
potentially negative signed values. (-1 is 0xffffffff or even more then ;-)

Signed-off-by: Pawel Moll <pawel.moll@st.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-08-01 13:37:15 +02:00
..
aoa
arm
core ALSA: Fix limit of 8 PCM devices in SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE 2008-08-01 13:37:15 +02:00
drivers
i2c
isa
mips removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
oss
parisc
pci ALSA: hda - use input_free_device() 2008-07-29 21:32:08 +02:00
pcmcia
ppc ALSA: snd-powermac: HP detection for 1st iMac G3 SL 2008-10-02 12:50:37 +02:00
sh
soc ALSA: ASoC: convert use of uint to unsigned int 2008-07-29 21:32:29 +02:00
sparc
spi
synth
usb ALSA: Add USB US122L driver 2008-08-01 13:37:12 +02:00
ac97_bus.c
Kconfig Fix CONFIG_AC97_BUS dependency 2008-09-06 11:43:41 +02:00
last.c
Makefile
sound_core.c
sound_firmware.c