Commit c097d5fd authored by Mark Brown's avatar Mark Brown

ASoC: ad1836: Reject unsupported bit sizes

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent 6ce4eac1
...@@ -179,6 +179,8 @@ static int ad1836_hw_params(struct snd_pcm_substream *substream, ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment