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
6d21c5d6
Commit
6d21c5d6
authored
Apr 12, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/wm-hubs' into asoc-next
parents
0dd9e6bd
1f5353e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
sound/soc/codecs/wm_hubs.c
sound/soc/codecs/wm_hubs.c
+6
-3
No files found.
sound/soc/codecs/wm_hubs.c
View file @
6d21c5d6
...
...
@@ -199,11 +199,12 @@ static void wm_hubs_dcs_cache_set(struct snd_soc_codec *codec, u16 dcs_cfg)
list_add_tail
(
&
cache
->
list
,
&
hubs
->
dcs_cache
);
}
static
void
wm_hubs_read_dc_servo
(
struct
snd_soc_codec
*
codec
,
static
int
wm_hubs_read_dc_servo
(
struct
snd_soc_codec
*
codec
,
u16
*
reg_l
,
u16
*
reg_r
)
{
struct
wm_hubs_data
*
hubs
=
snd_soc_codec_get_drvdata
(
codec
);
u16
dcs_reg
,
reg
;
int
ret
=
0
;
switch
(
hubs
->
dcs_readback_mode
)
{
case
2
:
...
...
@@ -236,8 +237,9 @@ static void wm_hubs_read_dc_servo(struct snd_soc_codec *codec,
break
;
default:
WARN
(
1
,
"Unknown DCS readback method
\n
"
);
ret
urn
;
ret
=
-
1
;
}
return
ret
;
}
/*
...
...
@@ -286,7 +288,8 @@ static void enable_dc_servo(struct snd_soc_codec *codec)
WM8993_DCS_TRIG_STARTUP_1
);
}
wm_hubs_read_dc_servo
(
codec
,
&
reg_l
,
&
reg_r
);
if
(
wm_hubs_read_dc_servo
(
codec
,
&
reg_l
,
&
reg_r
)
<
0
)
return
;
dev_dbg
(
codec
->
dev
,
"DCS input: %x %x
\n
"
,
reg_l
,
reg_r
);
...
...
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