Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8953-xiaomi-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,17 @@
color = <LED_COLOR_ID_WHITE>;
};
};

tas2557_codec: audio-codec@4c {
compatible = "ti,tas2557";
reg = <0x4c>;
status = "disabled";

ti,tas2557-reset-gpio = <&tlmm 86 0>;
ti,tas2557-addr = <0x4c>;

#sound-dai-cells = <0>;
};
};

&i2c_3 {
Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8953-xiaomi-vince.dts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@
status = "okay";
};

&tas2557_codec {
status = "okay";
};

&tlmm {
gpio-reserved-ranges = <0 4>, <16 4>, <135 4>;

Expand Down
5 changes: 5 additions & 0 deletions sound/soc/codecs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ config SND_SOC_ALL_CODECS
imply SND_SOC_STAC9766
imply SND_SOC_STI_SAS
imply SND_SOC_TAS2552
imply SND_SOC_TAS2557
imply SND_SOC_TAS2562
imply SND_SOC_TAS2764
imply SND_SOC_TAS2770
Expand Down Expand Up @@ -1618,6 +1619,10 @@ config SND_SOC_TAS2552
tristate "Texas Instruments TAS2552 Mono Audio amplifier"
depends on I2C

config SND_SOC_TAS2557
tristate "Texas Instruments TAS2557 speaker amplifier"
depends on I2C

config SND_SOC_TAS2562
tristate "Texas Instruments TAS2562 Mono Audio amplifier"
depends on I2C
Expand Down
2 changes: 2 additions & 0 deletions sound/soc/codecs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ snd-soc-max98504-objs := max98504.o
snd-soc-simple-amplifier-objs := simple-amplifier.o
snd-soc-tpa6130a2-objs := tpa6130a2.o
snd-soc-tas2552-objs := tas2552.o
snd-soc-tas2557-objs := tas2557.o
snd-soc-tas2562-objs := tas2562.o
snd-soc-tas2764-objs := tas2764.o
snd-soc-tas2780-objs := tas2780.o
Expand Down Expand Up @@ -617,6 +618,7 @@ obj-$(CONFIG_SND_SOC_STA529) += snd-soc-sta529.o
obj-$(CONFIG_SND_SOC_STAC9766) += snd-soc-stac9766.o
obj-$(CONFIG_SND_SOC_STI_SAS) += snd-soc-sti-sas.o
obj-$(CONFIG_SND_SOC_TAS2552) += snd-soc-tas2552.o
obj-$(CONFIG_SND_SOC_TAS2557) += snd-soc-tas2557.o
obj-$(CONFIG_SND_SOC_TAS2562) += snd-soc-tas2562.o
obj-$(CONFIG_SND_SOC_TAS2764) += snd-soc-tas2764.o
obj-$(CONFIG_SND_SOC_TAS2780) += snd-soc-tas2780.o
Expand Down
Loading