devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ASoC: rockchip: Parse dai links from dts
@ 2017-08-09 12:19 Jeffy Chen
  2017-08-09 12:19 ` [PATCH 2/3] arm64: dts: rockchip: Add rockchip,codec-names property Jeffy Chen
  2017-08-09 12:19 ` [PATCH 3/3] dt-bindings: ASoC: " Jeffy Chen
  0 siblings, 2 replies; 3+ messages in thread
From: Jeffy Chen @ 2017-08-09 12:19 UTC (permalink / raw)
  To: linux-kernel, dgreid, heiko
  Cc: briannorris, dianders, Jeffy Chen, Jaroslav Kysela,
	Matthias Kaehlcke, alsa-devel, Will Deacon, linux-rockchip,
	Mark Brown, Klaus Goger, Takashi Iwai, devicetree, Liam Girdwood,
	Rob Herring, Mark Rutland, Caesar Wang, Catalin Marinas,
	linux-arm-kernel


Currently we are using a fixed list of dai links in the driver.
This serial of patches would let the driver parse dai links from
dts, so that we can reorder/disable them in the dts.

Tested on my chromebook bob(with cros 4.4 kernel), it still works
after disabled rt5514 codec in the dts.



Jeffy Chen (3):
  ASoC: rockchip: Parse dai links from dts
  arm64: dts: rockchip: Add rockchip,codec-names property
  dt-bindings: ASoC: rockchip: Add rockchip,codec-names property

 .../bindings/sound/rockchip,rk3399-gru-sound.txt   |   2 +
 arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi       |   1 +
 sound/soc/rockchip/rk3399_gru_sound.c              | 129 ++++++++++++++-------
 3 files changed, 89 insertions(+), 43 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/3] arm64: dts: rockchip: Add rockchip,codec-names property
  2017-08-09 12:19 [PATCH 0/3] ASoC: rockchip: Parse dai links from dts Jeffy Chen
@ 2017-08-09 12:19 ` Jeffy Chen
  2017-08-09 12:19 ` [PATCH 3/3] dt-bindings: ASoC: " Jeffy Chen
  1 sibling, 0 replies; 3+ messages in thread
From: Jeffy Chen @ 2017-08-09 12:19 UTC (permalink / raw)
  To: linux-kernel, dgreid, heiko
  Cc: briannorris, dianders, Jeffy Chen, Matthias Kaehlcke, devicetree,
	Klaus Goger, linux-rockchip, Rob Herring, linux-arm-kernel,
	Will Deacon, Mark Rutland, Caesar Wang, Catalin Marinas

Add rockchip,codec-names property for codecs.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---

 arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
index d48e98b..c8f7f0c 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
@@ -515,6 +515,7 @@
 		compatible = "rockchip,rk3399-gru-sound";
 		rockchip,cpu = <&i2s0 &i2s2>;
 		rockchip,codec = <&max98357a &headsetcodec &codec>;
+		rockchip,codec-names = "MAX98357A", "RT5514", "DA7219";
 	};
 };
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 3/3] dt-bindings: ASoC: rockchip: Add rockchip,codec-names property
  2017-08-09 12:19 [PATCH 0/3] ASoC: rockchip: Parse dai links from dts Jeffy Chen
  2017-08-09 12:19 ` [PATCH 2/3] arm64: dts: rockchip: Add rockchip,codec-names property Jeffy Chen
@ 2017-08-09 12:19 ` Jeffy Chen
  1 sibling, 0 replies; 3+ messages in thread
From: Jeffy Chen @ 2017-08-09 12:19 UTC (permalink / raw)
  To: linux-kernel, dgreid, heiko
  Cc: briannorris, dianders, Jeffy Chen, devicetree, alsa-devel,
	Liam Girdwood, Mark Brown, linux-rockchip, Rob Herring,
	Mark Rutland, linux-arm-kernel

Add a new rockchip,codec-names property, so that the driver can parse
the codecs by name.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---

 Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt b/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt
index eac91db..aa951a7 100644
--- a/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt
+++ b/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt
@@ -11,6 +11,7 @@ Optional properties:
   If this option is specified, which means it's required dmic need
   delay for DMIC to ready so that rt5514 can avoid recording before
   DMIC send valid data
+- rockchip,codec-names: The names of the MAX98357A/RT5514/DA7219 codecs
 
 Example:
 
@@ -18,5 +19,6 @@ sound {
 	compatible = "rockchip,rk3399-gru-sound";
 	rockchip,cpu = <&i2s0>;
 	rockchip,codec = <&max98357a &rt5514 &da7219>;
+	rockchip,codec-names = "MAX98357A", "RT5514", "DA7219";
 	dmic-wakeup-delay-ms = <20>;
 };
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-09 12:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-09 12:19 [PATCH 0/3] ASoC: rockchip: Parse dai links from dts Jeffy Chen
2017-08-09 12:19 ` [PATCH 2/3] arm64: dts: rockchip: Add rockchip,codec-names property Jeffy Chen
2017-08-09 12:19 ` [PATCH 3/3] dt-bindings: ASoC: " Jeffy Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).