Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
f1aa2986
Commit
f1aa2986
authored
Mar 18, 2009
by
Takashi Iwai
Browse files
Merge branch 'fix/opl3sa2-suspend' into for-linus
parents
a232ee66
dde332b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
sound/isa/opl3sa2.c
View file @
f1aa2986
...
...
@@ -550,21 +550,27 @@ static int __devinit snd_opl3sa2_mixer(struct snd_card *card)
#ifdef CONFIG_PM
static
int
snd_opl3sa2_suspend
(
struct
snd_card
*
card
,
pm_message_t
state
)
{
struct
snd_opl3sa2
*
chip
=
card
->
private_data
;
if
(
card
)
{
struct
snd_opl3sa2
*
chip
=
card
->
private_data
;
snd_power_change_state
(
card
,
SNDRV_CTL_POWER_D3hot
);
chip
->
wss
->
suspend
(
chip
->
wss
);
/* power down */
snd_opl3sa2_write
(
chip
,
OPL3SA2_PM_CTRL
,
OPL3SA2_PM_D3
);
snd_power_change_state
(
card
,
SNDRV_CTL_POWER_D3hot
);
chip
->
wss
->
suspend
(
chip
->
wss
);
/* power down */
snd_opl3sa2_write
(
chip
,
OPL3SA2_PM_CTRL
,
OPL3SA2_PM_D3
);
}
return
0
;
}
static
int
snd_opl3sa2_resume
(
struct
snd_card
*
card
)
{
struct
snd_opl3sa2
*
chip
=
card
->
private_data
;
struct
snd_opl3sa2
*
chip
;
int
i
;
if
(
!
card
)
return
0
;
chip
=
card
->
private_data
;
/* power up */
snd_opl3sa2_write
(
chip
,
OPL3SA2_PM_CTRL
,
OPL3SA2_PM_D0
);
...
...
Write
Preview
Supports
Markdown
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