openwrtv3/target/linux/brcm2708/patches-4.4/0489-overlays-Add-swap_lr-and-enable_jack-to-audremap.patch
Álvaro Fernández Rojas dab5a44067 brcm2708: update linux 4.4 patches to latest version
n
As usual these patches were extracted and rebased from the raspberry pi repo:
https://github.com/raspberrypi/linux/tree/rpi-4.4.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2017-02-06 22:24:42 +01:00

50 lines
1.7 KiB
Diff

From 0c6470ece4ead2849ed4f5fcb0cb01fed1ee099f Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Fri, 19 Aug 2016 15:39:01 +0100
Subject: [PATCH] overlays: Add swap_lr and enable_jack to audremap
swap_lr causes the channels to be reversed, and enable_jack prevents the
headphone output from being disabled.
See: https://github.com/raspberrypi/linux/issues/1473
---
arch/arm/boot/dts/overlays/README | 9 ++++++---
arch/arm/boot/dts/overlays/audremap-overlay.dts | 7 ++++++-
2 files changed, 12 insertions(+), 4 deletions(-)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -254,9 +254,12 @@ Params: <None>
Name: audremap
-Info: Switches PWM sound output to pins 12 & 13
-Load: dtoverlay=audremap
-Params: <None>
+Info: Switches PWM sound output to pins 12 (Right) & 13 (Left)
+Load: dtoverlay=audremap,<param>=<val>
+Params: swap_lr Reverse the channel allocation, which will also
+ swap the audio jack outputs (default off)
+ enable_jack Don't switch off the audio jack output
+ (default off)
Name: bmp085_i2c-sensor
--- a/arch/arm/boot/dts/overlays/audremap-overlay.dts
+++ b/arch/arm/boot/dts/overlays/audremap-overlay.dts
@@ -6,9 +6,14 @@
fragment@0 {
target = <&audio_pins>;
- __overlay__ {
+ frag0: __overlay__ {
brcm,pins = < 12 13 >;
brcm,function = < 4 >; /* alt0 alt0 */
};
};
+
+ __overrides__ {
+ swap_lr = <&frag0>, "swap_lr?";
+ enable_jack = <&frag0>, "enable_jack?";
+ };
};