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
b5db6c57
Commit
b5db6c57
authored
Aug 24, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/dapm' into asoc-linus
parents
ae168423
8053f216
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+10
-0
No files found.
sound/soc/soc-dapm.c
View file @
b5db6c57
...
...
@@ -3493,6 +3493,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
const
struct
snd_soc_pcm_stream
*
config
=
w
->
params
+
w
->
params_select
;
struct
snd_pcm_substream
substream
;
struct
snd_pcm_hw_params
*
params
=
NULL
;
struct
snd_pcm_runtime
*
runtime
=
NULL
;
u64
fmt
;
int
ret
;
...
...
@@ -3541,6 +3542,14 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
memset
(
&
substream
,
0
,
sizeof
(
substream
));
/* Allocate a dummy snd_pcm_runtime for startup() and other ops() */
runtime
=
kzalloc
(
sizeof
(
*
runtime
),
GFP_KERNEL
);
if
(
!
runtime
)
{
ret
=
-
ENOMEM
;
goto
out
;
}
substream
.
runtime
=
runtime
;
switch
(
event
)
{
case
SND_SOC_DAPM_PRE_PMU
:
substream
.
stream
=
SNDRV_PCM_STREAM_CAPTURE
;
...
...
@@ -3606,6 +3615,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
}
out:
kfree
(
runtime
);
kfree
(
params
);
return
ret
;
}
...
...
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