projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce4eac
)
ASoC: ad1836: Reject unsupported bit sizes
author
Mark Brown
<broonie@linaro.org>
Mon, 23 Dec 2013 12:41:39 +0000
(12:41 +0000)
committer
Mark Brown
<broonie@linaro.org>
Thu, 2 Jan 2014 12:46:33 +0000
(12:46 +0000)
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
sound/soc/codecs/ad1836.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/ad1836.c
b/sound/soc/codecs/ad1836.c
index 9a92b7962f41b67e3ba8461d1a88c584ef4822b0..d7c983862cf0a4ca19bb3db19652f5e2c579900b 100644
(file)
--- a/
sound/soc/codecs/ad1836.c
+++ b/
sound/soc/codecs/ad1836.c
@@
-179,6
+179,8
@@
static int ad1836_hw_params(struct snd_pcm_substream *substream,
case SNDRV_PCM_FORMAT_S32_LE:
word_len = AD1836_WORD_LEN_24;
break;
+ default:
+ return -EINVAL;
}
regmap_update_bits(ad1836->regmap, AD1836_DAC_CTRL1,