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
2dd49f8e
Commit
2dd49f8e
authored
Jan 11, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/pcm' into asoc-next
parents
804c0a95
3f809783
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
sound/soc/soc-pcm.c
sound/soc/soc-pcm.c
+20
-8
No files found.
sound/soc/soc-pcm.c
View file @
2dd49f8e
...
...
@@ -599,10 +599,15 @@ static int soc_pcm_open(struct snd_pcm_substream *substream)
out:
mutex_unlock
(
&
rtd
->
pcm_mutex
);
pm_runtime_put
(
platform
->
dev
);
for
(
i
=
0
;
i
<
rtd
->
num_codecs
;
i
++
)
pm_runtime_put
(
rtd
->
codec_dais
[
i
]
->
dev
);
pm_runtime_put
(
cpu_dai
->
dev
);
pm_runtime_mark_last_busy
(
platform
->
dev
);
pm_runtime_put_autosuspend
(
platform
->
dev
);
for
(
i
=
0
;
i
<
rtd
->
num_codecs
;
i
++
)
{
pm_runtime_mark_last_busy
(
rtd
->
codec_dais
[
i
]
->
dev
);
pm_runtime_put_autosuspend
(
rtd
->
codec_dais
[
i
]
->
dev
);
}
pm_runtime_mark_last_busy
(
cpu_dai
->
dev
);
pm_runtime_put_autosuspend
(
cpu_dai
->
dev
);
for
(
i
=
0
;
i
<
rtd
->
num_codecs
;
i
++
)
{
if
(
!
rtd
->
codec_dais
[
i
]
->
active
)
pinctrl_pm_select_sleep_state
(
rtd
->
codec_dais
[
i
]
->
dev
);
...
...
@@ -706,10 +711,17 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
mutex_unlock
(
&
rtd
->
pcm_mutex
);
pm_runtime_put
(
platform
->
dev
);
for
(
i
=
0
;
i
<
rtd
->
num_codecs
;
i
++
)
pm_runtime_put
(
rtd
->
codec_dais
[
i
]
->
dev
);
pm_runtime_put
(
cpu_dai
->
dev
);
pm_runtime_mark_last_busy
(
platform
->
dev
);
pm_runtime_put_autosuspend
(
platform
->
dev
);
for
(
i
=
0
;
i
<
rtd
->
num_codecs
;
i
++
)
{
pm_runtime_mark_last_busy
(
rtd
->
codec_dais
[
i
]
->
dev
);
pm_runtime_put_autosuspend
(
rtd
->
codec_dais
[
i
]
->
dev
);
}
pm_runtime_mark_last_busy
(
cpu_dai
->
dev
);
pm_runtime_put_autosuspend
(
cpu_dai
->
dev
);
for
(
i
=
0
;
i
<
rtd
->
num_codecs
;
i
++
)
{
if
(
!
rtd
->
codec_dais
[
i
]
->
active
)
pinctrl_pm_select_sleep_state
(
rtd
->
codec_dais
[
i
]
->
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