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
05780d77
Commit
05780d77
authored
Jan 22, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/core' into tmp
parents
bc04c93b
8784c77a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+10
-2
No files found.
sound/soc/soc-dapm.c
View file @
05780d77
...
...
@@ -1023,7 +1023,7 @@ int dapm_regulator_event(struct snd_soc_dapm_widget *w,
if
(
SND_SOC_DAPM_EVENT_ON
(
event
))
{
if
(
w
->
invert
&
SND_SOC_DAPM_REGULATOR_BYPASS
)
{
ret
=
regulator_allow_bypass
(
w
->
regulator
,
tru
e
);
ret
=
regulator_allow_bypass
(
w
->
regulator
,
fals
e
);
if
(
ret
!=
0
)
dev_warn
(
w
->
dapm
->
dev
,
"ASoC: Failed to bypass %s: %d
\n
"
,
...
...
@@ -1033,7 +1033,7 @@ int dapm_regulator_event(struct snd_soc_dapm_widget *w,
return
regulator_enable
(
w
->
regulator
);
}
else
{
if
(
w
->
invert
&
SND_SOC_DAPM_REGULATOR_BYPASS
)
{
ret
=
regulator_allow_bypass
(
w
->
regulator
,
fals
e
);
ret
=
regulator_allow_bypass
(
w
->
regulator
,
tru
e
);
if
(
ret
!=
0
)
dev_warn
(
w
->
dapm
->
dev
,
"ASoC: Failed to unbypass %s: %d
\n
"
,
...
...
@@ -3039,6 +3039,14 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
w
->
name
,
ret
);
return
NULL
;
}
if
(
w
->
invert
&
SND_SOC_DAPM_REGULATOR_BYPASS
)
{
ret
=
regulator_allow_bypass
(
w
->
regulator
,
true
);
if
(
ret
!=
0
)
dev_warn
(
w
->
dapm
->
dev
,
"ASoC: Failed to unbypass %s: %d
\n
"
,
w
->
name
,
ret
);
}
break
;
case
snd_soc_dapm_clock_supply
:
#ifdef CONFIG_CLKDEV_LOOKUP
...
...
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