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
274eb8f9
Commit
274eb8f9
authored
Dec 29, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Use standard cache sync for WM8904
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
93e26d4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
27 deletions
+1
-27
sound/soc/codecs/wm8904.c
sound/soc/codecs/wm8904.c
+1
-27
No files found.
sound/soc/codecs/wm8904.c
View file @
274eb8f9
...
...
@@ -2088,32 +2088,6 @@ static int wm8904_digital_mute(struct snd_soc_dai *codec_dai, int mute)
return
0
;
}
static
void
wm8904_sync_cache
(
struct
snd_soc_codec
*
codec
)
{
u16
*
reg_cache
=
codec
->
reg_cache
;
int
i
;
if
(
!
codec
->
cache_sync
)
return
;
codec
->
cache_only
=
0
;
/* Sync back cached values if they're different from the
* hardware default.
*/
for
(
i
=
1
;
i
<
codec
->
driver
->
reg_cache_size
;
i
++
)
{
if
(
!
wm8904_access
[
i
].
writable
)
continue
;
if
(
reg_cache
[
i
]
==
wm8904_reg
[
i
])
continue
;
snd_soc_write
(
codec
,
i
,
reg_cache
[
i
]);
}
codec
->
cache_sync
=
0
;
}
static
int
wm8904_set_bias_level
(
struct
snd_soc_codec
*
codec
,
enum
snd_soc_bias_level
level
)
{
...
...
@@ -2146,7 +2120,7 @@ static int wm8904_set_bias_level(struct snd_soc_codec *codec,
return
ret
;
}
wm8904_sync_cache
(
codec
);
snd_soc_cache_sync
(
codec
);
/* Enable bias */
snd_soc_update_bits
(
codec
,
WM8904_BIAS_CONTROL_0
,
...
...
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