linux-stable-rt/sound/core
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
..
oss sound: Revert "ALSA: Fix limit of 8 PCM devices in SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE" 2008-08-01 13:36:04 +02:00
seq
Kconfig ALSA: Build jack detection 2008-07-29 21:32:06 +02:00
Makefile ALSA: Build jack detection 2008-07-29 21:32:06 +02:00
control.c
control_compat.c
device.c
hwdep.c
hwdep_compat.c
info.c
info_oss.c
init.c
isadma.c
jack.c ALSA: Add jack reporting API 2008-07-29 21:32:03 +02:00
memalloc.c
memory.c
misc.c
pcm.c ALSA: Fix limit of 8 PCM devices in SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE 2008-08-01 13:37:15 +02:00
pcm_compat.c
pcm_lib.c
pcm_memory.c
pcm_misc.c
pcm_native.c ALSA: remove unneeded power_mutex lock in snd_pcm_drop 2008-09-25 17:52:07 +02:00
pcm_timer.c
rawmidi.c ALSA: fix locking in snd_pcm_open*() and snd_rawmidi_open*() 2008-09-25 14:51:03 +02:00
rawmidi_compat.c
rtctimer.c
sgbuf.c
sound.c ALSA: Fix limit of 8 PCM devices in SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE 2008-08-01 13:37:15 +02:00
sound_oss.c
timer.c
timer_compat.c
vmaster.c