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
65c62837
Commit
65c62837
authored
Dec 10, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/wm8400' into asoc-next
parents
47f07b77
95a5b240
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
sound/soc/codecs/wm8400.c
sound/soc/codecs/wm8400.c
+3
-11
No files found.
sound/soc/codecs/wm8400.c
View file @
65c62837
...
...
@@ -1373,7 +1373,7 @@ static int wm8400_codec_probe(struct snd_soc_codec *codec)
codec
->
control_data
=
priv
->
wm8400
=
wm8400
;
priv
->
codec
=
codec
;
ret
=
regulator_bulk_get
(
wm8400
->
dev
,
ret
=
devm_
regulator_bulk_get
(
wm8400
->
dev
,
ARRAY_SIZE
(
power
),
&
power
[
0
]);
if
(
ret
!=
0
)
{
dev_err
(
codec
->
dev
,
"Failed to get regulators: %d
\n
"
,
ret
);
...
...
@@ -1398,15 +1398,9 @@ static int wm8400_codec_probe(struct snd_soc_codec *codec)
snd_soc_write
(
codec
,
WM8400_LEFT_OUTPUT_VOLUME
,
0x50
|
(
1
<<
8
));
snd_soc_write
(
codec
,
WM8400_RIGHT_OUTPUT_VOLUME
,
0x50
|
(
1
<<
8
));
if
(
!
schedule_work
(
&
priv
->
work
))
{
ret
=
-
EINVAL
;
goto
err_regulator
;
}
if
(
!
schedule_work
(
&
priv
->
work
))
return
-
EINVAL
;
return
0
;
err_regulator:
regulator_bulk_free
(
ARRAY_SIZE
(
power
),
power
);
return
ret
;
}
static
int
wm8400_codec_remove
(
struct
snd_soc_codec
*
codec
)
...
...
@@ -1417,8 +1411,6 @@ static int wm8400_codec_remove(struct snd_soc_codec *codec)
snd_soc_write
(
codec
,
WM8400_POWER_MANAGEMENT_1
,
reg
&
(
~
WM8400_CODEC_ENA
));
regulator_bulk_free
(
ARRAY_SIZE
(
power
),
power
);
return
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