aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-06-01 19:20:22 -0400
committerTakashi Iwai <tiwai@suse.de>2009-06-01 19:21:30 -0400
commitb20f3b834673be9ead83a3c6f07fa3881d1a990f (patch)
tree719597407012fca08c66ef5f4565193765a042ed /sound/pci/hda/hda_intel.c
parent8dd783304e6d0f7c2830365d63f75f08aa343e10 (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/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c2
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)
665 * to the single_cmd mode 665 * to the single_cmd mode
666 */ 666 */
667 bus->rirb_error = 1; 667 bus->rirb_error = 1;
668 if (!bus->response_reset && !bus->in_reset) { 668 if (bus->allow_bus_reset && !bus->response_reset && !bus->in_reset) {
669 bus->response_reset = 1; 669 bus->response_reset = 1;
670 return -1; /* give a chance to retry */ 670 return -1; /* give a chance to retry */
671 } 671 }