From 72df0b23e13f1c4dc4e0543f1233d639c96d0ef9 Mon Sep 17 00:00:00 2001 From: Renjun Xu Date: Fri, 16 Mar 2018 15:45:42 +0800 Subject: [PATCH] sound: fix tas5756 volume invert PD#161063: fix tas5756 volume invert Change-Id: I354b063df203b89824dd36a99a93aae1b390b735 Signed-off-by: Renjun Xu --- Documentation/devicetree/bindings/sound/tas5707.txt | 4 ++-- Documentation/devicetree/bindings/sound/tas5756.txt | 18 ++++++++++++++++++ MAINTAINERS | 4 ++++ sound/soc/codecs/amlogic/tas575x.c | 4 ++-- 4 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/tas5756.txt diff --git a/Documentation/devicetree/bindings/sound/tas5707.txt b/Documentation/devicetree/bindings/sound/tas5707.txt index d9939c6..b69911d 100644 --- a/Documentation/devicetree/bindings/sound/tas5707.txt +++ b/Documentation/devicetree/bindings/sound/tas5707.txt @@ -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 index 0000000..fc51946 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/tas5756.txt @@ -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>; +}; diff --git a/MAINTAINERS b/MAINTAINERS index 2aa9add..d8c544f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14393,3 +14393,7 @@ F: arch/arm64/boot/dts/amlogic/g12a*.dts AMLOGIC FIX PCM186X DRIVER M: Renjun Xu F: sound/soc/codecs/amlogic/pcm186x.c + +AMLOGIC TAS5756 DRIVER FIX +M: Renjun Xu +F: sound/soc/codecs/amlogic/tas575x.c diff --git a/sound/soc/codecs/amlogic/tas575x.c b/sound/soc/codecs/amlogic/tas575x.c index 37de371..b32d25c 100644 --- a/sound/soc/codecs/amlogic/tas575x.c +++ b/sound/soc/codecs/amlogic/tas575x.c @@ -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 = { -- 2.7.4