diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-01-16 10:09:47 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:30:02 -0500 |
commit | 52987656fb3d43192639a7d585feb564c075c864 (patch) | |
tree | e8ac0d6e33e537016710cb380f6678770f9773dc /sound/pci/hda/hda_intel.c | |
parent | 192b8e3922c916cbacac7e5a190d9412ae39a7ee (diff) |
[ALSA] hda-intel - Add workarounds for STAC codecs
Some machines with STAC codecs seem to have problems (e.g. no audible
playback) when the delay in codec-read routine is too short.
I still don't figure out which command sequence causes this problem
(due to lack of test hardware), but it's known that increasing the
delay fixes. So, added a stupid workaround here temporarily...
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 5f2c3ca863db..fe07bdff60d0 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -559,8 +559,12 @@ static unsigned int azx_rirb_get_response(struct hda_codec *codec) | |||
559 | } | 559 | } |
560 | if (!chip->rirb.cmds) | 560 | if (!chip->rirb.cmds) |
561 | return chip->rirb.res; /* the last value */ | 561 | return chip->rirb.res; /* the last value */ |
562 | udelay(10); | 562 | if (codec->bus->needs_damn_long_delay) |
563 | cond_resched(); | 563 | msleep(2); /* temporary workaround */ |
564 | else { | ||
565 | udelay(10); | ||
566 | cond_resched(); | ||
567 | } | ||
564 | } while (time_after_eq(timeout, jiffies)); | 568 | } while (time_after_eq(timeout, jiffies)); |
565 | 569 | ||
566 | if (chip->msi) { | 570 | if (chip->msi) { |