Skip to content

Commit cc3266b

Browse files
committed
Merge remote-tracking branches 'asoc/topic/rt5514', 'asoc/topic/rt5614', 'asoc/topic/rt5670' and 'asoc/topic/s8' into asoc-next
5 parents f341378 + c9506bb + e9802c5 + 874352a + dcc0799 commit cc3266b

File tree

9 files changed

+681
-3
lines changed

9 files changed

+681
-3
lines changed

Documentation/devicetree/bindings/sound/rt5514.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Required properties:
88

99
- reg : The I2C address of the device.
1010

11+
Optional properties:
12+
13+
- clocks: The phandle of the master clock to the CODEC
14+
- clock-names: Should be "mclk"
15+
1116
Pins on the device (for linking into audio routes) for RT5514:
1217

1318
* DMIC1L

include/sound/soc.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,17 @@
179179
.get = snd_soc_get_volsw, .put = snd_soc_put_volsw, \
180180
.private_value = SOC_DOUBLE_R_S_VALUE(reg_left, reg_right, xshift, \
181181
xmin, xmax, xsign_bit, xinvert) }
182+
#define SOC_SINGLE_S8_TLV(xname, xreg, xmin, xmax, tlv_array) \
183+
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
184+
.access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \
185+
SNDRV_CTL_ELEM_ACCESS_READWRITE, \
186+
.tlv.p = (tlv_array), \
187+
.info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\
188+
.put = snd_soc_put_volsw, \
189+
.private_value = (unsigned long)&(struct soc_mixer_control) \
190+
{.reg = xreg, .rreg = xreg, \
191+
.min = xmin, .max = xmax, .platform_max = xmax, \
192+
.sign_bit = 7,} }
182193
#define SOC_DOUBLE_S8_TLV(xname, xreg, xmin, xmax, tlv_array) \
183194
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
184195
.access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \

sound/soc/codecs/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,9 @@ config SND_SOC_RT298
674674
config SND_SOC_RT5514
675675
tristate
676676

677+
config SND_SOC_RT5514_SPI
678+
tristate
679+
677680
config SND_SOC_RT5616
678681
tristate "Realtek RT5616 CODEC"
679682
depends on I2C

sound/soc/codecs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ snd-soc-rl6347a-objs := rl6347a.o
105105
snd-soc-rt286-objs := rt286.o
106106
snd-soc-rt298-objs := rt298.o
107107
snd-soc-rt5514-objs := rt5514.o
108+
snd-soc-rt5514-spi-objs := rt5514-spi.o
108109
snd-soc-rt5616-objs := rt5616.o
109110
snd-soc-rt5631-objs := rt5631.o
110111
snd-soc-rt5640-objs := rt5640.o
@@ -325,6 +326,7 @@ obj-$(CONFIG_SND_SOC_RL6347A) += snd-soc-rl6347a.o
325326
obj-$(CONFIG_SND_SOC_RT286) += snd-soc-rt286.o
326327
obj-$(CONFIG_SND_SOC_RT298) += snd-soc-rt298.o
327328
obj-$(CONFIG_SND_SOC_RT5514) += snd-soc-rt5514.o
329+
obj-$(CONFIG_SND_SOC_RT5514_SPI) += snd-soc-rt5514-spi.o
328330
obj-$(CONFIG_SND_SOC_RT5616) += snd-soc-rt5616.o
329331
obj-$(CONFIG_SND_SOC_RT5631) += snd-soc-rt5631.o
330332
obj-$(CONFIG_SND_SOC_RT5640) += snd-soc-rt5640.o

0 commit comments

Comments
 (0)