diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:48:44 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 09:37:16 -0400 |
commit | c60f23cb0a4b12091d92c24d365234968025a08e (patch) | |
tree | d0871c5de92b93405b06ebe915109ebaff953da8 /sound/soc/codecs/tlv320dac33.c | |
parent | bd8a571163368627013e9763b9b6d572ba4083b5 (diff) |
ASoC: tlv320dac33: 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: Peter Ujfalusi <peter.ujfalusi@ti.com>
Diffstat (limited to 'sound/soc/codecs/tlv320dac33.c')
-rw-r--r-- | sound/soc/codecs/tlv320dac33.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c index df3a7506c023..34f8ff886c33 100644 --- a/sound/soc/codecs/tlv320dac33.c +++ b/sound/soc/codecs/tlv320dac33.c | |||
@@ -832,18 +832,18 @@ static int dac33_hw_params(struct snd_pcm_substream *substream, | |||
832 | return -EINVAL; | 832 | return -EINVAL; |
833 | } | 833 | } |
834 | 834 | ||
835 | switch (params_format(params)) { | 835 | switch (params_width(params)) { |
836 | case SNDRV_PCM_FORMAT_S16_LE: | 836 | case 16: |
837 | dac33->fifo_size = DAC33_FIFO_SIZE_16BIT; | 837 | dac33->fifo_size = DAC33_FIFO_SIZE_16BIT; |
838 | dac33->burst_rate = CALC_BURST_RATE(dac33->burst_bclkdiv, 32); | 838 | dac33->burst_rate = CALC_BURST_RATE(dac33->burst_bclkdiv, 32); |
839 | break; | 839 | break; |
840 | case SNDRV_PCM_FORMAT_S32_LE: | 840 | case 32: |
841 | dac33->fifo_size = DAC33_FIFO_SIZE_24BIT; | 841 | dac33->fifo_size = DAC33_FIFO_SIZE_24BIT; |
842 | dac33->burst_rate = CALC_BURST_RATE(dac33->burst_bclkdiv, 64); | 842 | dac33->burst_rate = CALC_BURST_RATE(dac33->burst_bclkdiv, 64); |
843 | break; | 843 | break; |
844 | default: | 844 | default: |
845 | dev_err(codec->dev, "unsupported format %d\n", | 845 | dev_err(codec->dev, "unsupported width %d\n", |
846 | params_format(params)); | 846 | params_width(params)); |
847 | return -EINVAL; | 847 | return -EINVAL; |
848 | } | 848 | } |
849 | 849 | ||