staging: most: aim-sound: add flexible format support
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:44:54 +0000 (11:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:48 +0000 (13:41 +0200)
commited856eb58f9b40fec07ea83fb6ea571460378d7e
treec27cd2706642f5b43c02e7a5885dd7f66302e6d4
parentdbd36d5772f7e49e1e638391941de358d84ce379
staging: most: aim-sound: add flexible format support

Currently, the only supported PCM formats are 1x8", "2x16", "2x24",
"2x32" or "6x16".

This adds support for the format "Nx{8,16,24,32}" that also includes the
exotic PCM formats like "4x16", "5x8", etc.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/sound/sound.c