Skip to contentSkip to conversation

ASoC: Mediatek: Add mt8183-mt6358 machine driver

PATCH In review Shunli Wang 2 participants 4 messages Mar 5, 2019 – Mar 21, 2019 2 messages not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover ASoC: Mediatek: Add mt8183-mt6358 machine driver

This patch adds machine driver which uses MT8183 as SoC and MT6358 as external codec.
The patch is based on broonie tree "for-next" branch

Shunli Wang (2):
ASoC: mediatek: mt8183: add mt8183-mt6358 machine driver
ASoC: mediatek: add document for mt8183-mt6358

 .../devicetree/bindings/sound/mt8183-mt6358.txt    |  12 ++
 sound/soc/mediatek/Kconfig                         |  10 +
 sound/soc/mediatek/mt8183/mt8183-mt6358.c          | 201 +++++++++++++++++++++
 3 files changed, 223 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/mt8183-mt6358.txt
 create mode 100644 sound/soc/mediatek/mt8183/mt8183-mt6358.c
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/2 ASoC: mediatek: mt8183: add mt8183-mt6358 machine driver

In reply to a message not in the archive

The board uses mt8183 as SoC and codec as mt6358. Between SoC and codec, a mtk-properity audio inferface is used.

---
 sound/soc/mediatek/Kconfig                |  10 ++
 sound/soc/mediatek/mt8183/mt8183-mt6358.c | 201 ++++++++++++++++++++++++++++++
 2 files changed, 211 insertions(+)
 create mode 100644 sound/soc/mediatek/mt8183/mt8183-mt6358.c
sound/soc/mediatek/Kconfig +10 -0
index b35410e..c1d402a 100644
@@ -116,6 +116,16 @@ config SND_SOC_MT8183
 	  Select Y if you have such device.
 	  If unsure select "N".
 
+config SND_SOC_MT8183_MT6358
+	tristate "ASoc Audio driver for MT8183 with MT6358 codec"
+	depends on SND_SOC_MT8183 && MTK_PMIC_WRAP
+	select SND_SOC_MT8183
+	help
+	  This adds ASoC driver for Mediatek MT8183 boards
+	  with the MT6358 codecs.
+	  Select Y if you have such device.
+	  If unsure select "N".
+
 config SND_SOC_MTK_BTCVSD
 	tristate "ALSA BT SCO CVSD/MSBC Driver"
 	help
sound/soc/mediatek/mt8183/mt8183-mt6358.c new file +201 -0

201 lines not on this page · raw message

Signature · 1 line
1.9.1
#5 lore raw

PATCH 2/2 ASoC: mediatek: add document for mt8183-mt6358

In reply to a message not in the archive

A device node usage notice for the machine with mt8183 as soc and mt6358 as codec.

---
 Documentation/devicetree/bindings/sound/mt8183-mt6358.txt | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/mt8183-mt6358.txt
Documentation/devicetree/bindings/sound/mt8183-mt6358.txt new file +12 -0
new file mode 100644
index 0000000..75b19f3
@@ -0,0 +1,12 @@
+MT8183 with MT6358 CODEC
+
+Required properties:
+- compatible: "mediatek,mt8183-mt6358-sound"
+- mediatek,platform: the phandle of MT8183 ASoC platform
+
+Example:
+
+	sound {
+		compatible = "mediatek,mt8183-mt6358-sound";
+		mediatek,platform = <&afe>;
+	};
Signature · 1 line
1.9.1
#4 lore raw

Re: [PATCH 1/2] ASoC: mediatek: mt8183: add mt8183-mt6358 machine driver

In reply to a message not in the archive

sound/soc/mediatek/Kconfig config SND_SOC_MT8183 · line 123

Quoted 5 lines · Shunli Wang
sound/soc/mediatek/Kconfig +5 -0
+config SND_SOC_MT8183_MT6358
+	tristate "ASoc Audio driver for MT8183 with MT6358 codec"
+	depends on SND_SOC_MT8183 && MTK_PMIC_WRAP
+	select SND_SOC_MT8183
+	help

This doesn't build:

scripts/kconfig/conf --oldconfig Kconfig sound/soc/mediatek/Kconfig:119:error: recursive dependency detected!
sound/soc/mediatek/Kconfig:119: symbol SND_SOC_MT8183_MT6358 depends on SND_SOC_MT8183
sound/soc/mediatek/Kconfig:109: symbol SND_SOC_MT8183 is selected by SND_SOC_MT8183_MT6358
For a resolution refer to Documentation/kbuild/kconfig-language.txt

_______________________________________________
Linux-mediatek mailing list [email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek