ASoC: nau8822: new codec driver
Subsystems (3)
PATCH 1/1 ASoC: nau8822: new codec driver
Add driver for NAU88C22.
--- .../devicetree/bindings/sound/nau8822.txt | 16 + sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/nau8822.c | 1132 +++++++++++++++++ sound/soc/codecs/nau8822.h | 204 +++ 5 files changed, 1359 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt create mode 100644 sound/soc/codecs/nau8822.c create mode 100644 sound/soc/codecs/nau8822.h
Documentation/devicetree/bindings/sound/nau8822.txt new file +16 -0
@@ -0,0 +1,16 @@ +NAU8822 audio CODEC + +This device supports I2C only. + +Required properties: + + - compatible : "nuvoton,nau8822" + + - reg : the I2C address of the device. + +Example: + +codec: nau8822@1a { + compatible = "nuvoton,nau8822"; + reg = <0x1a>; +};
sound/soc/codecs/Kconfig +5 -0
@@ -109,6 +109,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_MT6351 if MTK_PMIC_WRAP select SND_SOC_NAU8540 if I2C select SND_SOC_NAU8810 if I2C + select SND_SOC_NAU8822 if I2C select SND_SOC_NAU8824 if I2C select SND_SOC_NAU8825 if I2C select SND_SOC_HDMI_CODEC
@@ -1299,6 +1300,10 @@ config SND_SOC_NAU8810 tristate "Nuvoton Technology Corporation NAU88C10 CODEC" depends on I2C +config SND_SOC_NAU8822 + tristate "Nuvoton Technology Corporation NAU88C22 CODEC" + depends on I2C + config SND_SOC_NAU8824 tristate "Nuvoton Technology Corporation NAU88L24 CODEC" depends on I2C
sound/soc/codecs/Makefile +2 -0
@@ -106,6 +106,7 @@ snd-soc-msm8916-digital-objs := msm8916-wcd-digital.o snd-soc-mt6351-objs := mt6351.o snd-soc-nau8540-objs := nau8540.o snd-soc-nau8810-objs := nau8810.o +snd-soc-nau8822-objs := nau8822.o snd-soc-nau8824-objs := nau8824.o snd-soc-nau8825-objs := nau8825.o snd-soc-hdmi-codec-objs := hdmi-codec.o
@@ -366,6 +367,7 @@ obj-$(CONFIG_SND_SOC_MSM8916_WCD_DIGITAL) +=snd-soc-msm8916-digital.o obj-$(CONFIG_SND_SOC_MT6351) += snd-soc-mt6351.o obj-$(CONFIG_SND_SOC_NAU8540) += snd-soc-nau8540.o obj-$(CONFIG_SND_SOC_NAU8810) += snd-soc-nau8810.o +obj-$(CONFIG_SND_SOC_NAU8822) += snd-soc-nau8822.o obj-$(CONFIG_SND_SOC_NAU8824) += snd-soc-nau8824.o obj-$(CONFIG_SND_SOC_NAU8825) += snd-soc-nau8825.o obj-$(CONFIG_SND_SOC_HDMI_CODEC) += snd-soc-hdmi-codec.o
sound/soc/codecs/nau8822.c new file +1132 -0
1,132 lines not on this page · raw message
sound/soc/codecs/nau8822.h new file +204 -0
204 lines not on this page · raw message
Signature · 1 line
2.18.0
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
OK, I will resend a new patch.
However, from my last patch file, I can see DT file where is located at "Documentation/devicetree/bindings/sound/nau8822.txt".
And don't you see any DT file?
Quoted 21 lines · Mark Brown
Quoted 5 lines · Mark Brown
Quoted 2 lines · On Tue, Sep 25, 2018 at 10:50:19AM +0800, AC30 CTLin0 wrote:
May I learn the status of patch review due to our customer ask us about upstream status?
I don't know, I don't seem to have a copy of this patch in my review queue. Please resend:
Found a copy in the list archives, but still no idea where it went in my review queue. My best guess is that it got eaten by spam filtering somewhere but I'm not 100% sure. Sorry about that. :( The driver looks pretty clean, a few small points:
- The Mute Switch controls should just be called Switch so that applications know how to handle them.
- PGA Boost +20dB should just be "PGA Boost Volume" with the +20dB specified by having it be aSOC_DOUBLE_R_TLV().
- The switch statements inhw_params()should have default:
cases that return errors so that if an incorrect parameter makes it through we detect it.
- There's a DT compatible string but no DT binding file is supplied, should just be a very simple one as there's no parameters.
Quoted 1 line
These are all small, hopefully should be quick to update.
===========================================================================================
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.
Mark Brown
maintainerQuoted 6 lines · On Thu, Sep 27, 2018 at 06:44:45PM +0800, AC30 CTLin0 wrote:
OK, I will resend a new patch.
However, from my last patch file, I can see DT file where is located at "
Documentation/devicetree/bindings/sound/nau8822.txt".And don't you see any DT file?
Ah, that's weird - I'd not expect the binding to have been applied for a new driver without the code. In that case everything is fine and no need to send them again, perhaps just add a note saying that the binding is already there in case I forget.