diff options
author | Mark Brown <broonie@linaro.org> | 2014-01-08 14:50:21 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-13 06:45:52 -0500 |
commit | 2822a9d01cc8132c82c8fad81df084f45af6a8e2 (patch) | |
tree | 45155bab8eea664d1e1d5d58d0cf53cf1611d5da /sound/soc | |
parent | abf82ae6a6a875ff04e882aaf4dade40d5b0a794 (diff) |
ASoC: da9055: Use params_width() rather than memory format
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/da9055.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/da9055.c b/sound/soc/codecs/da9055.c index fc9802d1281d..52b79a487ac7 100644 --- a/sound/soc/codecs/da9055.c +++ b/sound/soc/codecs/da9055.c | |||
@@ -1058,17 +1058,17 @@ static int da9055_hw_params(struct snd_pcm_substream *substream, | |||
1058 | u8 aif_ctrl, fs; | 1058 | u8 aif_ctrl, fs; |
1059 | u32 sysclk; | 1059 | u32 sysclk; |
1060 | 1060 | ||
1061 | switch (params_format(params)) { | 1061 | switch (params_width(params)) { |
1062 | case SNDRV_PCM_FORMAT_S16_LE: | 1062 | case 16: |
1063 | aif_ctrl = DA9055_AIF_WORD_S16_LE; | 1063 | aif_ctrl = DA9055_AIF_WORD_S16_LE; |
1064 | break; | 1064 | break; |
1065 | case SNDRV_PCM_FORMAT_S20_3LE: | 1065 | case 20: |
1066 | aif_ctrl = DA9055_AIF_WORD_S20_3LE; | 1066 | aif_ctrl = DA9055_AIF_WORD_S20_3LE; |
1067 | break; | 1067 | break; |
1068 | case SNDRV_PCM_FORMAT_S24_LE: | 1068 | case 24: |
1069 | aif_ctrl = DA9055_AIF_WORD_S24_LE; | 1069 | aif_ctrl = DA9055_AIF_WORD_S24_LE; |
1070 | break; | 1070 | break; |
1071 | case SNDRV_PCM_FORMAT_S32_LE: | 1071 | case 32: |
1072 | aif_ctrl = DA9055_AIF_WORD_S32_LE; | 1072 | aif_ctrl = DA9055_AIF_WORD_S32_LE; |
1073 | break; | 1073 | break; |
1074 | default: | 1074 | default: |