]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: asihpi: add format support check in snd_card_asihpi_capture_formats
authorEldad Zack <eldad@fogrefinery.com>
Mon, 22 Apr 2013 23:00:42 +0000 (01:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Apr 2013 11:37:33 +0000 (13:37 +0200)
commita0fa859fb3d0594c465e8cdd55460cc8120d6f5f
treed0e3ffee2a3094769459863ac84acc3f84bd955e
parent42f5a82c83e7f5d589b13f48553e0a3dbe8a19c2
ALSA: asihpi: add format support check in snd_card_asihpi_capture_formats

Some Asihpi formats are not supported or invalid, and their mapping to
ALSA format is set to -1.
Before performing the format conversion into ALSA bitwise formats,
add a consistency check for the requested format, as done in
snd_card_asihpi_playback_formats().

Compile tested only.

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/asihpi.c