diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-01 19:20:22 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-01 19:21:30 -0400 |
commit | b20f3b834673be9ead83a3c6f07fa3881d1a990f (patch) | |
tree | 719597407012fca08c66ef5f4565193765a042ed /sound/pci/hda/patch_sigmatel.c | |
parent | 8dd783304e6d0f7c2830365d63f75f08aa343e10 (diff) |
ALSA: hda - Limit codec-verb retry to limited hardwares
The reset of a BUS controller during operations is somehow risky and
shouldn't be done inevitably for devices that have apparently no such
codec-communication problems.
This patch adds the check of the hardware and limits the bus-reset
capability.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 48f4a36c4813..42f944bb641d 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -5375,6 +5375,15 @@ again: | |||
5375 | if (get_wcaps(codec, 0xa) & AC_WCAP_IN_AMP) | 5375 | if (get_wcaps(codec, 0xa) & AC_WCAP_IN_AMP) |
5376 | snd_hda_sequence_write_cache(codec, unmute_init); | 5376 | snd_hda_sequence_write_cache(codec, unmute_init); |
5377 | 5377 | ||
5378 | /* Some HP machines seem to have unstable codec communications | ||
5379 | * especially with ATI fglrx driver. For recovering from the | ||
5380 | * CORB/RIRB stall, allow the BUS reset and keep always sync | ||
5381 | */ | ||
5382 | if (spec->board_config == STAC_HP_DV5) { | ||
5383 | codec->bus->sync_write = 1; | ||
5384 | codec->bus->allow_bus_reset = 1; | ||
5385 | } | ||
5386 | |||
5378 | spec->aloopback_ctl = stac92hd71bxx_loopback; | 5387 | spec->aloopback_ctl = stac92hd71bxx_loopback; |
5379 | spec->aloopback_mask = 0x50; | 5388 | spec->aloopback_mask = 0x50; |
5380 | spec->aloopback_shift = 0; | 5389 | spec->aloopback_shift = 0; |