From b3c5f80caa4e79d5a00db2ef56a873d0ddaf2e6d Mon Sep 17 00:00:00 2001 From: Huang Chao Date: Wed, 11 Jun 2014 12:23:14 +0800 Subject: [PATCH] ASoC: samsung: odroidx2/u3: Add secondary I2S bind DAI link This patch enables the I2S0 secondary DAI and create a related audio playback device node, which will use the internal DMA (IDMA) platform driver for PCM data transfer. IDMA can support up to two channel sound for playback. Change-Id: If7a84437cf0dda6d018ced22f52e4e995b72f01c Signed-off-by: Huang Chao --- sound/soc/samsung/odroidx2_max98090.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/soc/samsung/odroidx2_max98090.c b/sound/soc/samsung/odroidx2_max98090.c index 7d70264..614c60fa 100644 --- a/sound/soc/samsung/odroidx2_max98090.c +++ b/sound/soc/samsung/odroidx2_max98090.c @@ -69,6 +69,15 @@ static struct snd_soc_dai_link odroidx2_dai[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBM_CFM, .ops = &odroidx2_ops, + }, { + .name = "MAX98090 SEC", + .stream_name = "MAX98090 PCM SEC", + .codec_dai_name = "HiFi", + .cpu_dai_name = "samsung-i2s-sec", + .platform_name = "samsung-i2s-sec", + .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF + | SND_SOC_DAIFMT_CBM_CFM, + .ops = &odroidx2_ops, }, }; @@ -109,6 +118,10 @@ static int odroidx2_audio_probe(struct platform_device *pdev) odroidx2_dai[0].platform_of_node = odroidx2_dai[0].cpu_of_node; + /* Configure the secondary audio interface with the same codec dai */ + odroidx2_dai[1].codec_name = NULL; + odroidx2_dai[1].codec_of_node = odroidx2_dai[0].codec_of_node; + return snd_soc_register_card(card); } -- 2.7.4