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
e055cd67
Commit
e055cd67
authored
Dec 29, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Use standard cache sync for wm8804
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
c2562a8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
sound/soc/codecs/wm8804.c
sound/soc/codecs/wm8804.c
+1
-19
No files found.
sound/soc/codecs/wm8804.c
View file @
e055cd67
...
...
@@ -482,24 +482,6 @@ static int wm8804_set_clkdiv(struct snd_soc_dai *dai,
return
0
;
}
static
void
wm8804_sync_cache
(
struct
snd_soc_codec
*
codec
)
{
short
i
;
u8
*
cache
;
if
(
!
codec
->
cache_sync
)
return
;
codec
->
cache_only
=
0
;
cache
=
codec
->
reg_cache
;
for
(
i
=
0
;
i
<
codec
->
driver
->
reg_cache_size
;
i
++
)
{
if
(
i
==
WM8804_RST_DEVID1
||
cache
[
i
]
==
wm8804_reg_defs
[
i
])
continue
;
snd_soc_write
(
codec
,
i
,
cache
[
i
]);
}
codec
->
cache_sync
=
0
;
}
static
int
wm8804_set_bias_level
(
struct
snd_soc_codec
*
codec
,
enum
snd_soc_bias_level
level
)
{
...
...
@@ -524,7 +506,7 @@ static int wm8804_set_bias_level(struct snd_soc_codec *codec,
ret
);
return
ret
;
}
wm8804_sync_cache
(
codec
);
snd_soc_cache_sync
(
codec
);
}
/* power down the OSC and the PLL */
snd_soc_update_bits
(
codec
,
WM8804_PWRDN
,
0x9
,
0x9
);
...
...
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