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
ee3aee6a
Commit
ee3aee6a
authored
Apr 11, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/compress' into tmp
parents
f6f629f8
fa40ef20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
sound/soc/soc-compress.c
sound/soc/soc-compress.c
+11
-3
No files found.
sound/soc/soc-compress.c
View file @
ee3aee6a
...
@@ -211,19 +211,27 @@ static int soc_compr_set_params(struct snd_compr_stream *cstream,
...
@@ -211,19 +211,27 @@ static int soc_compr_set_params(struct snd_compr_stream *cstream,
if
(
platform
->
driver
->
compr_ops
&&
platform
->
driver
->
compr_ops
->
set_params
)
{
if
(
platform
->
driver
->
compr_ops
&&
platform
->
driver
->
compr_ops
->
set_params
)
{
ret
=
platform
->
driver
->
compr_ops
->
set_params
(
cstream
,
params
);
ret
=
platform
->
driver
->
compr_ops
->
set_params
(
cstream
,
params
);
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
out
;
goto
err
;
}
}
if
(
rtd
->
dai_link
->
compr_ops
&&
rtd
->
dai_link
->
compr_ops
->
set_params
)
{
if
(
rtd
->
dai_link
->
compr_ops
&&
rtd
->
dai_link
->
compr_ops
->
set_params
)
{
ret
=
rtd
->
dai_link
->
compr_ops
->
set_params
(
cstream
);
ret
=
rtd
->
dai_link
->
compr_ops
->
set_params
(
cstream
);
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
out
;
goto
err
;
}
}
snd_soc_dapm_stream_event
(
rtd
,
SNDRV_PCM_STREAM_PLAYBACK
,
snd_soc_dapm_stream_event
(
rtd
,
SNDRV_PCM_STREAM_PLAYBACK
,
SND_SOC_DAPM_STREAM_START
);
SND_SOC_DAPM_STREAM_START
);
out:
/* cancel any delayed stream shutdown that is pending */
rtd
->
pop_wait
=
0
;
mutex_unlock
(
&
rtd
->
pcm_mutex
);
cancel_delayed_work_sync
(
&
rtd
->
delayed_work
);
return
ret
;
err:
mutex_unlock
(
&
rtd
->
pcm_mutex
);
mutex_unlock
(
&
rtd
->
pcm_mutex
);
return
ret
;
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