diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-09-29 09:03:26 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-30 08:36:59 (GMT) |
commit | 0cae90a96c15f2fd3bd139ba5505755c9c9ef2eb (patch) | |
tree | 36432fccc1f0898a62bcc083d41cbe10e3075f4c /sound/pci/ctxfi/ctsrc.c | |
parent | a45c4d5142595a9b7907499f6d67f702bc20aeb4 (diff) | |
download | linux-0cae90a96c15f2fd3bd139ba5505755c9c9ef2eb.tar.xz |
ALSA: ctxfi: pr_* replaced with dev_*
pr_* macros replaced with dev_* as they are more preffered over pr_*.
each file which had pr_* was reviewed manually and replaced with dev_*.
here we have actually used the various snd_card which was added to some
structures of ctxfi via a previous patch of this series.
in the ctvmem.c file we have passed a reference of ct_atc as an
argument to get_vm_block function so that it can be used from
dev_*.
since dev_* will print the device information , so the prefix of
"ctxfi" from the various pr_* were also removed.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/ctsrc.c')
-rw-r--r-- | sound/pci/ctxfi/ctsrc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/pci/ctxfi/ctsrc.c b/sound/pci/ctxfi/ctsrc.c index 50fa35b..ec1f084 100644 --- a/sound/pci/ctxfi/ctsrc.c +++ b/sound/pci/ctxfi/ctsrc.c @@ -431,7 +431,8 @@ get_src_rsc(struct src_mgr *mgr, const struct src_desc *desc, struct src **rsrc) spin_unlock_irqrestore(&mgr->mgr_lock, flags); if (err) { - pr_err("ctxfi: Can't meet SRC resource request!\n"); + dev_err(mgr->card->dev, + "Can't meet SRC resource request!\n"); return err; } @@ -740,7 +741,8 @@ static int get_srcimp_rsc(struct srcimp_mgr *mgr, } spin_unlock_irqrestore(&mgr->mgr_lock, flags); if (err) { - pr_err("ctxfi: Can't meet SRCIMP resource request!\n"); + dev_err(mgr->card->dev, + "Can't meet SRCIMP resource request!\n"); goto error1; } |