wm8731.c (a71a468a50f1385855e28864e26251b02df829bb) wm8731.c (bd903b6ed7fb107e122682db5ac8aaa323ab84c9)
1/*
2 * wm8731.c -- WM8731 ALSA SoC Audio driver
3 *
4 * Copyright 2005 Openedhand Ltd.
5 *
6 * Author: Richard Purdie <richard@openedhand.com>
7 *
8 * Based on wm8753.c by Liam Girdwood

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

305
306static const struct soc_enum wm8731_enum[] = {
307 SOC_ENUM_SINGLE(WM8731_APANA, 2, 2, wm8731_input_select),
308 SOC_ENUM_SINGLE(WM8731_APDIGI, 1, 4, wm8731_deemph),
309};
310
311static const struct snd_kcontrol_new wm8731_snd_controls[] = {
312
1/*
2 * wm8731.c -- WM8731 ALSA SoC Audio driver
3 *
4 * Copyright 2005 Openedhand Ltd.
5 *
6 * Author: Richard Purdie <richard@openedhand.com>
7 *
8 * Based on wm8753.c by Liam Girdwood

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

305
306static const struct soc_enum wm8731_enum[] = {
307 SOC_ENUM_SINGLE(WM8731_APANA, 2, 2, wm8731_input_select),
308 SOC_ENUM_SINGLE(WM8731_APDIGI, 1, 4, wm8731_deemph),
309};
310
311static const struct snd_kcontrol_new wm8731_snd_controls[] = {
312
313SOC_DOUBLE_R("Playback Volume", WM8731_LOUT1V, WM8731_ROUT1V, 0, 127, 0),
314SOC_DOUBLE_R("Playback ZC Switch", WM8731_LOUT1V, WM8731_ROUT1V, 7, 1, 0),
313SOC_DOUBLE_R("Master Playback Volume", WM8731_LOUT1V, WM8731_ROUT1V,
314 0, 127, 0),
315SOC_DOUBLE_R("Master Playback ZC Switch", WM8731_LOUT1V, WM8731_ROUT1V,
316 7, 1, 0),
315
316SOC_DOUBLE_R("Capture Volume", WM8731_LINVOL, WM8731_RINVOL, 0, 31, 0),
317SOC_DOUBLE_R("Line Capture Switch", WM8731_LINVOL, WM8731_RINVOL, 7, 1, 1),
318
319SOC_SINGLE("Mic Boost (+20dB)", WM8731_APANA, 0, 1, 0),
320SOC_SINGLE("Capture Mic Switch", WM8731_APANA, 1, 1, 1),
321
322SOC_SINGLE("Sidetone Playback Volume", WM8731_APANA, 6, 3, 1),

--- 562 unchanged lines hidden ---
317
318SOC_DOUBLE_R("Capture Volume", WM8731_LINVOL, WM8731_RINVOL, 0, 31, 0),
319SOC_DOUBLE_R("Line Capture Switch", WM8731_LINVOL, WM8731_RINVOL, 7, 1, 1),
320
321SOC_SINGLE("Mic Boost (+20dB)", WM8731_APANA, 0, 1, 0),
322SOC_SINGLE("Capture Mic Switch", WM8731_APANA, 1, 1, 1),
323
324SOC_SINGLE("Sidetone Playback Volume", WM8731_APANA, 6, 3, 1),

--- 562 unchanged lines hidden ---