Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16078
b: refs/heads/master
c: 7bb35e2
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jan 3, 2006
1 parent c166ad7 commit 1a536a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 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: 686688458e5814ac0aca44fc2033218a848fd2d0
refs/heads/master: 7bb35e20e8a00cf9e3f4e9df0457eee9f312a637
20 changes: 1 addition & 19 deletions trunk/sound/isa/cs423x/cs4231_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1294,8 +1294,7 @@ static void snd_cs4231_suspend(struct snd_cs4231 *chip)
int reg;
unsigned long flags;

if (chip->pcm)
snd_pcm_suspend_all(chip->pcm);
snd_pcm_suspend_all(chip->pcm);
spin_lock_irqsave(&chip->reg_lock, flags);
for (reg = 0; reg < 32; reg++)
chip->image[reg] = snd_cs4231_in(chip, reg);
Expand Down Expand Up @@ -1343,22 +1342,6 @@ static void snd_cs4231_resume(struct snd_cs4231 *chip)
snd_cs4231_busy_wait(chip);
#endif
}

static int snd_cs4231_pm_suspend(struct snd_card *card, pm_message_t state)
{
struct snd_cs4231 *chip = card->pm_private_data;
if (chip->suspend)
chip->suspend(chip);
return 0;
}

static int snd_cs4231_pm_resume(struct snd_card *card)
{
struct snd_cs4231 *chip = card->pm_private_data;
if (chip->resume)
chip->resume(chip);
return 0;
}
#endif /* CONFIG_PM */

static int snd_cs4231_free(struct snd_cs4231 *chip)
Expand Down Expand Up @@ -1516,7 +1499,6 @@ int snd_cs4231_create(struct snd_card *card,
/* Power Management */
chip->suspend = snd_cs4231_suspend;
chip->resume = snd_cs4231_resume;
snd_card_set_isa_pm_callback(card, snd_cs4231_pm_suspend, snd_cs4231_pm_resume, chip);
#endif

*rchip = chip;
Expand Down

0 comments on commit 1a536a6

Please sign in to comment.