diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 12:46:50 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 13:30:08 +0100 |
commit | 9519dd4c1f6386943cb84ef71009b8d372edb3ac (patch) | |
tree | 72065a296f307ebcf6434f0d6fb08fd7359fc4d3 /sound | |
parent | 0a49f706be520e01cfb4dd17134358cd603d4d8a (diff) | |
download | op-kernel-dev-9519dd4c1f6386943cb84ef71009b8d372edb3ac.zip op-kernel-dev-9519dd4c1f6386943cb84ef71009b8d372edb3ac.tar.gz |
ASoC: sn95031: Convert to params_width()
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/sn95031.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c index 42dff26..cf8fa40 100644 --- a/sound/soc/codecs/sn95031.c +++ b/sound/soc/codecs/sn95031.c @@ -661,12 +661,12 @@ static int sn95031_pcm_hw_params(struct snd_pcm_substream *substream, { unsigned int format, rate; - switch (params_format(params)) { - case SNDRV_PCM_FORMAT_S16_LE: + switch (params_width(params)) { + case 16: format = BIT(4)|BIT(5); break; - case SNDRV_PCM_FORMAT_S24_LE: + case 24: format = 0; break; default: |