Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6514
b: refs/heads/master
c: a55bfdc
h: refs/heads/master
v: v3
  • Loading branch information
Dirk Opfer authored and Jaroslav Kysela committed Aug 30, 2005
1 parent fdaad98 commit eaddb04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 064d2112ff24937f9aabb6baae8de88b6e5ef453
refs/heads/master: a55bfdc5821df787068da15a6864f2c669d7d22c
8 changes: 4 additions & 4 deletions trunk/sound/arm/pxa2xx-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static int pxa2xx_ac97_do_suspend(snd_card_t *card, unsigned int state)
return 0;
}

static int pxa2xx_ac97_do_resume(snd_card_t *card, unsigned int state)
static int pxa2xx_ac97_do_resume(snd_card_t *card)
{
if (card->power_state != SNDRV_CTL_POWER_D0) {
pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data;
Expand All @@ -275,13 +275,13 @@ static int pxa2xx_ac97_do_resume(snd_card_t *card, unsigned int state)
return 0;
}

static int pxa2xx_ac97_suspend(struct device *_dev, u32 state, u32 level)
static int pxa2xx_ac97_suspend(struct device *_dev, pm_message_t state, u32 level)
{
snd_card_t *card = dev_get_drvdata(_dev);
int ret = 0;

if (card && level == SUSPEND_DISABLE)
ret = pxa2xx_ac97_do_suspend(card, SNDRV_CTL_POWER_D3cold);
ret = pxa2xx_ac97_do_suspend(card, PMSG_SUSPEND);

return ret;
}
Expand All @@ -292,7 +292,7 @@ static int pxa2xx_ac97_resume(struct device *_dev, u32 level)
int ret = 0;

if (card && level == RESUME_ENABLE)
ret = pxa2xx_ac97_do_resume(card, SNDRV_CTL_POWER_D0);
ret = pxa2xx_ac97_do_resume(card);

return ret;
}
Expand Down

0 comments on commit eaddb04

Please sign in to comment.