diff options
author | Paul Vojta <vojta@math.berkeley.edu> | 2007-07-27 06:20:38 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 09:58:08 -0400 |
commit | e2340465ec9587362a057524d3e2163377366771 (patch) | |
tree | 7ee0a06078c7966365b07202cbbd6607cedb61d6 /sound/isa/cs423x | |
parent | 01ade528d424420093973ede20d7394d2cd81190 (diff) |
[ALSA] Fix bugs in mode change/recalibration for opl3sa2 driver
The mode change / recalibration doesn't work always with opl3sa2 devices,
e.g. the first time it's played back. The patch fixes the problem.
Signed-off-by: Paul Vojta <vojta@math.berkeley.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/isa/cs423x')
-rw-r--r-- | sound/isa/cs423x/cs4231_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/isa/cs423x/cs4231_lib.c b/sound/isa/cs423x/cs4231_lib.c index 914d77b61b0c..642bdaa703be 100644 --- a/sound/isa/cs423x/cs4231_lib.c +++ b/sound/isa/cs423x/cs4231_lib.c | |||
@@ -555,6 +555,8 @@ static void snd_cs4231_playback_format(struct snd_cs4231 *chip, | |||
555 | snd_cs4231_out(chip, CS4231_PLAYBK_FORMAT, chip->image[CS4231_PLAYBK_FORMAT] = pdfr); | 555 | snd_cs4231_out(chip, CS4231_PLAYBK_FORMAT, chip->image[CS4231_PLAYBK_FORMAT] = pdfr); |
556 | } | 556 | } |
557 | spin_unlock_irqrestore(&chip->reg_lock, flags); | 557 | spin_unlock_irqrestore(&chip->reg_lock, flags); |
558 | if (chip->hardware == CS4231_HW_OPL3SA2) | ||
559 | udelay(100); /* this seems to help */ | ||
558 | snd_cs4231_mce_down(chip); | 560 | snd_cs4231_mce_down(chip); |
559 | } | 561 | } |
560 | snd_cs4231_calibrate_mute(chip, 0); | 562 | snd_cs4231_calibrate_mute(chip, 0); |