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
ffbf2a36
Commit
ffbf2a36
authored
Dec 13, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Use standard snd_soc_cache_sync() for WM9090
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
42f3b010
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
sound/soc/codecs/wm9090.c
sound/soc/codecs/wm9090.c
+1
-12
No files found.
sound/soc/codecs/wm9090.c
View file @
ffbf2a36
...
...
@@ -513,18 +513,7 @@ static int wm9090_set_bias_level(struct snd_soc_codec *codec,
case
SND_SOC_BIAS_STANDBY
:
if
(
codec
->
dapm
.
bias_level
==
SND_SOC_BIAS_OFF
)
{
/* Restore the register cache */
for
(
i
=
1
;
i
<
codec
->
driver
->
reg_cache_size
;
i
++
)
{
if
(
reg_cache
[
i
]
==
wm9090_reg_defaults
[
i
])
continue
;
if
(
wm9090_volatile
(
codec
,
i
))
continue
;
ret
=
snd_soc_write
(
codec
,
i
,
reg_cache
[
i
]);
if
(
ret
!=
0
)
dev_warn
(
codec
->
dev
,
"Failed to restore register %d: %d
\n
"
,
i
,
ret
);
}
snd_soc_cache_sync
(
codec
);
}
/* We keep VMID off during standby since the combination of
...
...
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