diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-16 22:08:39 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-16 22:08:39 +0100 |
commit | 91fff60b7db01b6def18438cfa86e9c5902ffbd8 (patch) | |
tree | 4f024e3a859e41e147aa1a90858f47eaef796599 /sound/soc/davinci/davinci-mcasp.c | |
parent | 0929878f93be5534974e058bc1e4b3abb36478b5 (diff) | |
parent | 182bef863cc37a9a387ae9bc0f1b05243234bd4a (diff) | |
download | op-kernel-dev-91fff60b7db01b6def18438cfa86e9c5902ffbd8.zip op-kernel-dev-91fff60b7db01b6def18438cfa86e9c5902ffbd8.tar.gz |
Merge remote-tracking branch 'asoc/fix/davinci' into asoc-davinci
Diffstat (limited to 'sound/soc/davinci/davinci-mcasp.c')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 5b81adb..f7dc538 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c @@ -769,6 +769,10 @@ static int davinci_mcasp_hw_params(struct snd_pcm_substream *substream, case SNDRV_PCM_FORMAT_U24_LE: case SNDRV_PCM_FORMAT_S24_LE: + dma_params->data_type = 4; + word_length = 24; + break; + case SNDRV_PCM_FORMAT_U32_LE: case SNDRV_PCM_FORMAT_S32_LE: dma_params->data_type = 4; @@ -1272,14 +1276,22 @@ static int davinci_mcasp_probe(struct platform_device *pdev) goto err; switch (mcasp->version) { +#if IS_BUILTIN(CONFIG_SND_DAVINCI_SOC) || \ + (IS_MODULE(CONFIG_SND_DAVINCI_SOC_MCASP) && \ + IS_MODULE(CONFIG_SND_DAVINCI_SOC)) case MCASP_VERSION_1: case MCASP_VERSION_2: case MCASP_VERSION_3: ret = davinci_soc_platform_register(&pdev->dev); break; +#endif +#if IS_BUILTIN(CONFIG_SND_OMAP_SOC) || \ + (IS_MODULE(CONFIG_SND_DAVINCI_SOC_MCASP) && \ + IS_MODULE(CONFIG_SND_OMAP_SOC)) case MCASP_VERSION_4: ret = omap_pcm_platform_register(&pdev->dev); break; +#endif default: dev_err(&pdev->dev, "Invalid McASP version: %d\n", mcasp->version); |