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
c6b3283f
Commit
c6b3283f
authored
Sep 23, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: max90895: Convert to table based control init
Signed-off-by:
Mark Brown
<
broonie@linaro.org
>
parent
d36126ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
sound/soc/codecs/max98095.c
sound/soc/codecs/max98095.c
+2
-10
No files found.
sound/soc/codecs/max98095.c
View file @
c6b3283f
...
...
@@ -1268,14 +1268,6 @@ static const struct snd_soc_dapm_route max98095_audio_map[] = {
{
"MIC2 Input"
,
NULL
,
"MIC2"
},
};
static
int
max98095_add_widgets
(
struct
snd_soc_codec
*
codec
)
{
snd_soc_add_codec_controls
(
codec
,
max98095_snd_controls
,
ARRAY_SIZE
(
max98095_snd_controls
));
return
0
;
}
/* codec mclk clock divider coefficients */
static
const
struct
{
u32
rate
;
...
...
@@ -2430,8 +2422,6 @@ static int max98095_probe(struct snd_soc_codec *codec)
snd_soc_update_bits
(
codec
,
M98095_097_PWR_SYS
,
M98095_SHDNRUN
,
M98095_SHDNRUN
);
max98095_add_widgets
(
codec
);
return
0
;
err_irq:
...
...
@@ -2463,6 +2453,8 @@ static struct snd_soc_codec_driver soc_codec_dev_max98095 = {
.
suspend
=
max98095_suspend
,
.
resume
=
max98095_resume
,
.
set_bias_level
=
max98095_set_bias_level
,
.
controls
=
max98095_snd_controls
,
.
num_controls
=
ARRAY_SIZE
(
max98095_snd_controls
),
.
reg_cache_size
=
ARRAY_SIZE
(
max98095_reg_def
),
.
reg_word_size
=
sizeof
(
u8
),
.
reg_cache_default
=
max98095_reg_def
,
...
...
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