aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ctxfi/ctsrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/ctxfi/ctsrc.h')
-rw-r--r--sound/pci/ctxfi/ctsrc.h7
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 */
86struct src_mgr { 87struct 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
124struct srcimp_mgr { 126struct 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 */
143int src_mgr_create(void *hw, struct src_mgr **rsrc_mgr); 146int src_mgr_create(struct hw *hw, struct src_mgr **rsrc_mgr);
144int src_mgr_destroy(struct src_mgr *src_mgr); 147int src_mgr_destroy(struct src_mgr *src_mgr);
145/* Constructor and destructor of SRCIMP resource manager */ 148/* Constructor and destructor of SRCIMP resource manager */
146int srcimp_mgr_create(void *hw, struct srcimp_mgr **rsrc_mgr); 149int srcimp_mgr_create(struct hw *hw, struct srcimp_mgr **rsrc_mgr);
147int srcimp_mgr_destroy(struct srcimp_mgr *srcimp_mgr); 150int srcimp_mgr_destroy(struct srcimp_mgr *srcimp_mgr);
148 151
149#endif /* CTSRC_H */ 152#endif /* CTSRC_H */