ALSA: ctxfi - Use native timer interrupt on emu20k1
[sfrench/cifs-2.6.git] / sound / pci / ctxfi / ctatc.h
index b86d12cd4a192eda94dbb23b87c9ae3cf14ca26d..a3f9b1bc7dcc9859beb6d6fdd76f510043d4acbb 100644 (file)
@@ -59,16 +59,15 @@ struct ct_atc_chip_details {
 };
 
 struct ct_atc;
+struct ct_timer;
+struct ct_timer_instance;
 
 /* alsa pcm stream descriptor */
 struct ct_atc_pcm {
        struct snd_pcm_substream *substream;
        void (*interrupt)(struct ct_atc_pcm *apcm);
+       struct ct_timer_instance *timer;
        unsigned int started:1;
-       unsigned int stop_timer:1;
-       struct timer_list timer;
-       spinlock_t timer_lock;
-       unsigned int position;
 
        /* Only mono and interleaved modes are supported now. */
        struct ct_vm_block *vm_block;
@@ -144,6 +143,8 @@ struct ct_atc {
        unsigned char n_src;
        unsigned char n_srcimp;
        unsigned char n_pcm;
+
+       struct ct_timer *timer;
 };