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>
This commit is contained in:
Eliot Blennerhassett
2014-11-20 16:22:53 +13:00
committed by Takashi Iwai
parent c1464a8854
commit f9a376c3f6
6 changed files with 321 additions and 50 deletions

View File

@@ -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;