0376-BCM270X_DT-Fix-rpi-dac-overlay.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 0978d55c391b3698dbecfd927378dc24c57eaa07 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Fri, 3 Jun 2016 21:56:40 +0100
  4. Subject: [PATCH 376/381] BCM270X_DT: Fix rpi-dac overlay
  5. The rpi-dac overlay is almost identical to the hifiberry-dac overlay -
  6. the codec used is different but it also doesn't sit on the I2C bus. As
  7. a result, when the overlays were modified for dynamic loading and it
  8. was discovered that the hifiberry-dac overlay didn't work any more, the
  9. the rpi-dac overlay was also broken.
  10. The failure was caused by the fact that outside a bus, device names are
  11. constructed from the concatenation of the path elements leading to it,
  12. so moving the codec instantiation inside /soc caused the device name
  13. to get a "soc" added, breaking ALSA's naming.
  14. See: http://forum.kodi.tv/showthread.php?tid=269814&pid=2349776#pid2349776
  15. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  16. ---
  17. arch/arm/boot/dts/overlays/rpi-dac-overlay.dts | 2 +-
  18. 1 file changed, 1 insertion(+), 1 deletion(-)
  19. --- a/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
  20. +++ b/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
  21. @@ -13,7 +13,7 @@
  22. };
  23. fragment@1 {
  24. - target = <&soc>;
  25. + target-path = "/";
  26. __overlay__ {
  27. pcm1794a-codec {
  28. #sound-dai-cells = <0>;