diff options
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 97786ed37dd6..f183f1845a36 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) |