mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
Merge remote-tracking branch 'asoc/fix/davinci' into asoc-davinci
This commit is contained in:
commit
91fff60b7d
@ -6,6 +6,7 @@ config SND_DAVINCI_SOC_I2S
|
|||||||
tristate
|
tristate
|
||||||
|
|
||||||
config SND_DAVINCI_SOC_MCASP
|
config SND_DAVINCI_SOC_MCASP
|
||||||
|
depends on SND_DAVINCI_SOC || SND_OMAP_SOC
|
||||||
tristate
|
tristate
|
||||||
|
|
||||||
config SND_DAVINCI_SOC_VCIF
|
config SND_DAVINCI_SOC_VCIF
|
||||||
|
@ -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_U24_LE:
|
||||||
case SNDRV_PCM_FORMAT_S24_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_U32_LE:
|
||||||
case SNDRV_PCM_FORMAT_S32_LE:
|
case SNDRV_PCM_FORMAT_S32_LE:
|
||||||
dma_params->data_type = 4;
|
dma_params->data_type = 4;
|
||||||
@ -1272,14 +1276,22 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
|
|||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
switch (mcasp->version) {
|
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_1:
|
||||||
case MCASP_VERSION_2:
|
case MCASP_VERSION_2:
|
||||||
case MCASP_VERSION_3:
|
case MCASP_VERSION_3:
|
||||||
ret = davinci_soc_platform_register(&pdev->dev);
|
ret = davinci_soc_platform_register(&pdev->dev);
|
||||||
break;
|
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:
|
case MCASP_VERSION_4:
|
||||||
ret = omap_pcm_platform_register(&pdev->dev);
|
ret = omap_pcm_platform_register(&pdev->dev);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
dev_err(&pdev->dev, "Invalid McASP version: %d\n",
|
dev_err(&pdev->dev, "Invalid McASP version: %d\n",
|
||||||
mcasp->version);
|
mcasp->version);
|
||||||
|
Loading…
Reference in New Issue
Block a user