ASoC: rt5616: add rt5616 codec driver
Subsystems (3)
PATCH 1/1 ASoC: rt5616: add rt5616 codec driver
This is the initial codec driver for rt5616.
--- sound/soc/codecs/Kconfig | 6 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rt5616.c | 1372 ++++++++++++++++++++++++++++++++++ sound/soc/codecs/rt5616.h | 1819 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 3199 insertions(+) create mode 100644 sound/soc/codecs/rt5616.c create mode 100644 sound/soc/codecs/rt5616.h
sound/soc/codecs/Kconfig +6 -0
@@ -95,6 +95,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_PCM512x_SPI if SPI_MASTER select SND_SOC_RT286 if I2C select SND_SOC_RT298 if I2C + select SND_SOC_RT5616 if I2C select SND_SOC_RT5631 if I2C select SND_SOC_RT5640 if I2C select SND_SOC_RT5645 if I2C
@@ -563,12 +564,14 @@ config SND_SOC_PCM512x_SPI config SND_SOC_RL6231 tristate + default y if SND_SOC_RT5616=y default y if SND_SOC_RT5640=y default y if SND_SOC_RT5645=y default y if SND_SOC_RT5651=y default y if SND_SOC_RT5659=y default y if SND_SOC_RT5670=y default y if SND_SOC_RT5677=y + default m if SND_SOC_RT5616=m default m if SND_SOC_RT5640=m default m if SND_SOC_RT5645=m default m if SND_SOC_RT5651=m
@@ -591,6 +594,9 @@ config SND_SOC_RT298 tristate depends on I2C +config SND_SOC_RT5616 + tristate + config SND_SOC_RT5631 tristate "Realtek ALC5631/RT5631 CODEC" depends on I2C
sound/soc/codecs/Makefile +2 -0
@@ -92,6 +92,7 @@ snd-soc-rl6231-objs := rl6231.o snd-soc-rl6347a-objs := rl6347a.o snd-soc-rt286-objs := rt286.o snd-soc-rt298-objs := rt298.o +snd-soc-rt5616-objs := rt5616.o snd-soc-rt5631-objs := rt5631.o snd-soc-rt5640-objs := rt5640.o snd-soc-rt5645-objs := rt5645.o
@@ -295,6 +296,7 @@ obj-$(CONFIG_SND_SOC_RL6231) += snd-soc-rl6231.o obj-$(CONFIG_SND_SOC_RL6347A) += snd-soc-rl6347a.o obj-$(CONFIG_SND_SOC_RT286) += snd-soc-rt286.o obj-$(CONFIG_SND_SOC_RT298) += snd-soc-rt298.o +obj-$(CONFIG_SND_SOC_RT5616) += snd-soc-rt5616.o obj-$(CONFIG_SND_SOC_RT5631) += snd-soc-rt5631.o obj-$(CONFIG_SND_SOC_RT5640) += snd-soc-rt5640.o obj-$(CONFIG_SND_SOC_RT5645) += snd-soc-rt5645.o
sound/soc/codecs/rt5616.c new file +1372 -0
1,372 lines not on this page · raw message
sound/soc/codecs/rt5616.h new file +1819 -0
1,584 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.8.1.1.439.g50a6b54
Part of the diff is not shown here. View the raw message.
Mark Brown
maintainerOn Tue, Dec 15, 2015 at 02:57:41PM +0800, Bard Liao wrote:
A couple of very minor issues with the control names here but otherwise this looks good - I'll apply this, please send followup patches fixing these:
sound/soc/codecs/rt5616.c line 329
Quoted 5 lines
sound/soc/codecs/rt5616.c new file +5
-0+/* IN1/IN2 Control */ +SOC_SINGLE_TLV ("IN1 Boost" ,RT5616_IN1_IN2 , +RT5616_BST_SFT1 ,8 ,0 , bst_tlv), +SOC_SINGLE_TLV ("IN2 Boost" ,RT5616_IN1_IN2 , + RT5616_BST_SFT2, 8, 0, bst_tlv),
These should be " Boost Volume".
sound/soc/codecs/rt5616.c line 344
Quoted 4 lines
sound/soc/codecs/rt5616.c new file +4
-0+/* ADC Boost Volume Control */ +SOC_DOUBLE_TLV ("ADC Boost Gain" ,RT5616_ADC_BST_VOL , +RT5616_ADC_L_BST_SFT ,RT5616_ADC_R_BST_SFT , + 3, 0, adc_bst_tlv),
Boost Volume (like the comments says!).
Mark Brown
maintainerApplied "ASoC: rt5616: add rt5616 codec driver" to the asoc tree
In reply to Bard LiaoThe patch
ASoC: rt5616: add rt5616 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
b1d15059957d33d111e0ed38724a6b2c5caac790Mon Sep 17 00:00:00 2001
From: Bard Liao <[email protected]>
Date: Tue, 15 Dec 2015 14:57:41 +0800
Subject: [PATCH] ASoC: rt5616: add rt5616 codec driver
This is the initial codec driver for rt5616.
--- sound/soc/codecs/Kconfig | 6 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rt5616.c | 1372 ++++++++++++++++++++++++++++++++++ sound/soc/codecs/rt5616.h | 1819 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 3199 insertions(+) create mode 100644 sound/soc/codecs/rt5616.c create mode 100644 sound/soc/codecs/rt5616.h
sound/soc/codecs/Kconfig +6 -0
@@ -89,6 +89,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_PCM512x_SPI if SPI_MASTER select SND_SOC_RT286 if I2C select SND_SOC_RT298 if I2C + select SND_SOC_RT5616 if I2C select SND_SOC_RT5631 if I2C select SND_SOC_RT5640 if I2C select SND_SOC_RT5645 if I2C
@@ -524,12 +525,14 @@ config SND_SOC_PCM512x_SPI config SND_SOC_RL6231 tristate + default y if SND_SOC_RT5616=y default y if SND_SOC_RT5640=y default y if SND_SOC_RT5645=y default y if SND_SOC_RT5651=y default y if SND_SOC_RT5659=y default y if SND_SOC_RT5670=y default y if SND_SOC_RT5677=y + default m if SND_SOC_RT5616=m default m if SND_SOC_RT5640=m default m if SND_SOC_RT5645=m default m if SND_SOC_RT5651=m
@@ -552,6 +555,9 @@ config SND_SOC_RT298 tristate depends on I2C +config SND_SOC_RT5616 + tristate + config SND_SOC_RT5631 tristate "Realtek ALC5631/RT5631 CODEC" depends on I2C
sound/soc/codecs/Makefile +2 -0
@@ -85,6 +85,7 @@ snd-soc-rl6231-objs := rl6231.o snd-soc-rl6347a-objs := rl6347a.o snd-soc-rt286-objs := rt286.o snd-soc-rt298-objs := rt298.o +snd-soc-rt5616-objs := rt5616.o snd-soc-rt5631-objs := rt5631.o snd-soc-rt5640-objs := rt5640.o snd-soc-rt5645-objs := rt5645.o
@@ -281,6 +282,7 @@ obj-$(CONFIG_SND_SOC_RL6231) += snd-soc-rl6231.o obj-$(CONFIG_SND_SOC_RL6347A) += snd-soc-rl6347a.o obj-$(CONFIG_SND_SOC_RT286) += snd-soc-rt286.o obj-$(CONFIG_SND_SOC_RT298) += snd-soc-rt298.o +obj-$(CONFIG_SND_SOC_RT5616) += snd-soc-rt5616.o obj-$(CONFIG_SND_SOC_RT5631) += snd-soc-rt5631.o obj-$(CONFIG_SND_SOC_RT5640) += snd-soc-rt5640.o obj-$(CONFIG_SND_SOC_RT5645) += snd-soc-rt5645.o
sound/soc/codecs/rt5616.c new file +1372 -0
1,372 lines not on this page · raw message
sound/soc/codecs/rt5616.h new file +1819 -0
1,584 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.6.2
Part of the diff is not shown here. View the raw message.