Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e3ac3f25
Commit
e3ac3f25
authored
May 22, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/enum' into asoc-next
parents
566d4eef
9de98da2
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
58 additions
and
76 deletions
+58
-76
include/sound/soc-dapm.h
include/sound/soc-dapm.h
+0
-12
include/sound/soc.h
include/sound/soc.h
+0
-2
sound/soc/codecs/adau1373.c
sound/soc/codecs/adau1373.c
+3
-4
sound/soc/codecs/adav80x.c
sound/soc/codecs/adav80x.c
+4
-4
sound/soc/codecs/arizona.h
sound/soc/codecs/arizona.h
+2
-2
sound/soc/codecs/max98090.c
sound/soc/codecs/max98090.c
+2
-3
sound/soc/codecs/mc13783.c
sound/soc/codecs/mc13783.c
+4
-4
sound/soc/codecs/pcm512x.c
sound/soc/codecs/pcm512x.c
+1
-1
sound/soc/codecs/rt5640.c
sound/soc/codecs/rt5640.c
+2
-2
sound/soc/codecs/wm2200.c
sound/soc/codecs/wm2200.c
+2
-2
sound/soc/codecs/wm5100.c
sound/soc/codecs/wm5100.c
+2
-2
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5102.c
+7
-7
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm5110.c
+9
-9
sound/soc/codecs/wm8988.c
sound/soc/codecs/wm8988.c
+4
-4
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.c
+6
-6
sound/soc/codecs/wm8995.c
sound/soc/codecs/wm8995.c
+4
-6
sound/soc/codecs/wm8997.c
sound/soc/codecs/wm8997.c
+6
-6
No files found.
include/sound/soc-dapm.h
View file @
e3ac3f25
...
...
@@ -107,10 +107,6 @@ struct device;
{ .id = snd_soc_dapm_mux, .name = wname, \
SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \
.kcontrol_news = wcontrols, .num_kcontrols = 1}
#define SND_SOC_DAPM_VIRT_MUX(wname, wreg, wshift, winvert, wcontrols) \
SND_SOC_DAPM_MUX(wname, wreg, wshift, winvert, wcontrols)
#define SND_SOC_DAPM_VALUE_MUX(wname, wreg, wshift, winvert, wcontrols) \
SND_SOC_DAPM_MUX(wname, wreg, wshift, winvert, wcontrols)
/* Simplified versions of above macros, assuming wncontrols = ARRAY_SIZE(wcontrols) */
#define SOC_PGA_ARRAY(wname, wreg, wshift, winvert,\
...
...
@@ -166,10 +162,6 @@ struct device;
SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \
.kcontrol_news = wcontrols, .num_kcontrols = 1, \
.event = wevent, .event_flags = wflags}
#define SND_SOC_DAPM_VIRT_MUX_E(wname, wreg, wshift, winvert, wcontrols, \
wevent, wflags) \
SND_SOC_DAPM_MUX_E(wname, wreg, wshift, winvert, wcontrols, wevent, \
wflags)
/* additional sequencing control within an event type */
#define SND_SOC_DAPM_PGA_S(wname, wsubseq, wreg, wshift, winvert, \
...
...
@@ -304,16 +296,12 @@ struct device;
.get = snd_soc_dapm_get_enum_double, \
.put = snd_soc_dapm_put_enum_double, \
.private_value = (unsigned long)&xenum }
#define SOC_DAPM_ENUM_VIRT(xname, xenum) \
SOC_DAPM_ENUM(xname, xenum)
#define SOC_DAPM_ENUM_EXT(xname, xenum, xget, xput) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_soc_info_enum_double, \
.get = xget, \
.put = xput, \
.private_value = (unsigned long)&xenum }
#define SOC_DAPM_VALUE_ENUM(xname, xenum) \
SOC_DAPM_ENUM(xname, xenum)
#define SOC_DAPM_PIN_SWITCH(xname) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname " Switch", \
.info = snd_soc_dapm_info_pin_switch, \
...
...
include/sound/soc.h
View file @
e3ac3f25
...
...
@@ -196,8 +196,6 @@
.info = snd_soc_info_enum_double, \
.get = snd_soc_get_enum_double, .put = snd_soc_put_enum_double, \
.private_value = (unsigned long)&xenum }
#define SOC_VALUE_ENUM(xname, xenum) \
SOC_ENUM(xname, xenum)
#define SOC_SINGLE_EXT(xname, xreg, xshift, xmax, xinvert,\
xhandler_get, xhandler_put) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
...
...
sound/soc/codecs/adau1373.c
View file @
e3ac3f25
...
...
@@ -519,8 +519,7 @@ static const struct snd_kcontrol_new adau1373_controls[] = {
SOC_ENUM
(
"HPF Channel"
,
adau1373_hpf_channel_enum
),
SOC_ENUM
(
"Bass HPF Cutoff"
,
adau1373_bass_hpf_cutoff_enum
),
SOC_VALUE_ENUM
(
"Bass Clip Level Threshold"
,
adau1373_bass_clip_level_enum
),
SOC_ENUM
(
"Bass Clip Level Threshold"
,
adau1373_bass_clip_level_enum
),
SOC_ENUM
(
"Bass LPF Cutoff"
,
adau1373_bass_lpf_cutoff_enum
),
SOC_DOUBLE
(
"Bass Playback Switch"
,
ADAU1373_BASS2
,
0
,
1
,
1
,
0
),
SOC_SINGLE_TLV
(
"Bass Playback Volume"
,
ADAU1373_BASS2
,
2
,
7
,
0
,
...
...
@@ -580,7 +579,7 @@ static SOC_ENUM_SINGLE_VIRT_DECL(adau1373_decimator_enum,
adau1373_decimator_text
);
static
const
struct
snd_kcontrol_new
adau1373_decimator_mux
=
SOC_DAPM_ENUM
_VIRT
(
"Decimator Mux"
,
adau1373_decimator_enum
);
SOC_DAPM_ENUM
(
"Decimator Mux"
,
adau1373_decimator_enum
);
static
const
struct
snd_kcontrol_new
adau1373_left_adc_mixer_controls
[]
=
{
SOC_DAPM_SINGLE
(
"DAC1 Switch"
,
ADAU1373_LADC_MIXER
,
4
,
1
,
0
),
...
...
@@ -694,7 +693,7 @@ static const struct snd_soc_dapm_widget adau1373_dapm_widgets[] = {
SND_SOC_DAPM_ADC
(
"DMIC1"
,
NULL
,
ADAU1373_DIGMICCTRL
,
0
,
0
),
SND_SOC_DAPM_ADC
(
"DMIC2"
,
NULL
,
ADAU1373_DIGMICCTRL
,
2
,
0
),
SND_SOC_DAPM_
VIRT_
MUX
(
"Decimator Mux"
,
SND_SOC_NOPM
,
0
,
0
,
SND_SOC_DAPM_MUX
(
"Decimator Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
adau1373_decimator_mux
),
SND_SOC_DAPM_SUPPLY
(
"MICBIAS2"
,
ADAU1373_PWDN_CTRL1
,
5
,
0
,
NULL
,
0
),
...
...
sound/soc/codecs/adav80x.c
View file @
e3ac3f25
...
...
@@ -172,14 +172,14 @@ static ADAV80X_MUX_ENUM_DECL(adav80x_capture_enum, ADAV80X_DPATH_CTRL1, 3);
static
ADAV80X_MUX_ENUM_DECL
(
adav80x_dac_enum
,
ADAV80X_DPATH_CTRL2
,
3
);
static
const
struct
snd_kcontrol_new
adav80x_aux_capture_mux_ctrl
=
SOC_DAPM_
VALUE_
ENUM
(
"Route"
,
adav80x_aux_capture_enum
);
SOC_DAPM_ENUM
(
"Route"
,
adav80x_aux_capture_enum
);
static
const
struct
snd_kcontrol_new
adav80x_capture_mux_ctrl
=
SOC_DAPM_
VALUE_
ENUM
(
"Route"
,
adav80x_capture_enum
);
SOC_DAPM_ENUM
(
"Route"
,
adav80x_capture_enum
);
static
const
struct
snd_kcontrol_new
adav80x_dac_mux_ctrl
=
SOC_DAPM_
VALUE_
ENUM
(
"Route"
,
adav80x_dac_enum
);
SOC_DAPM_ENUM
(
"Route"
,
adav80x_dac_enum
);
#define ADAV80X_MUX(name, ctrl) \
SND_SOC_DAPM_
VALUE_
MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
SND_SOC_DAPM_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
static
const
struct
snd_soc_dapm_widget
adav80x_dapm_widgets
[]
=
{
SND_SOC_DAPM_DAC
(
"DAC"
,
NULL
,
ADAV80X_DAC_CTRL1
,
7
,
1
),
...
...
sound/soc/codecs/arizona.h
View file @
e3ac3f25
...
...
@@ -107,7 +107,7 @@ extern int arizona_mixer_values[ARIZONA_NUM_MIXER_INPUTS];
#define ARIZONA_MUX_CTL_DECL(name) \
const struct snd_kcontrol_new name##_mux = \
SOC_DAPM_
VALUE_
ENUM("Route", name##_enum)
SOC_DAPM_ENUM("Route", name##_enum)
#define ARIZONA_MUX_ENUMS(name, base_reg) \
static ARIZONA_MUX_ENUM_DECL(name##_enum, base_reg); \
...
...
@@ -128,7 +128,7 @@ extern int arizona_mixer_values[ARIZONA_NUM_MIXER_INPUTS];
ARIZONA_MUX_ENUMS(name##_aux6, base_reg + 40)
#define ARIZONA_MUX(name, ctrl) \
SND_SOC_DAPM_
VALUE_
MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
SND_SOC_DAPM_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
#define ARIZONA_MUX_WIDGETS(name, name_str) \
ARIZONA_MUX(name_str " Input", &name##_mux)
...
...
sound/soc/codecs/max98090.c
View file @
e3ac3f25
...
...
@@ -877,7 +877,7 @@ static const char *dmic_mux_text[] = { "ADC", "DMIC" };
static
SOC_ENUM_SINGLE_VIRT_DECL
(
dmic_mux_enum
,
dmic_mux_text
);
static
const
struct
snd_kcontrol_new
max98090_dmic_mux
=
SOC_DAPM_ENUM
_VIRT
(
"DMIC Mux"
,
dmic_mux_enum
);
SOC_DAPM_ENUM
(
"DMIC Mux"
,
dmic_mux_enum
);
static
const
char
*
max98090_micpre_text
[]
=
{
"Off"
,
"On"
};
...
...
@@ -1177,8 +1177,7 @@ static const struct snd_soc_dapm_widget max98090_dapm_widgets[] = {
SND_SOC_DAPM_MUX
(
"MIC2 Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
max98090_mic2_mux
),
SND_SOC_DAPM_VIRT_MUX
(
"DMIC Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
max98090_dmic_mux
),
SND_SOC_DAPM_MUX
(
"DMIC Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
max98090_dmic_mux
),
SND_SOC_DAPM_PGA_E
(
"MIC1 Input"
,
M98090_REG_MIC1_INPUT_LEVEL
,
M98090_MIC_PA1EN_SHIFT
,
0
,
NULL
,
0
,
max98090_micinput_event
,
...
...
sound/soc/codecs/mc13783.c
View file @
e3ac3f25
...
...
@@ -409,7 +409,7 @@ static const char * const adcl_enum_text[] = {
static
SOC_ENUM_SINGLE_VIRT_DECL
(
adcl_enum
,
adcl_enum_text
);
static
const
struct
snd_kcontrol_new
left_input_mux
=
SOC_DAPM_ENUM
_VIRT
(
"Route"
,
adcl_enum
);
SOC_DAPM_ENUM
(
"Route"
,
adcl_enum
);
static
const
char
*
const
adcr_enum_text
[]
=
{
"MC1R"
,
"MC2"
,
"RXINR"
,
"TXIN"
,
...
...
@@ -418,7 +418,7 @@ static const char * const adcr_enum_text[] = {
static
SOC_ENUM_SINGLE_VIRT_DECL
(
adcr_enum
,
adcr_enum_text
);
static
const
struct
snd_kcontrol_new
right_input_mux
=
SOC_DAPM_ENUM
_VIRT
(
"Route"
,
adcr_enum
);
SOC_DAPM_ENUM
(
"Route"
,
adcr_enum
);
static
const
struct
snd_kcontrol_new
samp_ctl
=
SOC_DAPM_SINGLE
(
"Switch"
,
MC13783_AUDIO_RX0
,
3
,
1
,
0
);
...
...
@@ -478,9 +478,9 @@ static const struct snd_soc_dapm_widget mc13783_dapm_widgets[] = {
SND_SOC_DAPM_SWITCH
(
"MC2 Amp"
,
MC13783_AUDIO_TX
,
9
,
0
,
&
mc2_amp_ctl
),
SND_SOC_DAPM_SWITCH
(
"TXIN Amp"
,
MC13783_AUDIO_TX
,
11
,
0
,
&
atx_amp_ctl
),
SND_SOC_DAPM_
VIRT_
MUX
(
"PGA Left Input Mux"
,
SND_SOC_NOPM
,
0
,
0
,
SND_SOC_DAPM_MUX
(
"PGA Left Input Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
left_input_mux
),
SND_SOC_DAPM_
VIRT_
MUX
(
"PGA Right Input Mux"
,
SND_SOC_NOPM
,
0
,
0
,
SND_SOC_DAPM_MUX
(
"PGA Right Input Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
right_input_mux
),
SND_SOC_DAPM_MUX
(
"Speaker Amp Source MUX"
,
SND_SOC_NOPM
,
0
,
0
,
...
...
sound/soc/codecs/pcm512x.c
View file @
e3ac3f25
...
...
@@ -269,7 +269,7 @@ SOC_DOUBLE("Playback Digital Switch", PCM512x_MUTE, PCM512x_RQML_SHIFT,
PCM512x_RQMR_SHIFT
,
1
,
1
),
SOC_SINGLE
(
"Deemphasis Switch"
,
PCM512x_DSP
,
PCM512x_DEMP_SHIFT
,
1
,
1
),
SOC_
VALUE_
ENUM
(
"DSP Program"
,
pcm512x_dsp_program
),
SOC_ENUM
(
"DSP Program"
,
pcm512x_dsp_program
),
SOC_ENUM
(
"Clock Missing Period"
,
pcm512x_clk_missing
),
SOC_ENUM
(
"Auto Mute Time Left"
,
pcm512x_autom_l
),
...
...
sound/soc/codecs/rt5640.c
View file @
e3ac3f25
...
...
@@ -824,7 +824,7 @@ static SOC_VALUE_ENUM_SINGLE_DECL(rt5640_dac_l2_enum,
0x3
,
rt5640_dac_l2_src
,
rt5640_dac_l2_values
);
static
const
struct
snd_kcontrol_new
rt5640_dac_l2_mux
=
SOC_DAPM_
VALUE_
ENUM
(
"DAC2 left channel source"
,
rt5640_dac_l2_enum
);
SOC_DAPM_ENUM
(
"DAC2 left channel source"
,
rt5640_dac_l2_enum
);
static
const
char
*
const
rt5640_dac_r2_src
[]
=
{
"IF2"
,
...
...
@@ -859,7 +859,7 @@ static SOC_VALUE_ENUM_SINGLE_DECL(rt5640_dai_iis_map_enum,
rt5640_dai_iis_map_values
);
static
const
struct
snd_kcontrol_new
rt5640_dai_mux
=
SOC_DAPM_
VALUE_
ENUM
(
"DAI select"
,
rt5640_dai_iis_map_enum
);
SOC_DAPM_ENUM
(
"DAI select"
,
rt5640_dai_iis_map_enum
);
/* SDI select */
static
const
char
*
const
rt5640_sdi_sel
[]
=
{
...
...
sound/soc/codecs/wm2200.c
View file @
e3ac3f25
...
...
@@ -1083,7 +1083,7 @@ static int wm2200_mixer_values[] = {
#define WM2200_MUX_CTL_DECL(name) \
const struct snd_kcontrol_new name##_mux = \
SOC_DAPM_
VALUE_
ENUM("Route", name##_enum)
SOC_DAPM_ENUM("Route", name##_enum)
#define WM2200_MIXER_ENUMS(name, base_reg) \
static WM2200_MUX_ENUM_DECL(name##_in1_enum, base_reg); \
...
...
@@ -1207,7 +1207,7 @@ WM2200_MIXER_ENUMS(LHPF1, WM2200_LHPF1MIX_INPUT_1_SOURCE);
WM2200_MIXER_ENUMS
(
LHPF2
,
WM2200_LHPF2MIX_INPUT_1_SOURCE
);
#define WM2200_MUX(name, ctrl) \
SND_SOC_DAPM_
VALUE_
MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
SND_SOC_DAPM_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
#define WM2200_MIXER_WIDGETS(name, name_str) \
WM2200_MUX(name_str " Input 1", &name##_in1_mux), \
...
...
sound/soc/codecs/wm5100.c
View file @
e3ac3f25
...
...
@@ -390,7 +390,7 @@ static int wm5100_mixer_values[] = {
#define WM5100_MUX_CTL_DECL(name) \
const struct snd_kcontrol_new name##_mux = \
SOC_DAPM_
VALUE_
ENUM("Route", name##_enum)
SOC_DAPM_ENUM("Route", name##_enum)
#define WM5100_MIXER_ENUMS(name, base_reg) \
static WM5100_MUX_ENUM_DECL(name##_in1_enum, base_reg); \
...
...
@@ -448,7 +448,7 @@ WM5100_MIXER_ENUMS(LHPF3, WM5100_HPLP3MIX_INPUT_1_SOURCE);
WM5100_MIXER_ENUMS
(
LHPF4
,
WM5100_HPLP4MIX_INPUT_1_SOURCE
);
#define WM5100_MUX(name, ctrl) \
SND_SOC_DAPM_
VALUE_
MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
SND_SOC_DAPM_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
#define WM5100_MIXER_WIDGETS(name, name_str) \
WM5100_MUX(name_str " Input 1", &name##_in1_mux), \
...
...
sound/soc/codecs/wm5102.c
View file @
e3ac3f25
...
...
@@ -764,8 +764,8 @@ SOC_ENUM("LHPF2 Mode", arizona_lhpf2_mode),
SOC_ENUM
(
"LHPF3 Mode"
,
arizona_lhpf3_mode
),
SOC_ENUM
(
"LHPF4 Mode"
,
arizona_lhpf4_mode
),
SOC_
VALUE_
ENUM
(
"ISRC1 FSL"
,
arizona_isrc_fsl
[
0
]),
SOC_
VALUE_
ENUM
(
"ISRC2 FSL"
,
arizona_isrc_fsl
[
1
]),
SOC_ENUM
(
"ISRC1 FSL"
,
arizona_isrc_fsl
[
0
]),
SOC_ENUM
(
"ISRC2 FSL"
,
arizona_isrc_fsl
[
1
]),
ARIZONA_MIXER_CONTROLS
(
"Mic"
,
ARIZONA_MICMIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"Noise"
,
ARIZONA_NOISEMIX_INPUT_1_SOURCE
),
...
...
@@ -814,9 +814,9 @@ SOC_DOUBLE_R_TLV("SPKDAT1 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_5L,
ARIZONA_DAC_DIGITAL_VOLUME_5R
,
ARIZONA_OUT5L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_
VALUE_
ENUM
(
"HPOUT1 OSR"
,
wm5102_hpout_osr
[
0
]),
SOC_
VALUE_
ENUM
(
"HPOUT2 OSR"
,
wm5102_hpout_osr
[
1
]),
SOC_
VALUE_
ENUM
(
"EPOUT OSR"
,
wm5102_hpout_osr
[
2
]),
SOC_ENUM
(
"HPOUT1 OSR"
,
wm5102_hpout_osr
[
0
]),
SOC_ENUM
(
"HPOUT2 OSR"
,
wm5102_hpout_osr
[
1
]),
SOC_ENUM
(
"EPOUT OSR"
,
wm5102_hpout_osr
[
2
]),
SOC_DOUBLE
(
"HPOUT1 DRE Switch"
,
ARIZONA_DRE_ENABLE
,
ARIZONA_DRE1L_ENA_SHIFT
,
ARIZONA_DRE1R_ENA_SHIFT
,
1
,
0
),
...
...
@@ -970,7 +970,7 @@ static const struct soc_enum wm5102_aec_loopback =
wm5102_aec_loopback_values
);
static
const
struct
snd_kcontrol_new
wm5102_aec_loopback_mux
=
SOC_DAPM_
VALUE_
ENUM
(
"AEC Loopback"
,
wm5102_aec_loopback
);
SOC_DAPM_ENUM
(
"AEC Loopback"
,
wm5102_aec_loopback
);
static
const
struct
snd_soc_dapm_widget
wm5102_dapm_widgets
[]
=
{
SND_SOC_DAPM_SUPPLY
(
"SYSCLK"
,
ARIZONA_SYSTEM_CLOCK_1
,
ARIZONA_SYSCLK_ENA_SHIFT
,
...
...
@@ -1204,7 +1204,7 @@ SND_SOC_DAPM_AIF_IN("SLIMRX8", NULL, 0,
ARIZONA_DSP_WIDGETS
(
DSP1
,
"DSP1"
),
SND_SOC_DAPM_
VALUE_
MUX
(
"AEC Loopback"
,
ARIZONA_DAC_AEC_CONTROL_1
,
SND_SOC_DAPM_MUX
(
"AEC Loopback"
,
ARIZONA_DAC_AEC_CONTROL_1
,
ARIZONA_AEC_LOOPBACK_ENA_SHIFT
,
0
,
&
wm5102_aec_loopback_mux
),
...
...
sound/soc/codecs/wm5110.c
View file @
e3ac3f25
...
...
@@ -324,13 +324,13 @@ SOC_ENUM("LHPF2 Mode", arizona_lhpf2_mode),
SOC_ENUM
(
"LHPF3 Mode"
,
arizona_lhpf3_mode
),
SOC_ENUM
(
"LHPF4 Mode"
,
arizona_lhpf4_mode
),
SOC_
VALUE_
ENUM
(
"ISRC1 FSL"
,
arizona_isrc_fsl
[
0
]),
SOC_
VALUE_
ENUM
(
"ISRC2 FSL"
,
arizona_isrc_fsl
[
1
]),
SOC_
VALUE_
ENUM
(
"ISRC3 FSL"
,
arizona_isrc_fsl
[
2
]),
SOC_
VALUE_
ENUM
(
"ISRC1 FSH"
,
arizona_isrc_fsh
[
0
]),
SOC_
VALUE_
ENUM
(
"ISRC2 FSH"
,
arizona_isrc_fsh
[
1
]),
SOC_
VALUE_
ENUM
(
"ISRC3 FSH"
,
arizona_isrc_fsh
[
2
]),
SOC_
VALUE_
ENUM
(
"ASRC RATE 1"
,
arizona_asrc_rate1
),
SOC_ENUM
(
"ISRC1 FSL"
,
arizona_isrc_fsl
[
0
]),
SOC_ENUM
(
"ISRC2 FSL"
,
arizona_isrc_fsl
[
1
]),
SOC_ENUM
(
"ISRC3 FSL"
,
arizona_isrc_fsl
[
2
]),
SOC_ENUM
(
"ISRC1 FSH"
,
arizona_isrc_fsh
[
0
]),
SOC_ENUM
(
"ISRC2 FSH"
,
arizona_isrc_fsh
[
1
]),
SOC_ENUM
(
"ISRC3 FSH"
,
arizona_isrc_fsh
[
2
]),
SOC_ENUM
(
"ASRC RATE 1"
,
arizona_asrc_rate1
),
ARIZONA_MIXER_CONTROLS
(
"DSP1L"
,
ARIZONA_DSP1LMIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"DSP1R"
,
ARIZONA_DSP1RMIX_INPUT_1_SOURCE
),
...
...
@@ -592,7 +592,7 @@ static const struct soc_enum wm5110_aec_loopback =
wm5110_aec_loopback_values
);
static
const
struct
snd_kcontrol_new
wm5110_aec_loopback_mux
=
SOC_DAPM_
VALUE_
ENUM
(
"AEC Loopback"
,
wm5110_aec_loopback
);
SOC_DAPM_ENUM
(
"AEC Loopback"
,
wm5110_aec_loopback
);
static
const
struct
snd_soc_dapm_widget
wm5110_dapm_widgets
[]
=
{
SND_SOC_DAPM_SUPPLY
(
"SYSCLK"
,
ARIZONA_SYSTEM_CLOCK_1
,
ARIZONA_SYSCLK_ENA_SHIFT
,
...
...
@@ -774,7 +774,7 @@ SND_SOC_DAPM_PGA("ISRC3DEC3", ARIZONA_ISRC_3_CTRL_3,
SND_SOC_DAPM_PGA
(
"ISRC3DEC4"
,
ARIZONA_ISRC_3_CTRL_3
,
ARIZONA_ISRC3_DEC3_ENA_SHIFT
,
0
,
NULL
,
0
),
SND_SOC_DAPM_
VALUE_
MUX
(
"AEC Loopback"
,
ARIZONA_DAC_AEC_CONTROL_1
,
SND_SOC_DAPM_MUX
(
"AEC Loopback"
,
ARIZONA_DAC_AEC_CONTROL_1
,
ARIZONA_AEC_LOOPBACK_ENA_SHIFT
,
0
,
&
wm5110_aec_loopback_mux
),
...
...
sound/soc/codecs/wm8988.c
View file @
e3ac3f25
...
...
@@ -268,7 +268,7 @@ static const struct soc_enum wm8988_lline_enum =
wm8988_line_texts
,
wm8988_line_values
);
static
const
struct
snd_kcontrol_new
wm8988_left_line_controls
=
SOC_DAPM_
VALUE_
ENUM
(
"Route"
,
wm8988_lline_enum
);
SOC_DAPM_ENUM
(
"Route"
,
wm8988_lline_enum
);
static
const
struct
soc_enum
wm8988_rline_enum
=
SOC_VALUE_ENUM_SINGLE
(
WM8988_ROUTM1
,
0
,
7
,
...
...
@@ -276,7 +276,7 @@ static const struct soc_enum wm8988_rline_enum =
wm8988_line_texts
,
wm8988_line_values
);
static
const
struct
snd_kcontrol_new
wm8988_right_line_controls
=
SOC_DAPM_
VALUE_
ENUM
(
"Route"
,
wm8988_lline_enum
);
SOC_DAPM_ENUM
(
"Route"
,
wm8988_lline_enum
);
/* Left Mixer */
static
const
struct
snd_kcontrol_new
wm8988_left_mixer_controls
[]
=
{
...
...
@@ -304,7 +304,7 @@ static const struct soc_enum wm8988_lpga_enum =
wm8988_pga_sel
,
wm8988_pga_val
);
static
const
struct
snd_kcontrol_new
wm8988_left_pga_controls
=
SOC_DAPM_
VALUE_
ENUM
(
"Route"
,
wm8988_lpga_enum
);
SOC_DAPM_ENUM
(
"Route"
,
wm8988_lpga_enum
);
/* Right PGA Mux */
static
const
struct
soc_enum
wm8988_rpga_enum
=
...
...
@@ -313,7 +313,7 @@ static const struct soc_enum wm8988_rpga_enum =
wm8988_pga_sel
,
wm8988_pga_val
);
static
const
struct
snd_kcontrol_new
wm8988_right_pga_controls
=
SOC_DAPM_
VALUE_
ENUM
(
"Route"
,
wm8988_rpga_enum
);
SOC_DAPM_ENUM
(
"Route"
,
wm8988_rpga_enum
);
/* Differential Mux */
static
const
char
*
wm8988_diff_sel
[]
=
{
"Line 1"
,
"Line 2"
};
...
...
sound/soc/codecs/wm8994.c
View file @
e3ac3f25
...
...
@@ -1347,10 +1347,10 @@ static const char *adc_mux_text[] = {
static
SOC_ENUM_SINGLE_VIRT_DECL
(
adc_enum
,
adc_mux_text
);
static
const
struct
snd_kcontrol_new
adcl_mux
=
SOC_DAPM_ENUM
_VIRT
(
"ADCL Mux"
,
adc_enum
);
SOC_DAPM_ENUM
(
"ADCL Mux"
,
adc_enum
);
static
const
struct
snd_kcontrol_new
adcr_mux
=
SOC_DAPM_ENUM
_VIRT
(
"ADCR Mux"
,
adc_enum
);
SOC_DAPM_ENUM
(
"ADCR Mux"
,
adc_enum
);
static
const
struct
snd_kcontrol_new
left_speaker_mixer
[]
=
{
SOC_DAPM_SINGLE
(
"DAC2 Switch"
,
WM8994_SPEAKER_MIXER
,
9
,
1
,
0
),
...
...
@@ -1651,15 +1651,15 @@ SND_SOC_DAPM_DAC("DAC1R", NULL, WM8994_POWER_MANAGEMENT_5, 0, 0),
};
static
const
struct
snd_soc_dapm_widget
wm8994_adc_revd_widgets
[]
=
{
SND_SOC_DAPM_
VIRT_
MUX_E
(
"ADCL Mux"
,
WM8994_POWER_MANAGEMENT_4
,
1
,
0
,
&
adcl_mux
,
SND_SOC_DAPM_MUX_E
(
"ADCL Mux"
,
WM8994_POWER_MANAGEMENT_4
,
1
,
0
,
&
adcl_mux
,
adc_mux_ev
,
SND_SOC_DAPM_PRE_PMU
),
SND_SOC_DAPM_
VIRT_
MUX_E
(
"ADCR Mux"
,
WM8994_POWER_MANAGEMENT_4
,
0
,
0
,
&
adcr_mux
,
SND_SOC_DAPM_MUX_E
(
"ADCR Mux"
,
WM8994_POWER_MANAGEMENT_4
,
0
,
0
,
&
adcr_mux
,
adc_mux_ev
,
SND_SOC_DAPM_PRE_PMU
),
};
static
const
struct
snd_soc_dapm_widget
wm8994_adc_widgets
[]
=
{
SND_SOC_DAPM_
VIRT_
MUX
(
"ADCL Mux"
,
WM8994_POWER_MANAGEMENT_4
,
1
,
0
,
&
adcl_mux
),
SND_SOC_DAPM_
VIRT_
MUX
(
"ADCR Mux"
,
WM8994_POWER_MANAGEMENT_4
,
0
,
0
,
&
adcr_mux
),
SND_SOC_DAPM_MUX
(
"ADCL Mux"
,
WM8994_POWER_MANAGEMENT_4
,
1
,
0
,
&
adcl_mux
),
SND_SOC_DAPM_MUX
(
"ADCR Mux"
,
WM8994_POWER_MANAGEMENT_4
,
0
,
0
,
&
adcr_mux
),
};
static
const
struct
snd_soc_dapm_widget
wm8994_dapm_widgets
[]
=
{
...
...
sound/soc/codecs/wm8995.c
View file @
e3ac3f25
...
...
@@ -885,10 +885,10 @@ static const char *adc_mux_text[] = {
static
SOC_ENUM_SINGLE_VIRT_DECL
(
adc_enum
,
adc_mux_text
);
static
const
struct
snd_kcontrol_new
adcl_mux
=
SOC_DAPM_ENUM
_VIRT
(
"ADCL Mux"
,
adc_enum
);
SOC_DAPM_ENUM
(
"ADCL Mux"
,
adc_enum
);
static
const
struct
snd_kcontrol_new
adcr_mux
=
SOC_DAPM_ENUM
_VIRT
(
"ADCR Mux"
,
adc_enum
);
SOC_DAPM_ENUM
(
"ADCR Mux"
,
adc_enum
);
static
const
char
*
spk_src_text
[]
=
{
"DAC1L"
,
"DAC1R"
,
"DAC2L"
,
"DAC2R"
...
...
@@ -948,10 +948,8 @@ static const struct snd_soc_dapm_widget wm8995_dapm_widgets[] = {
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADC2R"
,
"AIF1 Capture"
,
0
,
WM8995_POWER_MANAGEMENT_3
,
10
,
0
),
SND_SOC_DAPM_VIRT_MUX
(
"ADCL Mux"
,
SND_SOC_NOPM
,
1
,
0
,
&
adcl_mux
),
SND_SOC_DAPM_VIRT_MUX
(
"ADCR Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
adcr_mux
),
SND_SOC_DAPM_MUX
(
"ADCL Mux"
,
SND_SOC_NOPM
,
1
,
0
,
&
adcl_mux
),
SND_SOC_DAPM_MUX
(
"ADCR Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
adcr_mux
),
SND_SOC_DAPM_ADC
(
"DMIC2L"
,
NULL
,
WM8995_POWER_MANAGEMENT_3
,
5
,
0
),
SND_SOC_DAPM_ADC
(
"DMIC2R"
,
NULL
,
WM8995_POWER_MANAGEMENT_3
,
4
,
0
),
...
...
sound/soc/codecs/wm8997.c
View file @
e3ac3f25
...
...
@@ -245,8 +245,8 @@ SND_SOC_BYTES("LHPF2 Coefficients", ARIZONA_HPLPF2_2, 1),
SND_SOC_BYTES
(
"LHPF3 Coefficients"
,
ARIZONA_HPLPF3_2
,
1
),
SND_SOC_BYTES
(
"LHPF4 Coefficients"
,
ARIZONA_HPLPF4_2
,
1
),
SOC_
VALUE_
ENUM
(
"ISRC1 FSL"
,
arizona_isrc_fsl
[
0
]),
SOC_
VALUE_
ENUM
(
"ISRC2 FSL"
,
arizona_isrc_fsl
[
1
]),
SOC_ENUM
(
"ISRC1 FSL"
,
arizona_isrc_fsl
[
0
]),
SOC_ENUM
(
"ISRC2 FSL"
,
arizona_isrc_fsl
[
1
]),
ARIZONA_MIXER_CONTROLS
(
"Mic"
,
ARIZONA_MICMIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"Noise"
,
ARIZONA_NOISEMIX_INPUT_1_SOURCE
),
...
...
@@ -286,8 +286,8 @@ SOC_DOUBLE_R_TLV("SPKDAT1 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_5L,
ARIZONA_DAC_DIGITAL_VOLUME_5R
,
ARIZONA_OUT5L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_
VALUE_
ENUM
(
"HPOUT1 OSR"
,
wm8997_hpout_osr
[
0
]),
SOC_
VALUE_
ENUM
(
"EPOUT OSR"
,
wm8997_hpout_osr
[
1
]),
SOC_ENUM
(
"HPOUT1 OSR"
,
wm8997_hpout_osr
[
0
]),
SOC_ENUM
(
"EPOUT OSR"
,
wm8997_hpout_osr
[
1
]),
SOC_ENUM
(
"Output Ramp Up"
,
arizona_out_vi_ramp
),
SOC_ENUM
(
"Output Ramp Down"
,
arizona_out_vd_ramp
),
...
...
@@ -405,7 +405,7 @@ static const struct soc_enum wm8997_aec_loopback =
wm8997_aec_loopback_values
);
static
const
struct
snd_kcontrol_new
wm8997_aec_loopback_mux
=
SOC_DAPM_
VALUE_
ENUM
(
"AEC Loopback"
,
wm8997_aec_loopback
);
SOC_DAPM_ENUM
(
"AEC Loopback"
,
wm8997_aec_loopback
);
static
const
struct
snd_soc_dapm_widget
wm8997_dapm_widgets
[]
=
{
SND_SOC_DAPM_SUPPLY
(
"SYSCLK"
,
ARIZONA_SYSTEM_CLOCK_1
,
ARIZONA_SYSCLK_ENA_SHIFT
,
...
...
@@ -604,7 +604,7 @@ SND_SOC_DAPM_AIF_IN("SLIMRX8", NULL, 0,
ARIZONA_SLIMBUS_RX_CHANNEL_ENABLE
,
ARIZONA_SLIMRX8_ENA_SHIFT
,
0
),
SND_SOC_DAPM_
VALUE_
MUX
(
"AEC Loopback"
,
ARIZONA_DAC_AEC_CONTROL_1
,
SND_SOC_DAPM_MUX
(
"AEC Loopback"
,
ARIZONA_DAC_AEC_CONTROL_1
,
ARIZONA_AEC_LOOPBACK_ENA_SHIFT
,
0
,
&
wm8997_aec_loopback_mux
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment