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
e22d7d54
Commit
e22d7d54
authored
Mar 28, 2018
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/pcm' into asoc-next
parents
5b6d7104
3c146465
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
sound/soc/soc-pcm.c
sound/soc/soc-pcm.c
+11
-0
No files found.
sound/soc/soc-pcm.c
View file @
e22d7d54
...
...
@@ -1392,12 +1392,18 @@ static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card,
struct
snd_soc_pcm_runtime
*
be
;
int
i
;
dev_dbg
(
card
->
dev
,
"ASoC: find BE for widget %s
\n
"
,
widget
->
name
);
if
(
stream
==
SNDRV_PCM_STREAM_PLAYBACK
)
{
list_for_each_entry
(
be
,
&
card
->
rtd_list
,
list
)
{
if
(
!
be
->
dai_link
->
no_pcm
)
continue
;
dev_dbg
(
card
->
dev
,
"ASoC: try BE : %s
\n
"
,
be
->
cpu_dai
->
playback_widget
?
be
->
cpu_dai
->
playback_widget
->
name
:
"(not set)"
);
if
(
be
->
cpu_dai
->
playback_widget
==
widget
)
return
be
;
...
...
@@ -1414,6 +1420,10 @@ static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card,
if
(
!
be
->
dai_link
->
no_pcm
)
continue
;
dev_dbg
(
card
->
dev
,
"ASoC: try BE %s
\n
"
,
be
->
cpu_dai
->
capture_widget
?
be
->
cpu_dai
->
capture_widget
->
name
:
"(not set)"
);
if
(
be
->
cpu_dai
->
capture_widget
==
widget
)
return
be
;
...
...
@@ -1425,6 +1435,7 @@ static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card,
}
}
/* dai link name and stream name set correctly ? */
dev_err
(
card
->
dev
,
"ASoC: can't get %s BE for %s
\n
"
,
stream
?
"capture"
:
"playback"
,
widget
->
name
);
return
NULL
;
...
...
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