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
d0616bbe
Commit
d0616bbe
authored
Dec 14, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Use standard register cache sync in wm8993
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
f6a93368
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
sound/soc/codecs/wm8993.c
sound/soc/codecs/wm8993.c
+1
-23
No files found.
sound/soc/codecs/wm8993.c
View file @
d0616bbe
...
...
@@ -934,28 +934,6 @@ static const struct snd_soc_dapm_route routes[] = {
{
"Right Headphone Mux"
,
"DAC"
,
"DACR"
},
};
static
void
wm8993_cache_restore
(
struct
snd_soc_codec
*
codec
)
{
u16
*
cache
=
codec
->
reg_cache
;
int
i
;
if
(
!
codec
->
cache_sync
)
return
;
/* Reenable hardware writes */
codec
->
cache_only
=
0
;
/* Restore the register settings */
for
(
i
=
1
;
i
<
WM8993_MAX_REGISTER
;
i
++
)
{
if
(
cache
[
i
]
==
wm8993_reg_defaults
[
i
])
continue
;
snd_soc_write
(
codec
,
i
,
cache
[
i
]);
}
/* We're in sync again */
codec
->
cache_sync
=
0
;
}
static
int
wm8993_set_bias_level
(
struct
snd_soc_codec
*
codec
,
enum
snd_soc_bias_level
level
)
{
...
...
@@ -979,7 +957,7 @@ static int wm8993_set_bias_level(struct snd_soc_codec *codec,
if
(
ret
!=
0
)
return
ret
;
wm8993_cache_restore
(
codec
);
snd_soc_cache_sync
(
codec
);
/* Tune DC servo configuration */
snd_soc_write
(
codec
,
0x44
,
3
);
...
...
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