diff options
Diffstat (limited to 'sound/pci/ctxfi/ctsrc.h')
-rw-r--r-- | sound/pci/ctxfi/ctsrc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/pci/ctxfi/ctsrc.h b/sound/pci/ctxfi/ctsrc.h index 259366aabcac..da7573c5db9b 100644 --- a/sound/pci/ctxfi/ctsrc.h +++ b/sound/pci/ctxfi/ctsrc.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "ctimap.h" | 23 | #include "ctimap.h" |
24 | #include <linux/spinlock.h> | 24 | #include <linux/spinlock.h> |
25 | #include <linux/list.h> | 25 | #include <linux/list.h> |
26 | #include <sound/core.h> | ||
26 | 27 | ||
27 | #define SRC_STATE_OFF 0x0 | 28 | #define SRC_STATE_OFF 0x0 |
28 | #define SRC_STATE_INIT 0x4 | 29 | #define SRC_STATE_INIT 0x4 |
@@ -85,6 +86,7 @@ struct src_desc { | |||
85 | /* Define src manager object */ | 86 | /* Define src manager object */ |
86 | struct src_mgr { | 87 | struct src_mgr { |
87 | struct rsc_mgr mgr; /* Basic resource manager info */ | 88 | struct rsc_mgr mgr; /* Basic resource manager info */ |
89 | struct snd_card *card; /* pointer to this card */ | ||
88 | spinlock_t mgr_lock; | 90 | spinlock_t mgr_lock; |
89 | 91 | ||
90 | /* request src resource */ | 92 | /* request src resource */ |
@@ -123,6 +125,7 @@ struct srcimp_desc { | |||
123 | 125 | ||
124 | struct srcimp_mgr { | 126 | struct srcimp_mgr { |
125 | struct rsc_mgr mgr; /* Basic resource manager info */ | 127 | struct rsc_mgr mgr; /* Basic resource manager info */ |
128 | struct snd_card *card; /* pointer to this card */ | ||
126 | spinlock_t mgr_lock; | 129 | spinlock_t mgr_lock; |
127 | spinlock_t imap_lock; | 130 | spinlock_t imap_lock; |
128 | struct list_head imappers; | 131 | struct list_head imappers; |
@@ -140,10 +143,10 @@ struct srcimp_mgr { | |||
140 | }; | 143 | }; |
141 | 144 | ||
142 | /* Constructor and destructor of SRC resource manager */ | 145 | /* Constructor and destructor of SRC resource manager */ |
143 | int src_mgr_create(void *hw, struct src_mgr **rsrc_mgr); | 146 | int src_mgr_create(struct hw *hw, struct src_mgr **rsrc_mgr); |
144 | int src_mgr_destroy(struct src_mgr *src_mgr); | 147 | int src_mgr_destroy(struct src_mgr *src_mgr); |
145 | /* Constructor and destructor of SRCIMP resource manager */ | 148 | /* Constructor and destructor of SRCIMP resource manager */ |
146 | int srcimp_mgr_create(void *hw, struct srcimp_mgr **rsrc_mgr); | 149 | int srcimp_mgr_create(struct hw *hw, struct srcimp_mgr **rsrc_mgr); |
147 | int srcimp_mgr_destroy(struct srcimp_mgr *srcimp_mgr); | 150 | int srcimp_mgr_destroy(struct srcimp_mgr *srcimp_mgr); |
148 | 151 | ||
149 | #endif /* CTSRC_H */ | 152 | #endif /* CTSRC_H */ |