ASoC: cs42l51: split i2c from codec driver
Subsystems (3)
PATCH 1/1 ASoC: cs42l51: split i2c from codec driver
This patch removes the i2c bus code from the codec driver and creates seperate i2c driver.
--- sound/soc/codecs/Kconfig | 6 +++- sound/soc/codecs/Makefile | 2 ++ sound/soc/codecs/cs42l51-i2c.c | 59 ++++++++++++++++++++++++++++++ sound/soc/codecs/cs42l51.c | 77 +++++++++++----------------------------- sound/soc/codecs/cs42l51.h | 5 +++ 5 files changed, 91 insertions(+), 58 deletions(-) create mode 100644 sound/soc/codecs/cs42l51-i2c.c
sound/soc/codecs/Kconfig +5 -1
@@ -32,7 +32,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_ALC5623 if I2C select SND_SOC_ALC5632 if I2C select SND_SOC_CQ0093VC if MFD_DAVINCI_VOICECODEC - select SND_SOC_CS42L51 if I2C + select SND_SOC_CS42L51_I2C if I2C select SND_SOC_CS42L52 if I2C select SND_SOC_CS42L73 if I2C select SND_SOC_CS4270 if I2C
@@ -233,6 +233,10 @@ config SND_SOC_CQ0093VC config SND_SOC_CS42L51 tristate +config SND_SOC_CS42L51_I2C + tristate + select SND_SOC_CS42L51 + config SND_SOC_CS42L52 tristate
sound/soc/codecs/Makefile +2 -0
@@ -19,6 +19,7 @@ snd-soc-ak5386-objs := ak5386.o snd-soc-arizona-objs := arizona.o snd-soc-cq93vc-objs := cq93vc.o snd-soc-cs42l51-objs := cs42l51.o +snd-soc-cs42l51-i2c-objs := cs42l51-i2c.o snd-soc-cs42l52-objs := cs42l52.o snd-soc-cs42l73-objs := cs42l73.o snd-soc-cs4270-objs := cs4270.o
@@ -152,6 +153,7 @@ obj-$(CONFIG_SND_SOC_ALC5632) += snd-soc-alc5632.o obj-$(CONFIG_SND_SOC_ARIZONA) += snd-soc-arizona.o obj-$(CONFIG_SND_SOC_CQ0093VC) += snd-soc-cq93vc.o obj-$(CONFIG_SND_SOC_CS42L51) += snd-soc-cs42l51.o +obj-$(CONFIG_SND_SOC_CS42L51_I2C) += snd-soc-cs42l51-i2c.o obj-$(CONFIG_SND_SOC_CS42L52) += snd-soc-cs42l52.o obj-$(CONFIG_SND_SOC_CS42L73) += snd-soc-cs42l73.o obj-$(CONFIG_SND_SOC_CS4270) += snd-soc-cs4270.o
sound/soc/codecs/cs42l51-i2c.c new file +59 -0
59 lines not on this page · raw message
+
sound/soc/codecs/cs42l51.c +20 -57
132 lines not on this page · raw message
sound/soc/codecs/cs42l51.h +5 -0
@@ -18,6 +18,11 @@#ifndef _CS42L51_H#define _CS42L51_H +struct device ; + +extern const struct regmap_config cs42l51_regmap; +int cs42l51_probe (struct device *dev,struct regmap *regmap); +#define CS42L51_CHIP_ID 0x1B#define CS42L51_CHIP_REV_A 0x00#define CS42L51_CHIP_REV_B 0x01
Signature · 1 line
1.7.9.5
Quoted 1 line · Brian Austin
This patch removes the i2c bus code from the codec driver and creates seperate i2c driver.
Applied, thanks but there was some fuzz applying - please check it came out OK and that you were submitting against current code.
Quoted 9 lines · Mark Brown
Quoted 3 lines · Brian Austin
This patch removes the i2c bus code from the codec driver and creates seperate i2c driver.
Applied, thanks but there was some fuzz applying - please check it came out OK and that you were submitting against current code.
Thanks, it was based off of topic/cs42l51. I'll check it now
Mark Brown
maintainerQuoted 6 lines · Brian
Quoted 4 lines · Mark Brown
Applied, thanks but there was some fuzz applying - please check it came out OK and that you were submitting against current code.
Thanks, it was based off of topic/cs42l51. I'll check it now
Oh, that explains it. Until I applied that patch there was no topic/cs42l51 - when Linus merges a branch I delete it and then start a new branch for any new work based off one of his -rcs (or another topic branch if there's a dependency). Your copy of the branch will have been pre-merge window. Since the merge window closed I'd deleted the old topic branch, the fuzz will have been due to some subsystem wide patches getting merged in.
Quoted 12 lines · Mark Brown
Quoted 6 lines · Brian
Quoted 4 lines · Mark Brown
Applied, thanks but there was some fuzz applying - please check it came out OK and that you were submitting against current code.
Thanks, it was based off of topic/cs42l51. I'll check it now
Quoted 7 lines
Oh, that explains it. Until I applied that patch there was no topic/cs42l51 - when Linus merges a branch I delete it and then start a new branch for any new work based off one of his -rcs (or another topic branch if there's a dependency). Your copy of the branch will have been pre-merge window. Since the merge window closed I'd deleted the old topic branch, the fuzz will have been due to some subsystem wide patches getting merged in.
Ah! That's good to know. I'm not that familiar with that yet, so I will keep better tabs on your branches and stick to for-next for compile tests.
Thanks Mark