aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/88pm860x-codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/88pm860x-codec.c')
-rw-r--r--sound/soc/codecs/88pm860x-codec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c
index 3c4b10ff48c1..922006dd0583 100644
--- a/sound/soc/codecs/88pm860x-codec.c
+++ b/sound/soc/codecs/88pm860x-codec.c
@@ -945,11 +945,11 @@ static int pm860x_pcm_hw_params(struct snd_pcm_substream *substream,
945 unsigned char inf = 0, mask = 0; 945 unsigned char inf = 0, mask = 0;
946 946
947 /* bit size */ 947 /* bit size */
948 switch (params_format(params)) { 948 switch (params_width(params)) {
949 case SNDRV_PCM_FORMAT_S16_LE: 949 case 16:
950 inf &= ~PCM_INF2_18WL; 950 inf &= ~PCM_INF2_18WL;
951 break; 951 break;
952 case SNDRV_PCM_FORMAT_S18_3LE: 952 case 18:
953 inf |= PCM_INF2_18WL; 953 inf |= PCM_INF2_18WL;
954 break; 954 break;
955 default: 955 default:
@@ -1044,11 +1044,11 @@ static int pm860x_i2s_hw_params(struct snd_pcm_substream *substream,
1044 unsigned char inf; 1044 unsigned char inf;
1045 1045
1046 /* bit size */ 1046 /* bit size */
1047 switch (params_format(params)) { 1047 switch (params_width(params)) {
1048 case SNDRV_PCM_FORMAT_S16_LE: 1048 case 16:
1049 inf = 0; 1049 inf = 0;
1050 break; 1050 break;
1051 case SNDRV_PCM_FORMAT_S18_3LE: 1051 case 18:
1052 inf = PCM_INF2_18WL; 1052 inf = PCM_INF2_18WL;
1053 break; 1053 break;
1054 default: 1054 default: