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
0d1203f2
Commit
0d1203f2
authored
May 14, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/dapm' into asoc-linus
parents
34e0a1e1
ce85a4d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+10
-5
No files found.
sound/soc/soc-dapm.c
View file @
0d1203f2
...
...
@@ -254,7 +254,6 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget,
static
void
dapm_kcontrol_free
(
struct
snd_kcontrol
*
kctl
)
{
struct
dapm_kcontrol_data
*
data
=
snd_kcontrol_chip
(
kctl
);
kfree
(
data
->
widget
);
kfree
(
data
->
wlist
);
kfree
(
data
);
}
...
...
@@ -1613,8 +1612,11 @@ static void dapm_pre_sequence_async(void *data, async_cookie_t cookie)
"ASoC: Failed to turn on bias: %d
\n
"
,
ret
);
}
/* Prepare for a STADDBY->ON or ON->STANDBY transition */
if
(
d
->
bias_level
!=
d
->
target_bias_level
)
{
/* Prepare for a transition to ON or away from ON */
if
((
d
->
target_bias_level
==
SND_SOC_BIAS_ON
&&
d
->
bias_level
!=
SND_SOC_BIAS_ON
)
||
(
d
->
target_bias_level
!=
SND_SOC_BIAS_ON
&&
d
->
bias_level
==
SND_SOC_BIAS_ON
))
{
ret
=
snd_soc_dapm_set_bias_level
(
d
,
SND_SOC_BIAS_PREPARE
);
if
(
ret
!=
0
)
dev_err
(
d
->
dev
,
...
...
@@ -3476,8 +3478,11 @@ void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card)
cpu_dai
=
rtd
->
cpu_dai
;
codec_dai
=
rtd
->
codec_dai
;
/* dynamic FE links have no fixed DAI mapping */
if
(
rtd
->
dai_link
->
dynamic
)
/*
* dynamic FE links have no fixed DAI mapping.
* CODEC<->CODEC links have no direct connection.
*/
if
(
rtd
->
dai_link
->
dynamic
||
rtd
->
dai_link
->
params
)
continue
;
/* there is no point in connecting BE DAI links with dummies */
...
...
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