diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-01-28 02:34:21 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:30:17 -0500 |
commit | 1e821dd2763c97df1a0a451e553d218cb8886cd7 (patch) | |
tree | c09376cd0e36251f1c83ec6bf4e52a7226db7811 /sound/pci/oxygen/oxygen.h | |
parent | 911b499af45e879ccf4b8db234278a7136d056c9 (diff) |
[ALSA] oxygen: use AC97 interrupt
After an AC97 register read or write, use the AC97 interrupt instead of
polling to wait for the access to be completed.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen/oxygen.h')
-rw-r--r-- | sound/pci/oxygen/oxygen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h index 8fc9e7ca1182..55ce2448805d 100644 --- a/sound/pci/oxygen/oxygen.h +++ b/sound/pci/oxygen/oxygen.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <linux/mutex.h> | 4 | #include <linux/mutex.h> |
5 | #include <linux/spinlock.h> | 5 | #include <linux/spinlock.h> |
6 | #include <linux/wait.h> | ||
6 | #include <linux/workqueue.h> | 7 | #include <linux/workqueue.h> |
7 | #include "oxygen_regs.h" | 8 | #include "oxygen_regs.h" |
8 | 9 | ||
@@ -65,6 +66,7 @@ struct oxygen { | |||
65 | struct snd_pcm_substream *streams[PCM_COUNT]; | 66 | struct snd_pcm_substream *streams[PCM_COUNT]; |
66 | struct snd_kcontrol *controls[CONTROL_COUNT]; | 67 | struct snd_kcontrol *controls[CONTROL_COUNT]; |
67 | struct work_struct spdif_input_bits_work; | 68 | struct work_struct spdif_input_bits_work; |
69 | wait_queue_head_t ac97_waitqueue; | ||
68 | }; | 70 | }; |
69 | 71 | ||
70 | struct oxygen_model { | 72 | struct oxygen_model { |