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/patch_sigmatel.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/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 1d643b9771a0..24137bc975c4 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -3472,6 +3472,18 @@ static int patch_stac927x(struct hda_codec *codec) | |||
3472 | 3472 | ||
3473 | codec->patch_ops = stac92xx_patch_ops; | 3473 | codec->patch_ops = stac92xx_patch_ops; |
3474 | 3474 | ||
3475 | /* | ||
3476 | * !!FIXME!! | ||
3477 | * The STAC927x seem to require fairly long delays for certain | ||
3478 | * command sequences. With too short delays (even if the answer | ||
3479 | * is set to RIRB properly), it results in the silence output | ||
3480 | * on some hardwares like Dell. | ||
3481 | * | ||
3482 | * The below flag enables the longer delay (see get_response | ||
3483 | * in hda_intel.c). | ||
3484 | */ | ||
3485 | codec->bus->needs_damn_long_delay = 1; | ||
3486 | |||
3475 | return 0; | 3487 | return 0; |
3476 | } | 3488 | } |
3477 | 3489 | ||