ASoC: codecs: add support for the TI SRC4392 codec
PATCH v3 1/1 ASoC: codecs: add support for the TI SRC4392 codec
The src4xxx keyword is used for future capability to integrate
other codecs similar to the src4392 to the same code base.
---
Notes:
V3 changes :
* converted header to C++ comments
* added break to default switch cases
* updated SRC vol to SRC volume, scanned for other name issues
* now using yaml for the dt binding documentation (separate patch)
* Fixed Kconfig to select the _I2C module in menuconfig
V2 changes :
* Fixed indents in Kconfig
* Comment header of source code is now one block
* Documented the devicetree binding
* sample rate converter MCLK src is non-user settable
* hushed spurious dev_info output
* src4xxx_remove was empty is removed.
* Using switch in hw_params to select port reg. for clarity
* Removed interrupt reg. settings - will re-intro. properly later
* probe function is now EXPORT_SYMBOL_GPL
sound/soc/codecs/Kconfig | 13 + sound/soc/codecs/Makefile | 4 + sound/soc/codecs/src4xxx-i2c.c | 47 +++ sound/soc/codecs/src4xxx.c | 513 +++++++++++++++++++++++++++++++++ sound/soc/codecs/src4xxx.h | 113 ++++++++ 5 files changed, 690 insertions(+) create mode 100644 sound/soc/codecs/src4xxx-i2c.c create mode 100644 sound/soc/codecs/src4xxx.c create mode 100644 sound/soc/codecs/src4xxx.h
sound/soc/codecs/Kconfig +13 -0
@@ -205,6 +205,7 @@ config SND_SOC_ALL_CODECS imply SND_SOC_SIMPLE_AMPLIFIER imply SND_SOC_SIMPLE_MUX imply SND_SOC_SPDIF + imply SND_SOC_SRC4XXX_I2C imply SND_SOC_SSM2305 imply SND_SOC_SSM2518 imply SND_SOC_SSM2602_SPI
@@ -1471,6 +1472,18 @@ config SND_SOC_SIMPLE_MUX config SND_SOC_SPDIF tristate "S/PDIF CODEC" +config SND_SOC_SRC4XXX_I2C + tristate "Texas Instruments SRC4XXX DIR/DIT and SRC codecs" + depends on I2C + select SND_SOC_SRC4XXX + help + Enable support for the TI SRC4XXX family of codecs. These include the + scr4392 which has digital receivers, transmitters, and + a sample rate converter, including numerous ports. + +config SND_SOC_SRC4XXX + tristate + config SND_SOC_SSM2305 tristate "Analog Devices SSM2305 Class-D Amplifier" help
sound/soc/codecs/Makefile +4 -0
@@ -231,6 +231,8 @@ snd-soc-sigmadsp-regmap-objs := sigmadsp-regmap.o snd-soc-si476x-objs := si476x.o snd-soc-spdif-tx-objs := spdif_transmitter.o snd-soc-spdif-rx-objs := spdif_receiver.o +snd-soc-src4xxx-objs := src4xxx.o +snd-soc-src4xxx-i2c-objs := src4xxx-i2c.o snd-soc-ssm2305-objs := ssm2305.o snd-soc-ssm2518-objs := ssm2518.o snd-soc-ssm2602-objs := ssm2602.o
@@ -579,6 +581,8 @@ obj-$(CONFIG_SND_SOC_SIGMADSP_I2C) += snd-soc-sigmadsp-i2c.o obj-$(CONFIG_SND_SOC_SIGMADSP_REGMAP) += snd-soc-sigmadsp-regmap.o obj-$(CONFIG_SND_SOC_SI476X) += snd-soc-si476x.o obj-$(CONFIG_SND_SOC_SPDIF) += snd-soc-spdif-rx.o snd-soc-spdif-tx.o +obj-$(CONFIG_SND_SOC_SRC4XXX) += snd-soc-src4xxx.o +obj-$(CONFIG_SND_SOC_SRC4XXX_I2C) += snd-soc-src4xxx-i2c.o obj-$(CONFIG_SND_SOC_SSM2305) += snd-soc-ssm2305.o obj-$(CONFIG_SND_SOC_SSM2518) += snd-soc-ssm2518.o obj-$(CONFIG_SND_SOC_SSM2602) += snd-soc-ssm2602.o
sound/soc/codecs/src4xxx-i2c.c new file +47 -0
47 lines not on this page · raw message
sound/soc/codecs/src4xxx.c new file +513 -0
513 lines not on this page · raw message
sound/soc/codecs/src4xxx.h new file +113 -0
113 lines not on this page · raw message
Signature · 1 line
2.34.1
Mark Brown
maintainerQuoted 2 lines · Matt Flax
The src4xxx keyword is used for future capability to integrate
other codecs similar to the src4392 to the same code base.
This looks good.
Mark Brown
maintainerQuoted 4 lines · Matt Flax
The src4xxx keyword is used for future capability to integrate
other codecs similar to the src4392 to the same code base.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: codecs: add support for the TI SRC4392 codec
commit: 4e6bedd3c396014ba70de2b4c9995c8e024e82b3
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