aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ctxfi/ctamixer.h
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-09-29 05:03:23 -0400
committerTakashi Iwai <tiwai@suse.de>2014-09-30 04:35:48 -0400
commit3d0fdc86e4b500dfcfbf2f68039d2d6853536c2e (patch)
tree302ea30c96531ec2ab2afb06833cdfddc738b5d1 /sound/pci/ctxfi/ctamixer.h
parentb6bfe86fd22a7e21c50f5b36c894f721614bafa5 (diff)
ALSA: ctxfi: added reference of snd_card
added a pointer of snd_card in some of the structures to get a reference of the card from other functions. these references of snd_card will be initialised in the next patch of this series and as of now these snd_card will be used to print the the device information when we convert the pr_* macros to dev_* in a later patch of this series. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/ctamixer.h')
-rw-r--r--sound/pci/ctxfi/ctamixer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/ctxfi/ctamixer.h b/sound/pci/ctxfi/ctamixer.h
index 6fa5eff7b89d..72f42f27434e 100644
--- a/sound/pci/ctxfi/ctamixer.h
+++ b/sound/pci/ctxfi/ctamixer.h
@@ -21,6 +21,7 @@
21 21
22#include "ctresource.h" 22#include "ctresource.h"
23#include <linux/spinlock.h> 23#include <linux/spinlock.h>
24#include <sound/core.h>
24 25
25/* Define the descriptor of a summation node resource */ 26/* Define the descriptor of a summation node resource */
26struct sum { 27struct sum {
@@ -35,6 +36,7 @@ struct sum_desc {
35 36
36struct sum_mgr { 37struct sum_mgr {
37 struct rsc_mgr mgr; /* Basic resource manager info */ 38 struct rsc_mgr mgr; /* Basic resource manager info */
39 struct snd_card *card; /* pointer to this card */
38 spinlock_t mgr_lock; 40 spinlock_t mgr_lock;
39 41
40 /* request one sum resource */ 42 /* request one sum resource */
@@ -79,6 +81,7 @@ struct amixer_desc {
79 81
80struct amixer_mgr { 82struct amixer_mgr {
81 struct rsc_mgr mgr; /* Basic resource manager info */ 83 struct rsc_mgr mgr; /* Basic resource manager info */
84 struct snd_card *card; /* pointer to this card */
82 spinlock_t mgr_lock; 85 spinlock_t mgr_lock;
83 86
84 /* request one amixer resource */ 87 /* request one amixer resource */