ASoC: Add max9867 codec driver
Subsystems (3)
PATCH 1/1 ASoC: Add max9867 codec driver
--- .../devicetree/bindings/sound/max9867.txt | 17 + sound/soc/codecs/Kconfig | 4 + sound/soc/codecs/Makefile | 1 + sound/soc/codecs/max9867.c | 537 +++++++++++++++++++++ sound/soc/codecs/max9867.h | 83 ++++ 5 files changed, 642 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/max9867.txt create mode 100755 sound/soc/codecs/max9867.c create mode 100755 sound/soc/codecs/max9867.h
Documentation/devicetree/bindings/sound/max9867.txt new file +17 -0
@@ -0,0 +1,17 @@ +max9867 codec + +This device supports I2C mode only. + +Required properties: + +- compatible : "maxim,max9867" +- reg : The chip select number on the I2C bus + +Example: + +&i2c { + max9867: max9867@0x18 { + compatible = "maxim,max9867"; + reg = <0x18>; + }; +};
sound/soc/codecs/Kconfig +4 -0
@@ -75,6 +75,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_MAX98090 if I2C select SND_SOC_MAX98095 if I2C select SND_SOC_MAX98357A if GPIOLIB + select SND_SOC_MAX9867 if I2C select SND_SOC_MAX98925 if I2C select SND_SOC_MAX98926 if I2C select SND_SOC_MAX9850 if I2C
@@ -490,6 +491,9 @@ config SND_SOC_MAX98095 config SND_SOC_MAX98357A tristate +config SND_SOC_MAX9867 + tristate + config SND_SOC_MAX98925 tristate
sound/soc/codecs/Makefile +1 -0
@@ -70,6 +70,7 @@ snd-soc-max98088-objs := max98088.o snd-soc-max98090-objs := max98090.o snd-soc-max98095-objs := max98095.o snd-soc-max98357a-objs := max98357a.o +snd-soc-max9867-objs := max9867.o snd-soc-max98925-objs := max98925.o snd-soc-max98926-objs := max98926.o snd-soc-max9850-objs := max9850.o
sound/soc/codecs/max9867.c new file +537 -0
537 lines not on this page · raw message
sound/soc/codecs/max9867.h new file +83 -0
83 lines not on this page · raw message
Signature · 1 line
1.9.3
Mark Brown
maintainersound/soc/codecs/max9867.c line 227
Quoted 13 lines · anish kumar
sound/soc/codecs/max9867.c new file +13
-0+if (pclk_bclk_ratio ==2 ) + bclk_value =MAX9867_IFC1B_PCLK_2 ; +else if (pclk_bclk_ratio ==4 ) + bclk_value =MAX9867_IFC1B_PCLK_4 ; +else if (pclk_bclk_ratio ==8 ) + bclk_value =MAX9867_IFC1B_PCLK_8 ; +else if (pclk_bclk_ratio ==16 ) + bclk_value =MAX9867_IFC1B_PCLK_16 ; +else { +dev_err (codec->dev,"unsupported sampling rate\n" ); +return -EINVAL ; + } +break ;
This looks like a switch statement, please write it as a switch statement. Please send a followup patch implementing this.
Mark Brown
maintainerApplied "ASoC: Add max9867 codec driver" to the asoc tree
In reply to anish kumarThe patch
ASoC: Add max9867 codec driver
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
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
Quoted 1 line
From
805d132dcbbdbdf8339008f4f964490cf6ff3025Mon Sep 17 00:00:00 2001
From: anish kumar <[email protected]>
Date: Wed, 17 Feb 2016 17:28:49 -0800
Subject: [PATCH] ASoC: Add max9867 codec driver
--- .../devicetree/bindings/sound/max9867.txt | 17 + sound/soc/codecs/Kconfig | 4 + sound/soc/codecs/Makefile | 1 + sound/soc/codecs/max9867.c | 537 +++++++++++++++++++++ sound/soc/codecs/max9867.h | 83 ++++ 5 files changed, 642 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/max9867.txt create mode 100755 sound/soc/codecs/max9867.c create mode 100755 sound/soc/codecs/max9867.h
Documentation/devicetree/bindings/sound/max9867.txt new file +17 -0
@@ -0,0 +1,17 @@ +max9867 codec + +This device supports I2C mode only. + +Required properties: + +- compatible : "maxim,max9867" +- reg : The chip select number on the I2C bus + +Example: + +&i2c { + max9867: max9867@0x18 { + compatible = "maxim,max9867"; + reg = <0x18>; + }; +};
sound/soc/codecs/Kconfig +4 -0
@@ -79,6 +79,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_MAX98090 if I2C select SND_SOC_MAX98095 if I2C select SND_SOC_MAX98357A if GPIOLIB + select SND_SOC_MAX9867 if I2C select SND_SOC_MAX98925 if I2C select SND_SOC_MAX98926 if I2C select SND_SOC_MAX9850 if I2C
@@ -517,6 +518,9 @@ config SND_SOC_MAX98095 config SND_SOC_MAX98357A tristate +config SND_SOC_MAX9867 + tristate + config SND_SOC_MAX98925 tristate
sound/soc/codecs/Makefile +1 -0
@@ -74,6 +74,7 @@ snd-soc-max98088-objs := max98088.o snd-soc-max98090-objs := max98090.o snd-soc-max98095-objs := max98095.o snd-soc-max98357a-objs := max98357a.o +snd-soc-max9867-objs := max9867.o snd-soc-max98925-objs := max98925.o snd-soc-max98926-objs := max98926.o snd-soc-max9850-objs := max9850.o
sound/soc/codecs/max9867.c new file +537 -0
537 lines not on this page · raw message
sound/soc/codecs/max9867.h new file +83 -0
83 lines not on this page · raw message
Signature · 1 line
2.7.0