From f489f8ab67da3755f6fe34da8062ee32afdeb458 Mon Sep 17 00:00:00 2001 From: Zeng Zhaoming Date: Wed, 6 Apr 2011 04:48:28 +0800 Subject: [PATCH] ENGR00141651-2 Audio: audio not work when ipmux2 clock disabled in idle When SOC enter wait mode, ipmux2_clk will disable to save power, if using ssi1 for audio transfer, audio will not work correctly. To around this, using ssi2. Signed-off-by: Zeng Zhaoming --- sound/soc/imx/imx-pcm-dma-mx2.c | 2 +- sound/soc/imx/imx-sgtl5000.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/imx/imx-pcm-dma-mx2.c b/sound/soc/imx/imx-pcm-dma-mx2.c index 4173b3d87f97..89e859a7fb65 100644 --- a/sound/soc/imx/imx-pcm-dma-mx2.c +++ b/sound/soc/imx/imx-pcm-dma-mx2.c @@ -83,7 +83,7 @@ static int imx_ssi_dma_alloc(struct snd_pcm_substream *substream, dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); - iprtd->dma_data.peripheral_type = IMX_DMATYPE_SSI; + iprtd->dma_data.peripheral_type = IMX_DMATYPE_SSI_SP; iprtd->dma_data.priority = DMA_PRIO_HIGH; iprtd->dma_data.dma_request = dma_params->dma; diff --git a/sound/soc/imx/imx-sgtl5000.c b/sound/soc/imx/imx-sgtl5000.c index 618d0fe018b5..3ccf26368039 100644 --- a/sound/soc/imx/imx-sgtl5000.c +++ b/sound/soc/imx/imx-sgtl5000.c @@ -238,8 +238,8 @@ static struct snd_soc_dai_link imx_sgtl5000_dai[] = { .stream_name = "HiFi", .codec_dai_name = "sgtl5000", .codec_name = "sgtl5000.1-000a", - .cpu_dai_name = "imx-ssi.0", - .platform_name = "imx-pcm-audio.0", + .cpu_dai_name = "imx-ssi.1", + .platform_name = "imx-pcm-audio.1", .init = imx_3stack_sgtl5000_init, .ops = &imx_sgtl5000_hifi_ops, }, -- 2.39.2