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
fc122f63
Commit
fc122f63
authored
Mar 13, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/pcm' into asoc-next
parents
df91a210
b0639bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
sound/soc/soc-pcm.c
sound/soc/soc-pcm.c
+12
-12
No files found.
sound/soc/soc-pcm.c
View file @
fc122f63
...
...
@@ -1867,18 +1867,6 @@ int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int stream)
if
(
!
snd_soc_dpcm_be_can_update
(
fe
,
be
,
stream
))
continue
;
/* only allow hw_params() if no connected FEs are running */
if
(
!
snd_soc_dpcm_can_be_params
(
fe
,
be
,
stream
))
continue
;
if
((
be
->
dpcm
[
stream
].
state
!=
SND_SOC_DPCM_STATE_OPEN
)
&&
(
be
->
dpcm
[
stream
].
state
!=
SND_SOC_DPCM_STATE_HW_PARAMS
)
&&
(
be
->
dpcm
[
stream
].
state
!=
SND_SOC_DPCM_STATE_HW_FREE
))
continue
;
dev_dbg
(
be
->
dev
,
"ASoC: hw_params BE %s
\n
"
,
dpcm
->
fe
->
dai_link
->
name
);
/* copy params for each dpcm */
memcpy
(
&
dpcm
->
hw_params
,
&
fe
->
dpcm
[
stream
].
hw_params
,
sizeof
(
struct
snd_pcm_hw_params
));
...
...
@@ -1895,6 +1883,18 @@ int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int stream)
}
}
/* only allow hw_params() if no connected FEs are running */
if
(
!
snd_soc_dpcm_can_be_params
(
fe
,
be
,
stream
))
continue
;
if
((
be
->
dpcm
[
stream
].
state
!=
SND_SOC_DPCM_STATE_OPEN
)
&&
(
be
->
dpcm
[
stream
].
state
!=
SND_SOC_DPCM_STATE_HW_PARAMS
)
&&
(
be
->
dpcm
[
stream
].
state
!=
SND_SOC_DPCM_STATE_HW_FREE
))
continue
;
dev_dbg
(
be
->
dev
,
"ASoC: hw_params BE %s
\n
"
,
dpcm
->
fe
->
dai_link
->
name
);
ret
=
soc_pcm_hw_params
(
be_substream
,
&
dpcm
->
hw_params
);
if
(
ret
<
0
)
{
dev_err
(
dpcm
->
be
->
dev
,
...
...
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