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
471280b7
Commit
471280b7
authored
Feb 01, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: wm9712: Add TLV information for microphone input
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
f3bafaa0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9712.c
+7
-3
No files found.
sound/soc/codecs/wm9712.c
View file @
471280b7
...
...
@@ -20,6 +20,7 @@
#include <sound/ac97_codec.h>
#include <sound/initval.h>
#include <sound/soc.h>
#include <sound/tlv.h>
#include "wm9712.h"
static
unsigned
int
ac97_read
(
struct
snd_soc_codec
*
codec
,
...
...
@@ -69,6 +70,9 @@ static const char *wm9712_rec_sel[] = {"Mic", "NC", "NC", "Speaker Mixer",
static
const
char
*
wm9712_ng_type
[]
=
{
"Constant Gain"
,
"Mute"
};
static
const
char
*
wm9712_diff_sel
[]
=
{
"Mic"
,
"Line"
};
static
const
DECLARE_TLV_DB_SCALE
(
main_tlv
,
-
3450
,
150
,
0
);
static
const
DECLARE_TLV_DB_SCALE
(
boost_tlv
,
0
,
2000
,
0
);
static
const
struct
soc_enum
wm9712_enum
[]
=
{
SOC_ENUM_SINGLE
(
AC97_PCI_SVID
,
14
,
4
,
wm9712_alc_select
),
SOC_ENUM_SINGLE
(
AC97_VIDEO
,
12
,
4
,
wm9712_alc_mux
),
...
...
@@ -147,9 +151,9 @@ SOC_ENUM("Capture Volume Steps", wm9712_enum[6]),
SOC_DOUBLE
(
"Capture Volume"
,
AC97_REC_GAIN
,
8
,
0
,
63
,
1
),
SOC_SINGLE
(
"Capture ZC Switch"
,
AC97_REC_GAIN
,
7
,
1
,
0
),
SOC_SINGLE
(
"Mic 1 Volume"
,
AC97_MIC
,
8
,
31
,
1
),
SOC_SINGLE
(
"Mic 2 Volume"
,
AC97_MIC
,
0
,
31
,
1
),
SOC_SINGLE
(
"Mic 20dB Boost Switch"
,
AC97_MIC
,
7
,
1
,
0
),
SOC_SINGLE
_TLV
(
"Mic 1 Volume"
,
AC97_MIC
,
8
,
31
,
1
,
main_tlv
),
SOC_SINGLE
_TLV
(
"Mic 2 Volume"
,
AC97_MIC
,
0
,
31
,
1
,
main_tlv
),
SOC_SINGLE
_TLV
(
"Mic Boost Volume"
,
AC97_MIC
,
7
,
1
,
0
,
boost_tlv
),
};
/* We have to create a fake left and right HP mixers because
...
...
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