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
nexedi
linux
Commits
406554fe
Commit
406554fe
authored
Apr 12, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/max98088' into asoc-next
parents
c964f28d
c751a1f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
sound/soc/codecs/max98088.c
sound/soc/codecs/max98088.c
+24
-6
No files found.
sound/soc/codecs/max98088.c
View file @
406554fe
...
...
@@ -739,14 +739,32 @@ static const unsigned int max98088_micboost_tlv[] = {
2
,
2
,
TLV_DB_SCALE_ITEM
(
3000
,
0
,
0
),
};
static
const
unsigned
int
max98088_hp_tlv
[]
=
{
TLV_DB_RANGE_HEAD
(
5
),
0
,
6
,
TLV_DB_SCALE_ITEM
(
-
6700
,
400
,
0
),
7
,
14
,
TLV_DB_SCALE_ITEM
(
-
4000
,
300
,
0
),
15
,
21
,
TLV_DB_SCALE_ITEM
(
-
1700
,
200
,
0
),
22
,
27
,
TLV_DB_SCALE_ITEM
(
-
400
,
100
,
0
),
28
,
31
,
TLV_DB_SCALE_ITEM
(
150
,
50
,
0
),
};
static
const
unsigned
int
max98088_spk_tlv
[]
=
{
TLV_DB_RANGE_HEAD
(
5
),
0
,
6
,
TLV_DB_SCALE_ITEM
(
-
6200
,
400
,
0
),
7
,
14
,
TLV_DB_SCALE_ITEM
(
-
3500
,
300
,
0
),
15
,
21
,
TLV_DB_SCALE_ITEM
(
-
1200
,
200
,
0
),
22
,
27
,
TLV_DB_SCALE_ITEM
(
100
,
100
,
0
),
28
,
31
,
TLV_DB_SCALE_ITEM
(
650
,
50
,
0
),
};
static
const
struct
snd_kcontrol_new
max98088_snd_controls
[]
=
{
SOC_DOUBLE_R
(
"Headphone Volume"
,
M98088_REG_39_LVL_HP_L
,
M98088_REG_3A_LVL_HP_R
,
0
,
31
,
0
),
SOC_DOUBLE_R
(
"Speaker Volume"
,
M98088_REG_3D_LVL_SPK_L
,
M98088_REG_3E_LVL_SPK_R
,
0
,
31
,
0
),
SOC_DOUBLE_R
(
"Receiver Volume"
,
M98088_REG_3B_LVL_REC_L
,
M98088_REG_3C_LVL_REC_R
,
0
,
31
,
0
),
SOC_DOUBLE_R_TLV
(
"Headphone Volume"
,
M98088_REG_39_LVL_HP_L
,
M98088_REG_3A_LVL_HP_R
,
0
,
31
,
0
,
max98088_hp_tlv
),
SOC_DOUBLE_R_TLV
(
"Speaker Volume"
,
M98088_REG_3D_LVL_SPK_L
,
M98088_REG_3E_LVL_SPK_R
,
0
,
31
,
0
,
max98088_spk_tlv
),
SOC_DOUBLE_R_TLV
(
"Receiver Volume"
,
M98088_REG_3B_LVL_REC_L
,
M98088_REG_3C_LVL_REC_R
,
0
,
31
,
0
,
max98088_spk_tlv
),
SOC_DOUBLE_R
(
"Headphone Switch"
,
M98088_REG_39_LVL_HP_L
,
M98088_REG_3A_LVL_HP_R
,
7
,
1
,
1
),
...
...
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