diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 13:28:37 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 16:41:46 +0200 |
commit | 12efd9f4b7518081315bdc32ab91291698739047 (patch) | |
tree | e84a62b63cdef29654c0b584fcda2bb858ed8921 /sound/soc/codecs/cs4265.c | |
parent | ASoC: cs4265: Change return values to boolean. (diff) | |
download | linux-12efd9f4b7518081315bdc32ab91291698739047.tar.xz linux-12efd9f4b7518081315bdc32ab91291698739047.zip |
ASoC: cs4265: Convert to params_width()
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Diffstat (limited to 'sound/soc/codecs/cs4265.c')
-rw-r--r-- | sound/soc/codecs/cs4265.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index 4c4bf216d51a..a20b30ca52c0 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -455,7 +455,7 @@ static int cs4265_pcm_hw_params(struct snd_pcm_substream *substream, CS4265_SPDIF_CTL2_DIF, (1 << 6)); break; case SND_SOC_DAIFMT_RIGHT_J: - if (params_format(params) & SNDRV_PCM_FORMAT_S16_LE) { + if (params_width(params) == 16) { snd_soc_update_bits(codec, CS4265_DAC_CTL, CS4265_DAC_CTL_DIF, (1 << 5)); snd_soc_update_bits(codec, CS4265_ADC_CTL, |