diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2014-05-23 08:05:39 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-26 12:04:20 -0400 |
commit | 88ce1465ec471cfb978744ab2ab40460c6b96b4c (patch) | |
tree | 59335459221ef10d11e2af111abdada832581809 /sound/soc/samsung/i2s.c | |
parent | a6aba536ab60274e8f46ae3a5966b81c35f845fa (diff) |
ASoC: samsung: Use params_width()
commit 8c5178fca4ce ("ALSA: Add params_width() helpers") introduces
a helper to get the sample width. Updating Samsung related sound
drivers to use this helper.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/samsung/i2s.c')
-rw-r--r-- | sound/soc/samsung/i2s.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 043d98645a54..2ac76fa3e742 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
@@ -676,8 +676,8 @@ static int i2s_hw_params(struct snd_pcm_substream *substream, | |||
676 | if (is_manager(i2s)) | 676 | if (is_manager(i2s)) |
677 | mod &= ~MOD_BLC_MASK; | 677 | mod &= ~MOD_BLC_MASK; |
678 | 678 | ||
679 | switch (params_format(params)) { | 679 | switch (params_width(params)) { |
680 | case SNDRV_PCM_FORMAT_S8: | 680 | case 8: |
681 | if (is_secondary(i2s)) | 681 | if (is_secondary(i2s)) |
682 | mod |= MOD_BLCS_8BIT; | 682 | mod |= MOD_BLCS_8BIT; |
683 | else | 683 | else |
@@ -685,7 +685,7 @@ static int i2s_hw_params(struct snd_pcm_substream *substream, | |||
685 | if (is_manager(i2s)) | 685 | if (is_manager(i2s)) |
686 | mod |= MOD_BLC_8BIT; | 686 | mod |= MOD_BLC_8BIT; |
687 | break; | 687 | break; |
688 | case SNDRV_PCM_FORMAT_S16_LE: | 688 | case 16: |
689 | if (is_secondary(i2s)) | 689 | if (is_secondary(i2s)) |
690 | mod |= MOD_BLCS_16BIT; | 690 | mod |= MOD_BLCS_16BIT; |
691 | else | 691 | else |
@@ -693,7 +693,7 @@ static int i2s_hw_params(struct snd_pcm_substream *substream, | |||
693 | if (is_manager(i2s)) | 693 | if (is_manager(i2s)) |
694 | mod |= MOD_BLC_16BIT; | 694 | mod |= MOD_BLC_16BIT; |
695 | break; | 695 | break; |
696 | case SNDRV_PCM_FORMAT_S24_LE: | 696 | case 24: |
697 | if (is_secondary(i2s)) | 697 | if (is_secondary(i2s)) |
698 | mod |= MOD_BLCS_24BIT; | 698 | mod |= MOD_BLCS_24BIT; |
699 | else | 699 | else |