summaryrefslogtreecommitdiffstats
path: root/sound/pci/ice1712
diff options
context:
space:
mode:
authorPawel MOLL <pawel.moll@st.com>2008-07-30 13:46:40 +0200
committerJaroslav Kysela <perex@perex.cz>2008-08-01 13:37:15 +0200
commitf90c06a2b613eea24a77d56f24b084745c43713d (patch)
tree9a205486e526c9f5b696db96633e1a7ff7833a7c /sound/pci/ice1712
parentALSA: Add USB US122L driver (diff)
downloadlinux-f90c06a2b613eea24a77d56f24b084745c43713d.tar.xz
linux-f90c06a2b613eea24a77d56f24b084745c43713d.zip
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>
Diffstat (limited to 'sound/pci/ice1712')
0 files changed, 0 insertions, 0 deletions