diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-09-29 11:03:23 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-30 10:35:48 +0200 |
commit | 3d0fdc86e4b500dfcfbf2f68039d2d6853536c2e (patch) | |
tree | 302ea30c96531ec2ab2afb06833cdfddc738b5d1 /sound/pci/ctxfi/ctdaio.h | |
parent | ALSA: ctxfi: removed typecast to (struct hw *) (diff) | |
download | linux-3d0fdc86e4b500dfcfbf2f68039d2d6853536c2e.tar.xz linux-3d0fdc86e4b500dfcfbf2f68039d2d6853536c2e.zip |
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/ctdaio.h')
-rw-r--r-- | sound/pci/ctxfi/ctdaio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/ctxfi/ctdaio.h b/sound/pci/ctxfi/ctdaio.h index e4817de08864..0ebbf350f51a 100644 --- a/sound/pci/ctxfi/ctdaio.h +++ b/sound/pci/ctxfi/ctdaio.h @@ -23,6 +23,7 @@ #include "ctimap.h" #include <linux/spinlock.h> #include <linux/list.h> +#include <sound/core.h> /* Define the descriptor of a daio resource */ enum DAIOTYP { @@ -98,6 +99,7 @@ struct daio_desc { struct daio_mgr { struct rsc_mgr mgr; /* Basic resource manager info */ + struct snd_card *card; /* pointer to this card */ spinlock_t mgr_lock; spinlock_t imap_lock; struct list_head imappers; |