Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71036ef2 authored by Devin Heitmueller's avatar Devin Heitmueller Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB: cx18-alsa: codingstyle cleanup



Remove some dead code and make a PCM specific module debug parameter to avoid
an extern reference.

Signed-off-by: default avatarDevin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f8bd9d26
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -37,11 +37,13 @@
#include "cx18-fileops.h"
#include "cx18-alsa.h"

extern int cx18_alsa_debug;
static unsigned int pcm_debug;
module_param(pcm_debug, int, 0644);
MODULE_PARM_DESC(pcm_debug, "enable debug messages for pcm");

#define dprintk(fmt, arg...) do {					\
	    if (cx18_alsa_debug)					\
		printk(KERN_INFO "cx18-alsa %s: " fmt,			\
	    if (pcm_debug)						\
		printk(KERN_INFO "cx18-alsa-pcm %s: " fmt,		\
				  __func__, ##arg); 			\
	} while (0)