Skip to contentSkip to conversation

ASoC: mediatek: Add machine driver for ALC5650 codec

PATCH In review PC Liao 2 participants 4 messages Feb 19, 2016 – Feb 22, 2016

Subsystems (4)
lore
Share & tools
lore

PC Liao

author
#0 lore raw

PATCH 1/1 ASoC: mediatek: Add machine driver for ALC5650 codec

From: Koro Chen <[email protected]>

This is the DPCM based machine driver with rt5650

---
 .../devicetree/bindings/sound/mt8173-rt5650.txt    |   15 ++
 sound/soc/mediatek/Kconfig                         |   10 +
 sound/soc/mediatek/Makefile                        |    1 +
 sound/soc/mediatek/mt8173-rt5650.c                 |  236 ++++++++++++++++++++
 4 files changed, 262 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/mt8173-rt5650.txt
 create mode 100644 sound/soc/mediatek/mt8173-rt5650.c
Documentation/devicetree/bindings/sound/mt8173-rt5650.txt new file +15 -0
new file mode 100644
index 0000000..fe5a5ef
@@ -0,0 +1,15 @@
+MT8173 with RT5650 CODECS
+
+Required properties:
+- compatible : "mediatek,mt8173-rt5650"
+- mediatek,audio-codec: the phandles of rt5650 codecs
+- mediatek,platform: the phandle of MT8173 ASoC platform
+
+Example:
+
+	sound {
+		compatible = "mediatek,mt8173-rt5650";
+		mediatek,audio-codec = <&rt5650>;
+		mediatek,platform = <&afe>;
+	};
+
sound/soc/mediatek/Kconfig +10 -0
index 9769676..6c88087 100644
@@ -17,6 +17,16 @@ config SND_SOC_MT8173_MAX98090
 	  Select Y if you have such device.
 	  If unsure select "N".
 
+config SND_SOC_MT8173_RT5650
+        tristate "ASoC Audio driver for MT8173 with RT5650 codec"
+        depends on SND_SOC_MEDIATEK && I2C
+        select SND_SOC_RT5645
+        help
+          This adds ASoC driver for Mediatek MT8173 boards
+          with the RT5650 audio codec.
+          Select Y if you have such device.
+          If unsure select "N".
+
 config SND_SOC_MT8173_RT5650_RT5676
 	tristate "ASoC Audio driver for MT8173 with RT5650 RT5676 codecs"
 	depends on SND_SOC_MEDIATEK && I2C
sound/soc/mediatek/Makefile +1 -0
index 75effbe..bcdcb06 100644
@@ -3,3 +3,4 @@ obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o
 # Machine support
 obj-$(CONFIG_SND_SOC_MT8173_MAX98090) += mt8173-max98090.o
 obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5676) += mt8173-rt5650-rt5676.o
+obj-$(CONFIG_SND_SOC_MT8173_RT5650) += mt8173-rt5650.o
sound/soc/mediatek/mt8173-rt5650.c new file +236 -0

236 lines not on this page · raw message

Signature · 1 line
1.7.9.5
maintainer
#1 lore raw

sound/soc/mediatek/Makefile obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o · line 6

Quoted 5 lines · PC Liao
sound/soc/mediatek/Makefile +1 -0
@@ -3,3 +3,4 @@ obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o
 # Machine support
 obj-$(CONFIG_SND_SOC_MT8173_MAX98090) += mt8173-max98090.o
 obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5676) += mt8173-rt5650-rt5676.o
+obj-$(CONFIG_SND_SOC_MT8173_RT5650) += mt8173-rt5650.o

Why is this not covered by (or coverable by) the existinng RT5650-RT5657 driver?

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

author
#2 lore raw

Hi Mark,

Quoted 10 lines · Mark Brown

Review obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o · line 6

Quoted 5 lines · PC Liao
(quoted diff) +1 -0
@@ -3,3 +3,4 @@ obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o
 # Machine support
 obj-$(CONFIG_SND_SOC_MT8173_MAX98090) += mt8173-max98090.o
 obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5676) += mt8173-rt5650-rt5676.o
+obj-$(CONFIG_SND_SOC_MT8173_RT5650) += mt8173-rt5650.o

Why is this not covered by (or coverable by) the existinng RT5650-RT5657 driver?

Thanks for your review.

Because they are different boards and have some differences like HW configuration and mixer control, we want to separate machine driver clearly.

Otherwise, I think I will upload this change to new version for more clearly.

sound/soc/mediatek/Makefile +1 -1
index bcdcb06..dcb1440 100644
@@ -2,5 +2,5 @@
 obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o
 # Machine support
 obj-$(CONFIG_SND_SOC_MT8173_MAX98090) += mt8173-max98090.o
-obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5676) += mt8173-rt5650-rt5676.o
 obj-$(CONFIG_SND_SOC_MT8173_RT5650) += mt8173-rt5650.o
+obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5676) += mt8173-rt5650-rt5676.o
maintainer
#3 lore raw

Applied "ASoC: mediatek: Add machine driver for ALC5650 codec" to the asoc tree

In reply to PC Liao

The patch

ASoC: mediatek: Add machine driver for ALC5650 codec

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 0f83f9296d5c91d08cf46cf1ba8a17fb870dedf0 Mon Sep 17 00:00:00 2001

From: Koro Chen <[email protected]>
Date: Fri, 19 Feb 2016 10:35:59 +0800
Subject: [PATCH] ASoC: mediatek: Add machine driver for ALC5650 codec

This is the DPCM based machine driver with rt5650

---
 .../devicetree/bindings/sound/mt8173-rt5650.txt    |  15 ++
 sound/soc/mediatek/Kconfig                         |  10 +
 sound/soc/mediatek/Makefile                        |   1 +
 sound/soc/mediatek/mt8173-rt5650.c                 | 236 +++++++++++++++++++++
 4 files changed, 262 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/mt8173-rt5650.txt
 create mode 100644 sound/soc/mediatek/mt8173-rt5650.c
Documentation/devicetree/bindings/sound/mt8173-rt5650.txt new file +15 -0
new file mode 100644
index 000000000000..fe5a5ef1714d
@@ -0,0 +1,15 @@
+MT8173 with RT5650 CODECS
+
+Required properties:
+- compatible : "mediatek,mt8173-rt5650"
+- mediatek,audio-codec: the phandles of rt5650 codecs
+- mediatek,platform: the phandle of MT8173 ASoC platform
+
+Example:
+
+	sound {
+		compatible = "mediatek,mt8173-rt5650";
+		mediatek,audio-codec = <&rt5650>;
+		mediatek,platform = <&afe>;
+	};
+
sound/soc/mediatek/Kconfig +10 -0
index 976967675387..6c8808798c6b 100644
@@ -17,6 +17,16 @@ config SND_SOC_MT8173_MAX98090
 	  Select Y if you have such device.
 	  If unsure select "N".
 
+config SND_SOC_MT8173_RT5650
+        tristate "ASoC Audio driver for MT8173 with RT5650 codec"
+        depends on SND_SOC_MEDIATEK && I2C
+        select SND_SOC_RT5645
+        help
+          This adds ASoC driver for Mediatek MT8173 boards
+          with the RT5650 audio codec.
+          Select Y if you have such device.
+          If unsure select "N".
+
 config SND_SOC_MT8173_RT5650_RT5676
 	tristate "ASoC Audio driver for MT8173 with RT5650 RT5676 codecs"
 	depends on SND_SOC_MEDIATEK && I2C
sound/soc/mediatek/Makefile +1 -0
index 75effbec438d..bcdcb062e73a 100644
@@ -3,3 +3,4 @@ obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o
 # Machine support
 obj-$(CONFIG_SND_SOC_MT8173_MAX98090) += mt8173-max98090.o
 obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5676) += mt8173-rt5650-rt5676.o
+obj-$(CONFIG_SND_SOC_MT8173_RT5650) += mt8173-rt5650.o
sound/soc/mediatek/mt8173-rt5650.c new file +236 -0

236 lines not on this page · raw message

Signature · 1 line
2.7.0