From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kuninori Morimoto Subject: [PATCH 2/4 v6] ASoC: ak4642: enable .of_xlate_dai_name on struct snd_soc_dai_driver Date: Thu, 14 Feb 2013 01:22:10 -0800 (PST) Message-ID: <87zjz7tflt.wl%kuninori.morimoto.gx@renesas.com> References: <87zk11487a.wl%kuninori.morimoto.gx@renesas.com> <50E71618.8090302@wwwdotorg.org> <20130104193712.GN4627@opensource.wolfsonmicro.com> <87y5fvyy18.wl%kuninori.morimoto.gx@renesas.com> <87vcazyxr1.wl%kuninori.morimoto.gx@renesas.com> <20130127035943.GJ4650@opensource.wolfsonmicro.com> <87vcag3hcj.wl%kuninori.morimoto.gx@renesas.com> <20130129014808.GC4748@opensource.wolfsonmicro.com> <87sj5k3f83.wl%kuninori.morimoto.gx@renesas.com> <87obg8z4u4.wl%kuninori.morimoto.gx@renesas.com> <5107FF97.1070601@wwwdotorg.org> <87halz82bm.wl%kuninori.morimoto.gx@renesas.com> <51097F0F.2030501@wwwdotorg.org> <87halw7sij.wl%kuninori.morimoto.gx@renesas.com> <5110349D.3050308@wwwdotorg.org> <87ehgvrs1h.wl%kuninori.morimoto.gx@renesas.com> <87bobzrry6.wl%kuninori.morimoto.gx@renesas.com> <511963F8.5020107@wwwdotorg.org> <87bobqf5yq.wl%kuninori.morimoto.gx@renesas.com> <511C22E2.60701@wwwdotorg.org> <87obfnofsx.wl%kuninori.morimoto.gx@renesas.com> <511C6A1B.9000507@wwwdotorg.org> <874nhfv5mb.wl%kuninori.morimoto.gx@renesas.com> <8738wzuu9g.wl%kuninori.morimoto.gx@renesas.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8738wzuu9g.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Stephen Warren , Mark Brown Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Linux-ALSA , Simon , Liam Girdwood , Kuninori Morimoto List-Id: devicetree@vger.kernel.org ak4642 driver can be used from simple-card driver which requires .of_xlate_dai_name. This patch supports .of_xlate_dai_name. Signed-off-by: Kuninori Morimoto --- v5 -> v6 - new patch Documentation/devicetree/bindings/sound/ak4642.txt | 5 +++++ sound/soc/codecs/ak4642.c | 1 + 2 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/ak4642.txt b/Documentation/devicetree/bindings/sound/ak4642.txt index 623d4e7..c9bb4e5 100644 --- a/Documentation/devicetree/bindings/sound/ak4642.txt +++ b/Documentation/devicetree/bindings/sound/ak4642.txt @@ -7,10 +7,15 @@ Required properties: - compatible : "asahi-kasei,ak4642" or "asahi-kasei,ak4643" or "asahi-kasei,ak4648" - reg : The chip select number on the I2C bus +Optional + + #sound-dai-cells : enable DAI specifier, it must be 1 + Example: &i2c { ak4648: ak4648@0x12 { + #sound-dai-cells = <1>; compatible = "asahi-kasei,ak4642"; reg = <0x12>; }; diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c index c78794d..4b212f9 100644 --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c @@ -452,6 +452,7 @@ static struct snd_soc_dai_driver ak4642_dai = { .formats = SNDRV_PCM_FMTBIT_S16_LE }, .ops = &ak4642_dai_ops, .symmetric_rates = 1, + .of_xlate_dai_name = snd_soc_common_of_xlate_dai_name, }; static int ak4642_resume(struct snd_soc_codec *codec) -- 1.7.9.5