From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [PATCH 2/2] ASoC: fsi-ak4642/fsi-da7210: modify dai link settings for card detect Date: Mon, 30 Aug 2010 15:37:35 +0100 Message-ID: <1283179055.3055.122.camel@odin> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ww0-f51.google.com (mail-ww0-f51.google.com [74.125.82.51]) by alsa0.perex.cz (Postfix) with ESMTP id EA788103912 for ; Mon, 30 Aug 2010 16:37:37 +0200 (CEST) Received: by wwb39 with SMTP id 39so3085182wwb.20 for ; Mon, 30 Aug 2010 07:37:37 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Kuninori Morimoto Cc: Linux-ALSA , Mark Brown List-Id: alsa-devel@alsa-project.org On Mon, 2010-08-30 at 20:47 +0900, Kuninori Morimoto wrote: > This patch modify dai link > - platform_name: sh_fsi/sh_fsi2 are used for FSI driver > - codec_name: ak4642/ak4643 are used for ak4642 driver > > This is quick hack. I should modify it more wisely in future > > Signed-off-by: Kuninori Morimoto > --- > sound/soc/sh/fsi-ak4642.c | 7 ++++++- > sound/soc/sh/fsi-da7210.c | 2 +- > 2 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/sh/fsi-ak4642.c b/sound/soc/sh/fsi-ak4642.c > index 9e107a9..53836ca 100644 > --- a/sound/soc/sh/fsi-ak4642.c > +++ b/sound/soc/sh/fsi-ak4642.c > @@ -31,8 +31,13 @@ static struct snd_soc_dai_link fsi_dai_link = { > .stream_name = "AK4642", > .cpu_dai_name = "fsia-dai", /* fsi A */ > .codec_dai_name = "ak4642-hifi", > - .platform_name = "fsi-pcm-audio", > +#ifdef CONFIG_MACH_AP4EVB > + .platform_name = "sh_fsi2.0", > + .codec_name = "ak4642-codec.0-0013", > +#else > + .platform_name = "sh_fsi.0", > .codec_name = "ak4642-codec.0-0012", > +#endif > .init = fsi_ak4642_dai_init, > .ops = NULL, > }; > diff --git a/sound/soc/sh/fsi-da7210.c b/sound/soc/sh/fsi-da7210.c > index 4f9298f..b527015 100644 > --- a/sound/soc/sh/fsi-da7210.c > +++ b/sound/soc/sh/fsi-da7210.c > @@ -27,7 +27,7 @@ static struct snd_soc_dai_link fsi_da7210_dai = { > .stream_name = "DA7210", > .cpu_dai_name = "fsib-dai", /* FSI B */ > .codec_dai_name = "da7210-hifi", > - .platform_name = "fsi-pcm-audio", > + .platform_name = "sh_fsi.0", > .codec_name = "da7210-codec.0-001a", > .init = fsi_da7210_init, > }; Acked-by: Liam Girdwood -- Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk