]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] Fix substream selection in PCM and rawmidi
authorTakashi Iwai <tiwai@suse.de>
Fri, 4 Aug 2006 10:57:19 +0000 (12:57 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:39:59 +0000 (10:39 +0200)
commite66dc6f3ce636434af911d433af8d55c6d5a090e
treefc19403b51f9a8c3d080fac7acd50c3a95cb652c
parenta662b2e1e96d87556423ccba05c9bfb6c75476f4
[ALSA] Fix substream selection in PCM and rawmidi

The PCM and rawmidi substreams can be selected explicitly by opening
control handle and set via *_PREFER_SUBDEVICE ioctl.  But, when
multiple controls are opened, the driver gets confused.
The patch fixes the initialization of prefer_*_subdevice and the
check of multiple controls.  The first set subdevice is picked up
as the valid one.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/core/control.c
sound/core/pcm.c
sound/core/rawmidi.c