diff options
author | Ryan Mallon <rmallon@gmail.com> | 2011-10-04 09:55:41 +1100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-04 12:03:47 +0100 |
commit | c855a1a7ff49a43e1e35571d504e89b4c670693d (patch) | |
tree | be6c0b28f833e829c5fd4e0021577867aa7a4a61 /block | |
parent | 8754f2263fb0961c6dd26b4b4cbe73a4e632aa62 (diff) | |
download | kernel_goldelico_gta04-c855a1a7ff49a43e1e35571d504e89b4c670693d.zip kernel_goldelico_gta04-c855a1a7ff49a43e1e35571d504e89b4c670693d.tar.gz kernel_goldelico_gta04-c855a1a7ff49a43e1e35571d504e89b4c670693d.tar.bz2 |
ASoC: max98095 codec: Catch driver bugs for biquad channel name
Move the biquad channel names to a separate array and iterate over it in
max98095_get_bq_channel rather than duplicating the hardcoded channel
names. Add an error message if an invalid channel is passed and check
the error in the callers.
Also added a BUILD_BUG_ON to ensure that the bq_mode_name and controls
arrays are the same size.
Signed-off-by: Ryan Mallon <rmallon@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions