kernel-fxtec-pro1x/sound
Pawel MOLL 9423969005 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. The same limit was present in OSS emulation code. It has
been fixed as well.

Additionally the device field of struct snd_pcm is now int, instead of
unsigned int, as there is no obvious reason for keeping it unsigned.
This caused a lot of problems with comparing this value with other
(almost always signed) variables. There is just one more place where
device number is unsigned - in struct snd_pcm_info, which should be
also sorted out in future.

Signed-off-by: Pawel MOLL <pawel.moll@st.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-07-29 21:32:48 +02:00
..
aoa sound: Convert to menuconfig 2008-05-27 15:56:20 +02:00
arm [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
core ALSA: Fix limit of 8 PCM devices in SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE 2008-07-29 21:32:48 +02:00
drivers Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 2008-07-14 15:51:11 -07:00
i2c V4L/DVB (8523): v4l2-dev: remove unused type and type2 field from video_device 2008-07-27 11:07:10 -03:00
isa ALSA: cs4232: fix crash during chip PNP detection 2008-07-27 10:22:27 +02:00
mips removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
oss [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
parisc sound: Convert to menuconfig 2008-05-27 15:56:20 +02:00
pci ALSA: hda - use input_free_device() 2008-07-29 21:32:08 +02:00
pcmcia ALSA: Fix a const to non-const assignment in the Digigram VXpocket sound driver 2008-07-10 09:32:57 +02:00
ppc ALSA: snd-powermac: HP detection for 1st iMac G3 SL 2008-10-02 12:50:37 +02:00
sh sh: migrate to arch/sh/include/ 2008-07-29 08:09:44 +09:00
soc ALSA: ASoC: convert use of uint to unsigned int 2008-07-29 21:32:29 +02:00
sparc ALSA: make sparc/dbri.c:snd_dbri_proc() static 2008-06-06 11:55:05 +02:00
spi sound: Convert to menuconfig 2008-05-27 15:56:20 +02:00
synth
usb ALSA: usb-audio: add BOSS GT-10 support 2008-07-28 10:19:39 +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 device create: sound: convert device_create to device_create_drvdata 2008-07-21 21:54:44 -07:00
sound_firmware.c