[PATCH 3/4 v6] ASoC: fsi: enable .of_xlate_dai_name on struct snd_soc_dai_driver
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Thu Feb 14 20:22:32 EST 2013
fsi 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 <kuninori.morimoto.gx at renesas.com>
---
v5 -> v6
- new patch
.../devicetree/bindings/sound/renesas,fsi.txt | 9 +++++++++
sound/soc/sh/fsi.c | 2 ++
2 files changed, 11 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/renesas,fsi.txt b/Documentation/devicetree/bindings/sound/renesas,fsi.txt
index c5be003..a403ec1 100644
--- a/Documentation/devicetree/bindings/sound/renesas,fsi.txt
+++ b/Documentation/devicetree/bindings/sound/renesas,fsi.txt
@@ -13,9 +13,18 @@ Required properties:
- fsib,stream-mode-support : same as fsia
- fsib,use-internal-clock : same as fsia
+Optional
+
+ #sound-dai-cells : enable DAI specifier, it must be 1
+
+ Valid values for the DAI specifier are:
+ 0: FSI port A
+ 1: FSI port B
+
Example:
sh_fsi2: sh_fsi2 at 0xec230000 {
+ #sound-dai-cells = <1>;
compatible = "renesas,sh_fsi2";
reg = <0xec230000 0x400>;
interrupts = <0 146 0x4>;
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index c724026a..afa6fd0 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -1861,6 +1861,7 @@ static struct snd_soc_dai_driver fsi_soc_dai[] = {
.channels_max = 2,
},
.ops = &fsi_dai_ops,
+ .of_xlate_dai_name = snd_soc_common_of_xlate_dai_name,
},
{
.name = "fsib-dai",
@@ -1877,6 +1878,7 @@ static struct snd_soc_dai_driver fsi_soc_dai[] = {
.channels_max = 2,
},
.ops = &fsi_dai_ops,
+ .of_xlate_dai_name = snd_soc_common_of_xlate_dai_name,
},
};
--
1.7.9.5
More information about the devicetree-discuss
mailing list