[alsa-devel] [PATCH] ASoC: ad1836: Reject unsupported bit sizes
23 Dec
2013
23 Dec
'13
1:43 p.m.
From: Mark Brown broonie@linaro.org
Signed-off-by: Mark Brown broonie@linaro.org --- sound/soc/codecs/ad1836.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index 9a92b79..d7c9838 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, case SNDRV_PCM_FORMAT_S32_LE: word_len = AD1836_WORD_LEN_24; break; + default: + return -EINVAL; }
regmap_update_bits(ad1836->regmap, AD1836_DAC_CTRL1,
--
1.8.5.2
1 Jan
1 Jan
4:40 p.m.
On 12/23/2013 01:43 PM, Mark Brown wrote:
From: Mark Brown broonie@linaro.org
Signed-off-by: Mark Brown broonie@linaro.org
Acked-by: Lars-Peter Clausen lars@metafoo.de
Thanks.
3971
Age (days ago)
3980
Last active (days ago)
1 comments
2 participants
participants (2)
-
Lars-Peter Clausen
-
Mark Brown