ASoC: sound: Add 24 bit support
Ravindra Lokhande [Fri, 22 Feb 2013 06:53:29 +0000 (22:53 -0800)]
Change-Id: I04b119d990f93898c4cdc51aa798b78338790375
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/203181
(cherry picked from commit 5d203a1ca42eb699a2046e1ba6c6f2db0acfdf54)
Reviewed-on: http://git-master/r/205464
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

sound/soc/codecs/max98090.c
sound/soc/tegra/tegra_max98090.c

index 66102e1..b8da436 100644 (file)
@@ -2564,6 +2564,9 @@ static int max98090_dai_hw_params(struct snd_pcm_substream *substream,
        case SNDRV_PCM_FORMAT_S16_LE:
                snd_soc_update_bits(codec, M98090_REG_22_DAI_INTERFACE_FORMAT,
                        M98090_DAI_WS_MASK, 0);
+       case SNDRV_PCM_FORMAT_S24_LE:
+               snd_soc_update_bits(codec, M98090_REG_22_DAI_INTERFACE_FORMAT,
+                       M98090_DAI_WS_MASK, 2);
                break;
        default:
                return -EINVAL;
index 47108d7..aea95c5 100644 (file)
@@ -252,6 +252,9 @@ static int tegra_max98090_hw_params(struct snd_pcm_substream *substream,
        case SNDRV_PCM_FORMAT_S16_LE:
                sample_size = 16;
                break;
+       case SNDRV_PCM_FORMAT_S24_LE:
+               sample_size = 24;
+               break;
        default:
                return -EINVAL;
        }