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)
commit23c18d4bfd73ee24070849faf98b3ab01263a3c4
tree944e0e24bd847fdbbddd8baf5ab0976c0fdcfa81
parent92b7952da8279189aad352efbf9f2e7001de9524
ALSA: control: Provide a helper to look for the preferred subdevice

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