diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 10:16:10 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:28:03 -0500 |
commit | 5bdb6a1629408f657f5f2c42b3c07c689c411499 (patch) | |
tree | b99b216117506a89a3f09ebb874da83ec13fbf6c /sound/isa/sb/sb16_main.c | |
parent | cb60e5f5b2b19284479825cdaa6dd6b7078cf5d2 (diff) |
[ALSA] Add PM support to SB-support code
Modules: SB drivers,SB16/AWE driver
Add PM support to SB-support code.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/sb/sb16_main.c')
-rw-r--r-- | sound/isa/sb/sb16_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/isa/sb/sb16_main.c b/sound/isa/sb/sb16_main.c index 97786ed37dd..f183f1845a3 100644 --- a/sound/isa/sb/sb16_main.c +++ b/sound/isa/sb/sb16_main.c | |||
@@ -307,10 +307,12 @@ static int snd_sb16_playback_trigger(struct snd_pcm_substream *substream, | |||
307 | spin_lock(&chip->reg_lock); | 307 | spin_lock(&chip->reg_lock); |
308 | switch (cmd) { | 308 | switch (cmd) { |
309 | case SNDRV_PCM_TRIGGER_START: | 309 | case SNDRV_PCM_TRIGGER_START: |
310 | case SNDRV_PCM_TRIGGER_RESUME: | ||
310 | chip->mode |= SB_RATE_LOCK_PLAYBACK; | 311 | chip->mode |= SB_RATE_LOCK_PLAYBACK; |
311 | snd_sbdsp_command(chip, chip->mode & SB_MODE_PLAYBACK_16 ? SB_DSP_DMA16_ON : SB_DSP_DMA8_ON); | 312 | snd_sbdsp_command(chip, chip->mode & SB_MODE_PLAYBACK_16 ? SB_DSP_DMA16_ON : SB_DSP_DMA8_ON); |
312 | break; | 313 | break; |
313 | case SNDRV_PCM_TRIGGER_STOP: | 314 | case SNDRV_PCM_TRIGGER_STOP: |
315 | case SNDRV_PCM_TRIGGER_SUSPEND: | ||
314 | snd_sbdsp_command(chip, chip->mode & SB_MODE_PLAYBACK_16 ? SB_DSP_DMA16_OFF : SB_DSP_DMA8_OFF); | 316 | snd_sbdsp_command(chip, chip->mode & SB_MODE_PLAYBACK_16 ? SB_DSP_DMA16_OFF : SB_DSP_DMA8_OFF); |
315 | /* next two lines are needed for some types of DSP4 (SB AWE 32 - 4.13) */ | 317 | /* next two lines are needed for some types of DSP4 (SB AWE 32 - 4.13) */ |
316 | if (chip->mode & SB_RATE_LOCK_CAPTURE) | 318 | if (chip->mode & SB_RATE_LOCK_CAPTURE) |
@@ -374,10 +376,12 @@ static int snd_sb16_capture_trigger(struct snd_pcm_substream *substream, | |||
374 | spin_lock(&chip->reg_lock); | 376 | spin_lock(&chip->reg_lock); |
375 | switch (cmd) { | 377 | switch (cmd) { |
376 | case SNDRV_PCM_TRIGGER_START: | 378 | case SNDRV_PCM_TRIGGER_START: |
379 | case SNDRV_PCM_TRIGGER_RESUME: | ||
377 | chip->mode |= SB_RATE_LOCK_CAPTURE; | 380 | chip->mode |= SB_RATE_LOCK_CAPTURE; |
378 | snd_sbdsp_command(chip, chip->mode & SB_MODE_CAPTURE_16 ? SB_DSP_DMA16_ON : SB_DSP_DMA8_ON); | 381 | snd_sbdsp_command(chip, chip->mode & SB_MODE_CAPTURE_16 ? SB_DSP_DMA16_ON : SB_DSP_DMA8_ON); |
379 | break; | 382 | break; |
380 | case SNDRV_PCM_TRIGGER_STOP: | 383 | case SNDRV_PCM_TRIGGER_STOP: |
384 | case SNDRV_PCM_TRIGGER_SUSPEND: | ||
381 | snd_sbdsp_command(chip, chip->mode & SB_MODE_CAPTURE_16 ? SB_DSP_DMA16_OFF : SB_DSP_DMA8_OFF); | 385 | snd_sbdsp_command(chip, chip->mode & SB_MODE_CAPTURE_16 ? SB_DSP_DMA16_OFF : SB_DSP_DMA8_OFF); |
382 | /* next two lines are needed for some types of DSP4 (SB AWE 32 - 4.13) */ | 386 | /* next two lines are needed for some types of DSP4 (SB AWE 32 - 4.13) */ |
383 | if (chip->mode & SB_RATE_LOCK_PLAYBACK) | 387 | if (chip->mode & SB_RATE_LOCK_PLAYBACK) |