aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/pci/asihpi/hpios.h
diff options
context:
space:
mode:
authorEliot Blennerhassett <eliot@blennerhassett.gen.nz>2014-11-20 16:22:53 +1300
committerTakashi Iwai <tiwai@suse.de>2014-11-22 22:33:13 +0100
commitf9a376c3f6d77e59d41350901b2bafbaf8791df0 (patch)
treeb97b1b78966dba5ac3194558d779ca1840f10304 /sound/pci/asihpi/hpios.h
parentALSA: asihpi: Refactor control cache code. (diff)
downloadwireguard-linux-f9a376c3f6d77e59d41350901b2bafbaf8791df0.tar.xz
wireguard-linux-f9a376c3f6d77e59d41350901b2bafbaf8791df0.zip
ALSA: asihpi: Add support for stream interrupt.
Some cards have a so-called low-latency mode, in which they present a single multichannel stream with no mixing or samplerate conversion. In this mode the card can generate an interrupt per internal processing block (typically 32 or 64 frames) Signed-off-by: Eliot Blennerhassett <eliot@blennerhassett.gen.nz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/hpios.h')
-rw-r--r--sound/pci/asihpi/hpios.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/asihpi/hpios.h b/sound/pci/asihpi/hpios.h
index d17d017940d8..4e383601b9cf 100644
--- a/sound/pci/asihpi/hpios.h
+++ b/sound/pci/asihpi/hpios.h
@@ -151,6 +151,10 @@ struct hpi_adapter {
struct hpi_adapter_obj *adapter;
struct snd_card *snd_card;
+ int irq;
+ int interrupt_mode;
+ void (*interrupt_callback) (struct hpi_adapter *);
+
/* mutex prevents contention for one card
between multiple user programs (via ioctl) */
struct mutex mutex;