ALSA: control: Provide a helper to look for the preferred subdevice
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Feb 2014 13:30:29 +0000 (14:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2015 13:21:21 +0000 (14:21 +0100)
Instead of open-coding the search over the control file loop, provide
a helper function for the preferred subdevice assigned to the current
process.

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

Simple merge
Simple merge
Simple merge
Simple merge