wm8974.c (cdd5b5a9761fd66d17586e4f4ba6588c70e640ea) wm8974.c (37e6fd0cebf0b9f71afb38fd95b10408799d1f0b)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * wm8974.c -- WM8974 ALSA Soc Audio driver
4 *
5 * Copyright 2006-2009 Wolfson Microelectronics PLC.
6 *
7 * Author: Liam Girdwood <Liam.Girdwood@wolfsonmicro.com>
8 */

--- 172 unchanged lines hidden (view full) ---

181static const struct snd_kcontrol_new wm8974_mono_mixer_controls[] = {
182SOC_DAPM_SINGLE("Line Bypass Switch", WM8974_MONOMIX, 1, 1, 0),
183SOC_DAPM_SINGLE("Aux Playback Switch", WM8974_MONOMIX, 2, 1, 0),
184SOC_DAPM_SINGLE("PCM Playback Switch", WM8974_MONOMIX, 0, 1, 0),
185};
186
187/* Boost mixer */
188static const struct snd_kcontrol_new wm8974_boost_mixer[] = {
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * wm8974.c -- WM8974 ALSA Soc Audio driver
4 *
5 * Copyright 2006-2009 Wolfson Microelectronics PLC.
6 *
7 * Author: Liam Girdwood <Liam.Girdwood@wolfsonmicro.com>
8 */

--- 172 unchanged lines hidden (view full) ---

181static const struct snd_kcontrol_new wm8974_mono_mixer_controls[] = {
182SOC_DAPM_SINGLE("Line Bypass Switch", WM8974_MONOMIX, 1, 1, 0),
183SOC_DAPM_SINGLE("Aux Playback Switch", WM8974_MONOMIX, 2, 1, 0),
184SOC_DAPM_SINGLE("PCM Playback Switch", WM8974_MONOMIX, 0, 1, 0),
185};
186
187/* Boost mixer */
188static const struct snd_kcontrol_new wm8974_boost_mixer[] = {
189SOC_DAPM_SINGLE("Aux Switch", WM8974_INPPGA, 6, 1, 1),
189SOC_DAPM_SINGLE("PGA Switch", WM8974_INPPGA, 6, 1, 1),
190};
191
192/* Input PGA */
193static const struct snd_kcontrol_new wm8974_inpga[] = {
194SOC_DAPM_SINGLE("Aux Switch", WM8974_INPUT, 2, 1, 0),
195SOC_DAPM_SINGLE("MicN Switch", WM8974_INPUT, 1, 1, 0),
196SOC_DAPM_SINGLE("MicP Switch", WM8974_INPUT, 0, 1, 0),
197};

--- 43 unchanged lines hidden (view full) ---

241 {"MONOOUT", NULL, "Mono Out"},
242 {"SpkN Out", NULL, "Speaker Mixer"},
243 {"SpkP Out", NULL, "Speaker Mixer"},
244 {"SPKOUTN", NULL, "SpkN Out"},
245 {"SPKOUTP", NULL, "SpkP Out"},
246
247 /* Boost Mixer */
248 {"ADC", NULL, "Boost Mixer"},
190};
191
192/* Input PGA */
193static const struct snd_kcontrol_new wm8974_inpga[] = {
194SOC_DAPM_SINGLE("Aux Switch", WM8974_INPUT, 2, 1, 0),
195SOC_DAPM_SINGLE("MicN Switch", WM8974_INPUT, 1, 1, 0),
196SOC_DAPM_SINGLE("MicP Switch", WM8974_INPUT, 0, 1, 0),
197};

--- 43 unchanged lines hidden (view full) ---

241 {"MONOOUT", NULL, "Mono Out"},
242 {"SpkN Out", NULL, "Speaker Mixer"},
243 {"SpkP Out", NULL, "Speaker Mixer"},
244 {"SPKOUTN", NULL, "SpkN Out"},
245 {"SPKOUTP", NULL, "SpkP Out"},
246
247 /* Boost Mixer */
248 {"ADC", NULL, "Boost Mixer"},
249 {"Boost Mixer", "Aux Switch", "Aux Input"},
250 {"Boost Mixer", NULL, "Input PGA"},
249 {"Boost Mixer", NULL, "Aux Input"},
250 {"Boost Mixer", "PGA Switch", "Input PGA"},
251 {"Boost Mixer", NULL, "MICP"},
252
253 /* Input PGA */
254 {"Input PGA", "Aux Switch", "Aux Input"},
255 {"Input PGA", "MicN Switch", "MICN"},
256 {"Input PGA", "MicP Switch", "MICP"},
257
258 /* Inputs */

--- 476 unchanged lines hidden ---
251 {"Boost Mixer", NULL, "MICP"},
252
253 /* Input PGA */
254 {"Input PGA", "Aux Switch", "Aux Input"},
255 {"Input PGA", "MicN Switch", "MICN"},
256 {"Input PGA", "MicP Switch", "MICP"},
257
258 /* Inputs */

--- 476 unchanged lines hidden ---