sound: fix tas5756 volume invert
authorRenjun Xu <renjun.xu@amlogic.com>
Fri, 16 Mar 2018 07:45:42 +0000 (15:45 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sun, 18 Mar 2018 13:06:55 +0000 (05:06 -0800)
PD#161063: fix tas5756 volume invert

Change-Id: I354b063df203b89824dd36a99a93aae1b390b735
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
Documentation/devicetree/bindings/sound/tas5707.txt
Documentation/devicetree/bindings/sound/tas5756.txt [new file with mode: 0644]
MAINTAINERS
sound/soc/codecs/amlogic/tas575x.c

index d9939c6..b69911d 100644 (file)
@@ -1,6 +1,6 @@
-Texas Instruments TAS5701 Audio amplifier
+Texas Instruments TAS5707 Audio amplifier
 
-The TAS5701 serial control bus communicates through the I2C protocol only. The
+The TAS5707 serial control bus communicates through the I2C protocol only. The
 serial bus is also used for periodic codec fault checking/reporting during
 audio playback. For more product information please see the links below:
 
diff --git a/Documentation/devicetree/bindings/sound/tas5756.txt b/Documentation/devicetree/bindings/sound/tas5756.txt
new file mode 100644 (file)
index 0000000..fc51946
--- /dev/null
@@ -0,0 +1,18 @@
+Texas Instruments TAS5756 Audio amplifier
+
+The TAS5756 serial control bus communicates through the I2C protocol only. The
+serial bus is also used for periodic codec fault checking/reporting during
+audio playback. For more product information please see the links below:
+
+Required properties:
+
+- compatible : "ti, tas5756"
+- reg : I2C slave address
+
+Example:
+
+tas5756: tas5756@7c {
+       status = "okay";
+       compatible = "ti, tas5756";
+       reg = <0x7c>;
+};
index 2aa9add..d8c544f 100644 (file)
@@ -14393,3 +14393,7 @@ F:      arch/arm64/boot/dts/amlogic/g12a*.dts
 AMLOGIC FIX PCM186X DRIVER
 M:    Renjun Xu <renjun.xu@amlogic.com>
 F:    sound/soc/codecs/amlogic/pcm186x.c
+
+AMLOGIC TAS5756 DRIVER FIX
+M:     Renjun Xu <renjun.xu@amlogic.com>
+F:     sound/soc/codecs/amlogic/tas575x.c
index 37de371..b32d25c 100644 (file)
@@ -177,9 +177,9 @@ static DECLARE_TLV_DB_SCALE(dac_tlv, -10350, 50, 0);
 
 static const struct snd_kcontrol_new tas575x_snd_controls[] = {
        SOC_SINGLE_TLV("Channel B Playback Volume",
-                      TAS575X_CH_B_DIG_VOL, 0, 0xff, 0, dac_tlv),
+                      TAS575X_CH_B_DIG_VOL, 0, 0xff, 1, dac_tlv),
        SOC_SINGLE_TLV("Channel A Playback Volume",
-                          TAS575X_CH_A_DIG_VOL, 0, 0xff, 0, dac_tlv),
+                          TAS575X_CH_A_DIG_VOL, 0, 0xff, 1, dac_tlv),
 };
 
 static struct snd_soc_codec_driver soc_codec_dev_tas575x = {