Skip to contentSkip to conversation

ASoC: mediatek: Add second I2S on mt8173-rt5650 machine driver

PATCH Superseded PC Liao 1 participant 1 message Apr 20, 2016

Subsystems (4)

v7 of 8 Superseded Latest is v8 →

lore
Share & tools
lore

PC Liao

author
#0 lore raw

PATCH v7 1/1 ASoC: mediatek: Add second I2S on mt8173-rt5650 machine driver

This patch adds second I2S connection to rt5650 codec for capture path on mt8173-rt5650 machine driver.

---
Changes since v6:
Use subnode to determine the capture path

---
 .../devicetree/bindings/sound/mt8173-rt5650.txt    |   10 ++++
 sound/soc/mediatek/mt8173-rt5650.c                 |   49 ++++++++++++++++++--
 2 files changed, 56 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/sound/mt8173-rt5650.txt +10 -0
index fe5a5ef..5bfa6b6 100644
@@ -5,11 +5,21 @@ Required properties:
 - mediatek,audio-codec: the phandles of rt5650 codecs
 - mediatek,platform: the phandle of MT8173 ASoC platform
 
+Optional subnodes:
+- codec-capture : the subnode of rt5650 codec capture
+Required codec-capture subnode properties:
+- sound-dai: audio codec dai name on capture path
+  <&rt5650 0> : Default setting. Connect rt5650 I2S1 for capture. (dai_name = rt5645-aif1)
+  <&rt5650 1> : Connect rt5650 I2S2 for capture. (dai_name = rt5645-aif2)
+
 Example:
 
 	sound {
 		compatible = "mediatek,mt8173-rt5650";
 		mediatek,audio-codec = <&rt5650>;
 		mediatek,platform = <&afe>;
+		codec-capture {
+			sound-dai = <&rt5650 1>;
+		};
 	};
 
sound/soc/mediatek/mt8173-rt5650.c +46 -3

83 lines not on this page · raw message

Signature · 1 line
1.7.9.5