Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
f1aa2986
Commit
f1aa2986
authored
Mar 18, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/opl3sa2-suspend' into for-linus
parents
a232ee66
dde332b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
sound/isa/opl3sa2.c
sound/isa/opl3sa2.c
+12
-6
No files found.
sound/isa/opl3sa2.c
View file @
f1aa2986
...
@@ -550,21 +550,27 @@ static int __devinit snd_opl3sa2_mixer(struct snd_card *card)
...
@@ -550,21 +550,27 @@ static int __devinit snd_opl3sa2_mixer(struct snd_card *card)
#ifdef CONFIG_PM
#ifdef CONFIG_PM
static
int
snd_opl3sa2_suspend
(
struct
snd_card
*
card
,
pm_message_t
state
)
static
int
snd_opl3sa2_suspend
(
struct
snd_card
*
card
,
pm_message_t
state
)
{
{
if
(
card
)
{
struct
snd_opl3sa2
*
chip
=
card
->
private_data
;
struct
snd_opl3sa2
*
chip
=
card
->
private_data
;
snd_power_change_state
(
card
,
SNDRV_CTL_POWER_D3hot
);
snd_power_change_state
(
card
,
SNDRV_CTL_POWER_D3hot
);
chip
->
wss
->
suspend
(
chip
->
wss
);
chip
->
wss
->
suspend
(
chip
->
wss
);
/* power down */
/* power down */
snd_opl3sa2_write
(
chip
,
OPL3SA2_PM_CTRL
,
OPL3SA2_PM_D3
);
snd_opl3sa2_write
(
chip
,
OPL3SA2_PM_CTRL
,
OPL3SA2_PM_D3
);
}
return
0
;
return
0
;
}
}
static
int
snd_opl3sa2_resume
(
struct
snd_card
*
card
)
static
int
snd_opl3sa2_resume
(
struct
snd_card
*
card
)
{
{
struct
snd_opl3sa2
*
chip
=
card
->
private_data
;
struct
snd_opl3sa2
*
chip
;
int
i
;
int
i
;
if
(
!
card
)
return
0
;
chip
=
card
->
private_data
;
/* power up */
/* power up */
snd_opl3sa2_write
(
chip
,
OPL3SA2_PM_CTRL
,
OPL3SA2_PM_D0
);
snd_opl3sa2_write
(
chip
,
OPL3SA2_PM_CTRL
,
OPL3SA2_PM_D0
);
...
...
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