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
6be01cfb
Commit
6be01cfb
authored
Apr 27, 2009
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Staticise TLV values in WM8940
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
2625240d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
sound/soc/codecs/wm8940.c
sound/soc/codecs/wm8940.c
+11
-11
No files found.
sound/soc/codecs/wm8940.c
View file @
6be01cfb
...
...
@@ -168,16 +168,16 @@ static const char *wm8940_filter_mode_text[] = {"Audio", "Application"};
static
const
struct
soc_enum
wm8940_filter_mode_enum
=
SOC_ENUM_SINGLE
(
WM8940_ADC
,
7
,
2
,
wm8940_filter_mode_text
);
DECLARE_TLV_DB_SCALE
(
wm8940_spk_vol_tlv
,
-
5700
,
100
,
1
);
DECLARE_TLV_DB_SCALE
(
wm8940_att_tlv
,
-
1000
,
1000
,
0
);
DECLARE_TLV_DB_SCALE
(
wm8940_pga_vol_tlv
,
-
1200
,
75
,
0
);
DECLARE_TLV_DB_SCALE
(
wm8940_alc_min_tlv
,
-
1200
,
600
,
0
);
DECLARE_TLV_DB_SCALE
(
wm8940_alc_max_tlv
,
675
,
600
,
0
);
DECLARE_TLV_DB_SCALE
(
wm8940_alc_tar_tlv
,
-
2250
,
50
,
0
);
DECLARE_TLV_DB_SCALE
(
wm8940_lim_boost_tlv
,
0
,
100
,
0
);
DECLARE_TLV_DB_SCALE
(
wm8940_lim_thresh_tlv
,
-
600
,
100
,
0
);
DECLARE_TLV_DB_SCALE
(
wm8940_adc_tlv
,
-
12750
,
50
,
1
);
DECLARE_TLV_DB_SCALE
(
wm8940_capture_boost_vol_tlv
,
0
,
2000
,
0
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_spk_vol_tlv
,
-
5700
,
100
,
1
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_att_tlv
,
-
1000
,
1000
,
0
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_pga_vol_tlv
,
-
1200
,
75
,
0
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_alc_min_tlv
,
-
1200
,
600
,
0
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_alc_max_tlv
,
675
,
600
,
0
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_alc_tar_tlv
,
-
2250
,
50
,
0
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_lim_boost_tlv
,
0
,
100
,
0
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_lim_thresh_tlv
,
-
600
,
100
,
0
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_adc_tlv
,
-
12750
,
50
,
1
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_capture_boost_vol_tlv
,
0
,
2000
,
0
);
static
const
struct
snd_kcontrol_new
wm8940_snd_controls
[]
=
{
SOC_SINGLE
(
"Digital Loopback Switch"
,
WM8940_COMPANDINGCTL
,
...
...
@@ -253,7 +253,7 @@ static const struct snd_kcontrol_new wm8940_mono_mixer_controls[] = {
SOC_DAPM_SINGLE
(
"PCM Playback Switch"
,
WM8940_MONOMIX
,
0
,
1
,
0
),
};
DECLARE_TLV_DB_SCALE
(
wm8940_boost_vol_tlv
,
-
1500
,
300
,
1
);
static
DECLARE_TLV_DB_SCALE
(
wm8940_boost_vol_tlv
,
-
1500
,
300
,
1
);
static
const
struct
snd_kcontrol_new
wm8940_input_boost_controls
[]
=
{
SOC_DAPM_SINGLE
(
"Mic PGA Switch"
,
WM8940_PGAGAIN
,
6
,
1
,
1
),
SOC_DAPM_SINGLE_TLV
(
"Aux Volume"
,
WM8940_ADCBOOST
,
...
...
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