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
e853a00f
Commit
e853a00f
authored
Dec 09, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: arizona: Add volume ramp controls
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
c8d35a6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
sound/soc/codecs/arizona.c
sound/soc/codecs/arizona.c
+25
-0
sound/soc/codecs/arizona.h
sound/soc/codecs/arizona.h
+6
-0
No files found.
sound/soc/codecs/arizona.c
View file @
e853a00f
...
...
@@ -226,6 +226,31 @@ EXPORT_SYMBOL_GPL(arizona_mixer_values);
const
DECLARE_TLV_DB_SCALE
(
arizona_mixer_tlv
,
-
3200
,
100
,
0
);
EXPORT_SYMBOL_GPL
(
arizona_mixer_tlv
);
static
const
char
*
arizona_vol_ramp_text
[]
=
{
"0ms/6dB"
,
"0.5ms/6dB"
,
"1ms/6dB"
,
"2ms/6dB"
,
"4ms/6dB"
,
"8ms/6dB"
,
"15ms/6dB"
,
"30ms/6dB"
,
};
const
struct
soc_enum
arizona_in_vd_ramp
=
SOC_ENUM_SINGLE
(
ARIZONA_INPUT_VOLUME_RAMP
,
ARIZONA_IN_VD_RAMP_SHIFT
,
7
,
arizona_vol_ramp_text
);
EXPORT_SYMBOL_GPL
(
arizona_in_vd_ramp
);
const
struct
soc_enum
arizona_in_vi_ramp
=
SOC_ENUM_SINGLE
(
ARIZONA_INPUT_VOLUME_RAMP
,
ARIZONA_IN_VI_RAMP_SHIFT
,
7
,
arizona_vol_ramp_text
);
EXPORT_SYMBOL_GPL
(
arizona_in_vi_ramp
);
const
struct
soc_enum
arizona_out_vd_ramp
=
SOC_ENUM_SINGLE
(
ARIZONA_OUTPUT_VOLUME_RAMP
,
ARIZONA_OUT_VD_RAMP_SHIFT
,
7
,
arizona_vol_ramp_text
);
EXPORT_SYMBOL_GPL
(
arizona_out_vd_ramp
);
const
struct
soc_enum
arizona_out_vi_ramp
=
SOC_ENUM_SINGLE
(
ARIZONA_OUTPUT_VOLUME_RAMP
,
ARIZONA_OUT_VI_RAMP_SHIFT
,
7
,
arizona_vol_ramp_text
);
EXPORT_SYMBOL_GPL
(
arizona_out_vi_ramp
);
static
const
char
*
arizona_lhpf_mode_text
[]
=
{
"Low-pass"
,
"High-pass"
};
...
...
sound/soc/codecs/arizona.h
View file @
e853a00f
...
...
@@ -165,6 +165,12 @@ extern int arizona_mixer_values[ARIZONA_NUM_MIXER_INPUTS];
ARIZONA_MIXER_ROUTES(name, name "L"), \
ARIZONA_MIXER_ROUTES(name, name "R")
extern
const
struct
soc_enum
arizona_in_vi_ramp
;
extern
const
struct
soc_enum
arizona_in_vd_ramp
;
extern
const
struct
soc_enum
arizona_out_vi_ramp
;
extern
const
struct
soc_enum
arizona_out_vd_ramp
;
extern
const
struct
soc_enum
arizona_lhpf1_mode
;
extern
const
struct
soc_enum
arizona_lhpf2_mode
;
extern
const
struct
soc_enum
arizona_lhpf3_mode
;
...
...
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