Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
d00efa64
Commit
d00efa64
authored
Jul 08, 2009
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Add TLV information for WM8731
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
6e541475
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
sound/soc/codecs/wm8731.c
sound/soc/codecs/wm8731.c
+11
-4
No files found.
sound/soc/codecs/wm8731.c
View file @
d00efa64
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include <sound/soc.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/soc-dapm.h>
#include <sound/initval.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include "wm8731.h"
#include "wm8731.h"
...
@@ -113,20 +114,26 @@ static const struct soc_enum wm8731_enum[] = {
...
@@ -113,20 +114,26 @@ static const struct soc_enum wm8731_enum[] = {
SOC_ENUM_SINGLE
(
WM8731_APDIGI
,
1
,
4
,
wm8731_deemph
),
SOC_ENUM_SINGLE
(
WM8731_APDIGI
,
1
,
4
,
wm8731_deemph
),
};
};
static
const
DECLARE_TLV_DB_SCALE
(
in_tlv
,
-
3450
,
150
,
0
);
static
const
DECLARE_TLV_DB_SCALE
(
sidetone_tlv
,
-
1500
,
300
,
0
);
static
const
DECLARE_TLV_DB_SCALE
(
out_tlv
,
-
12100
,
100
,
1
);
static
const
struct
snd_kcontrol_new
wm8731_snd_controls
[]
=
{
static
const
struct
snd_kcontrol_new
wm8731_snd_controls
[]
=
{
SOC_DOUBLE_R
(
"Master Playback Volume"
,
WM8731_LOUT1V
,
WM8731_ROUT1V
,
SOC_DOUBLE_R
_TLV
(
"Master Playback Volume"
,
WM8731_LOUT1V
,
WM8731_ROUT1V
,
0
,
127
,
0
),
0
,
127
,
0
,
out_tlv
),
SOC_DOUBLE_R
(
"Master Playback ZC Switch"
,
WM8731_LOUT1V
,
WM8731_ROUT1V
,
SOC_DOUBLE_R
(
"Master Playback ZC Switch"
,
WM8731_LOUT1V
,
WM8731_ROUT1V
,
7
,
1
,
0
),
7
,
1
,
0
),
SOC_DOUBLE_R
(
"Capture Volume"
,
WM8731_LINVOL
,
WM8731_RINVOL
,
0
,
31
,
0
),
SOC_DOUBLE_R_TLV
(
"Capture Volume"
,
WM8731_LINVOL
,
WM8731_RINVOL
,
0
,
31
,
0
,
in_tlv
),
SOC_DOUBLE_R
(
"Line Capture Switch"
,
WM8731_LINVOL
,
WM8731_RINVOL
,
7
,
1
,
1
),
SOC_DOUBLE_R
(
"Line Capture Switch"
,
WM8731_LINVOL
,
WM8731_RINVOL
,
7
,
1
,
1
),
SOC_SINGLE
(
"Mic Boost (+20dB)"
,
WM8731_APANA
,
0
,
1
,
0
),
SOC_SINGLE
(
"Mic Boost (+20dB)"
,
WM8731_APANA
,
0
,
1
,
0
),
SOC_SINGLE
(
"Capture Mic Switch"
,
WM8731_APANA
,
1
,
1
,
1
),
SOC_SINGLE
(
"Capture Mic Switch"
,
WM8731_APANA
,
1
,
1
,
1
),
SOC_SINGLE
(
"Sidetone Playback Volume"
,
WM8731_APANA
,
6
,
3
,
1
),
SOC_SINGLE_TLV
(
"Sidetone Playback Volume"
,
WM8731_APANA
,
6
,
3
,
1
,
sidetone_tlv
),
SOC_SINGLE
(
"ADC High Pass Filter Switch"
,
WM8731_APDIGI
,
0
,
1
,
1
),
SOC_SINGLE
(
"ADC High Pass Filter Switch"
,
WM8731_APDIGI
,
0
,
1
,
1
),
SOC_SINGLE
(
"Store DC Offset Switch"
,
WM8731_APDIGI
,
4
,
1
,
0
),
SOC_SINGLE
(
"Store DC Offset Switch"
,
WM8731_APDIGI
,
4
,
1
,
0
),
...
...
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