diff options
author | Mark Brown <broonie@linaro.org> | 2013-12-23 07:41:39 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-02 07:46:33 -0500 |
commit | c097d5fdf3b51cdb2521c3cffab0a8cf03c68cc6 (patch) | |
tree | 14525f9d23c8ec0d205c6ba4b8b48e70eee959a8 /sound/soc/codecs/ad1836.c | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) |
ASoC: ad1836: Reject unsupported bit sizes
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'sound/soc/codecs/ad1836.c')
-rw-r--r-- | sound/soc/codecs/ad1836.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index 9a92b7962f41..d7c983862cf0 100644 --- 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, | |||
179 | case SNDRV_PCM_FORMAT_S32_LE: | 179 | case SNDRV_PCM_FORMAT_S32_LE: |
180 | word_len = AD1836_WORD_LEN_24; | 180 | word_len = AD1836_WORD_LEN_24; |
181 | break; | 181 | break; |
182 | default: | ||
183 | return -EINVAL; | ||
182 | } | 184 | } |
183 | 185 | ||
184 | regmap_update_bits(ad1836->regmap, AD1836_DAC_CTRL1, | 186 | regmap_update_bits(ad1836->regmap, AD1836_DAC_CTRL1, |