brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0381-BCM270X_DT-Fix-rpi-dac-overlay.patch
1 From 89f988c93882e1ac4ad7864ee9469aa02550090c 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] BCM270X_DT: Fix rpi-dac overlay
5
6 The rpi-dac overlay is almost identical to the hifiberry-dac overlay -
7 the codec used is different but it also doesn't sit on the I2C bus. As
8 a result, when the overlays were modified for dynamic loading and it
9 was discovered that the hifiberry-dac overlay didn't work any more, the
10 the rpi-dac overlay was also broken.
11
12 The failure was caused by the fact that outside a bus, device names are
13 constructed from the concatenation of the path elements leading to it,
14 so moving the codec instantiation inside /soc caused the device name
15 to get a "soc" added, breaking ALSA's naming.
16
17 See: http://forum.kodi.tv/showthread.php?tid=269814&pid=2349776#pid2349776
18
19 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
20 ---
21 arch/arm/boot/dts/overlays/rpi-dac-overlay.dts | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24 --- a/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
25 +++ b/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
26 @@ -13,7 +13,7 @@
27 };
28
29 fragment@1 {
30 - target = <&soc>;
31 + target-path = "/";
32 __overlay__ {
33 pcm1794a-codec {
34 #sound-dai-cells = <0>;