diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-02 03:20:22 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-02 03:21:30 +0400 |
commit | b20f3b834673be9ead83a3c6f07fa3881d1a990f (patch) | |
tree | 719597407012fca08c66ef5f4565193765a042ed /sound/pci/hda/hda_intel.c | |
parent | 8dd783304e6d0f7c2830365d63f75f08aa343e10 (diff) | |
download | linux-b20f3b834673be9ead83a3c6f07fa3881d1a990f.tar.xz |
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/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 44f9a0aa20c5..9f44645a1d04 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -665,7 +665,7 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus) * to the single_cmd mode */ bus->rirb_error = 1; - if (!bus->response_reset && !bus->in_reset) { + if (bus->allow_bus_reset && !bus->response_reset && !bus->in_reset) { bus->response_reset = 1; return -1; /* give a chance to retry */ } |