ASoC: ad1836: Reject unsupported bit sizes
Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
6ce4eac1f6
commit
c097d5fdf3
@ -179,6 +179,8 @@ static int ad1836_hw_params(struct snd_pcm_substream *substream,
|
|||||||
case SNDRV_PCM_FORMAT_S32_LE:
|
case SNDRV_PCM_FORMAT_S32_LE:
|
||||||
word_len = AD1836_WORD_LEN_24;
|
word_len = AD1836_WORD_LEN_24;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
regmap_update_bits(ad1836->regmap, AD1836_DAC_CTRL1,
|
regmap_update_bits(ad1836->regmap, AD1836_DAC_CTRL1,
|
||||||
|
Loading…
Reference in New Issue
Block a user