ASoC: rt1019: add rt1019 amplifier driver
Subsystems (4)
PATCH v2 1/1 ASoC: rt1019: add rt1019 amplifier driver
From: Jack Yu <[email protected]>
This is initial amplifier driver for rt1019.
--- .../devicetree/bindings/sound/rt1019.yaml | 33 + sound/soc/codecs/Kconfig | 7 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rt1019.c | 940 ++++++++++++++++++ sound/soc/codecs/rt1019.h | 320 ++++++ 5 files changed, 1302 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/rt1019.yaml create mode 100644 sound/soc/codecs/rt1019.c create mode 100644 sound/soc/codecs/rt1019.h
Documentation/devicetree/bindings/sound/rt1019.yaml new file +33 -0
@@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/rt1019.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RT1019 Mono Class-D Audio Amplifier + +maintainers: + - [email protected] + +properties: + compatible: + const: realtek,rt1019 + + reg: + maxItems: 1 + description: I2C address of the device. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + rt1019: codec@28 { + compatible = "realtek,rt1019"; + reg = <0x28>; + }; + };
sound/soc/codecs/Kconfig +7 -0
@@ -161,6 +161,7 @@ config SND_SOC_ALL_CODECS imply SND_SOC_RT1011 imply SND_SOC_RT1015 imply SND_SOC_RT1015P + imply SND_SOC_RT1019 imply SND_SOC_RT1305 imply SND_SOC_RT1308 imply SND_SOC_RT5514
@@ -1079,6 +1080,7 @@ config SND_SOC_RL6231 default y if SND_SOC_RT1011=y default y if SND_SOC_RT1015=y default y if SND_SOC_RT1015P=y + default y if SND_SOC_RT1019=y default y if SND_SOC_RT1305=y default y if SND_SOC_RT1308=y default m if SND_SOC_RT5514=m
@@ -1097,6 +1099,7 @@ config SND_SOC_RL6231 default m if SND_SOC_RT1011=m default m if SND_SOC_RT1015=m default m if SND_SOC_RT1015P=m + default m if SND_SOC_RT1019=m default m if SND_SOC_RT1305=m default m if SND_SOC_RT1308=m
@@ -1133,6 +1136,10 @@ config SND_SOC_RT1015P tristate depends on GPIOLIB +config SND_SOC_RT1019 + tristate + depends on I2C + config SND_SOC_RT1305 tristate depends on I2C
sound/soc/codecs/Makefile +2 -0
@@ -170,6 +170,7 @@ snd-soc-rl6347a-objs := rl6347a.o snd-soc-rt1011-objs := rt1011.o snd-soc-rt1015-objs := rt1015.o snd-soc-rt1015p-objs := rt1015p.o +snd-soc-rt1019-objs := rt1019.o snd-soc-rt1305-objs := rt1305.o snd-soc-rt1308-objs := rt1308.o snd-soc-rt1308-sdw-objs := rt1308-sdw.o
@@ -487,6 +488,7 @@ obj-$(CONFIG_SND_SOC_RL6347A) += snd-soc-rl6347a.o obj-$(CONFIG_SND_SOC_RT1011) += snd-soc-rt1011.o obj-$(CONFIG_SND_SOC_RT1015) += snd-soc-rt1015.o obj-$(CONFIG_SND_SOC_RT1015P) += snd-soc-rt1015p.o +obj-$(CONFIG_SND_SOC_RT1019) += snd-soc-rt1019.o obj-$(CONFIG_SND_SOC_RT1305) += snd-soc-rt1305.o obj-$(CONFIG_SND_SOC_RT1308) += snd-soc-rt1308.o obj-$(CONFIG_SND_SOC_RT1308_SDW) += snd-soc-rt1308-sdw.o
sound/soc/codecs/rt1019.c new file +940 -0
940 lines not on this page · raw message
sound/soc/codecs/rt1019.h new file +320 -0
320 lines not on this page · raw message
Signature · 1 line
2.29.0
Mark Brown
maintainerQuoted 1 line · On Thu, 11 Mar 2021 10:58:09 +0800, [email protected] wrote:
This is initial amplifier driver for rt1019.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: rt1019: add rt1019 amplifier driver
commit: 7ec79d3850d0cb6dc52e6aa472886ab3adf15863
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Rob Herring
maintainerQuoted 7 lines · On Thu, Mar 11, 2021 at 10:58:09AM +0800, [email protected] wrote:
From: Jack Yu <[email protected]>
This is initial amplifier driver for rt1019.
Signed-off-by Jack Yu <[email protected]>--- .../devicetree/bindings/sound/rt1019.yaml | 33 +
Bindings should be a separate patch. checkpatch.pl will tell you this.
Bindings should also be sent to the DT list. get_maintainer.pl will tell you this.
Now this causes warnings in linux-next:
Documentation/devicetree/bindings/sound/rt1019.example.dt.yaml: Warning (pci_device_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/sound/rt1019.example.dt.yaml: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/sound/rt1019.example.dt.yaml: Warning (simple_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/sound/rt1019.example.dts:19.13-24.11: Warning (i2c_bus_bridge): /example-0/i2c: incorrect #address-cells for I2C bus Documentation/devicetree/bindings/sound/rt1019.example.dts:19.13-24.11: Warning (i2c_bus_bridge): /example-0/i2c: incorrect #size-cells for I2C bus Documentation/devicetree/bindings/sound/rt1019.example.dt.yaml: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/sound/rt1019.example.dt.yaml: Warning (i2c_bus_reg): Failed prerequisite 'i2c_bus_bridge' Documentation/devicetree/bindings/sound/rt1019.example.dt.yaml: Warning (spi_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/sound/rt1019.example.dts:20.30-23.15: Warning (avoid_default_addr_size): /example-0/i2c/codec@28: Relying on default #address-cells value Documentation/devicetree/bindings/sound/rt1019.example.dts:20.30-23.15: Warning (avoid_default_addr_size): /example-0/i2c/codec@28: Relying on default #size-cells value Documentation/devicetree/bindings/sound/rt1019.example.dt.yaml: Warning (unique_unit_address): Failed prerequisite 'avoid_default_addr_size'
Quoted 8 lines
sound/soc/codecs/Kconfig | 7 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rt1019.c | 940 ++++++++++++++++++ sound/soc/codecs/rt1019.h | 320 ++++++ 5 files changed, 1302 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/rt1019.yaml create mode 100644 sound/soc/codecs/rt1019.c create mode 100644 sound/soc/codecs/rt1019.h
Mark Brown
maintainerQuoted 3 lines · Jack Yu
Quoted 1 line
Bindings should also be sent to the DT list. get_maintainer.pl will tell you this.
1. Does it mean I should add my name in
MAINTAINERS?
It means you should have sent the patch with the binding changes to the DT list and maintainers as well as everyone else.
Quoted 1 line
2. Is below warning message caused by #1 question?
No, it's the content of the change that's introduced problems in the binding.
Rob Herring
maintainerQuoted 43 lines · Jack Yu
Quoted 19 lines
-----Original Message-----
From: Mark Brown <[email protected]>
Sent: Monday, March 29, 2021 11:37 PM
To: Jack Yu <[email protected]>
Cc: Rob Herring <[email protected]>; [email protected]; Oder Chiou <[email protected]>; [email protected]; [email protected]; [email protected] [陳建宏] <[email protected]>; 陳昶志 <[email protected]>; Derek [方德義] <[email protected]>; Shuming [范書銘] <[email protected]>; Flove(HsinFu) <[email protected]>
Subject: Re: [PATCH v2] ASoC: rt1019: add rt1019 amplifier driverQuoted 1 line · Jack Yu
Quoted 1 line
Bindings should also be sent to the DT list. get_maintainer.pl will tell you
this.
Quoted 8 lines
Quoted 1 line
1. Does it mean I should add my name in
MAINTAINERS?It means you should have sent the patch with the binding changes to the DT list and maintainers as well as everyone else.
Quoted 1 line
2. Is below warning message caused by #1 question?
No, it's the content of the change that's introduced problems in the binding.
Hi Mark,
I'll add below "address-cells" and "size-cells " in to
rt1019.yamllike belowexamples:
- |i2c {(quoted diff) +2
-0+ #address-cells = <1>; + #size-cells = <0>; rt1019: codec@28 { compatible = "realtek,rt1019"; reg = <0x28>; }; };
Quoted 2 lines
but I'm not sure how to fix some of below warnings, like '
reg_format' and 'i2c_bus_bridge' and 'avoid_default_addr_size', are these caused by lack of "address-cells" and "size-cells "?
Yes, but run 'make dt_binding_check' to make sure.
Rob