aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
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_codec.h
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_codec.h')
-rw-r--r--sound/pci/hda/hda_codec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index f5fa5d1f223c..cad79efaabc9 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -624,6 +624,9 @@ struct hda_bus {
624 624
625 /* misc op flags */ 625 /* misc op flags */
626 unsigned int needs_damn_long_delay :1; 626 unsigned int needs_damn_long_delay :1;
627 unsigned int allow_bus_reset:1; /* allow bus reset at fatal error */
628 unsigned int sync_write:1; /* sync after verb write */
629 /* status for codec/controller */
627 unsigned int shutdown :1; /* being unloaded */ 630 unsigned int shutdown :1; /* being unloaded */
628 unsigned int rirb_error:1; /* error in codec communication */ 631 unsigned int rirb_error:1; /* error in codec communication */
629 unsigned int response_reset:1; /* controller was reset */ 632 unsigned int response_reset:1; /* controller was reset */