aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-alsa.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2009-05-25 20:40:25 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 13:10:42 -0500
commit9722c8f95a5bd51a3d392cb2f125c8240b745c48 (patch)
treeb7346813bbfccb672be30a6025d558318c6fd472 /drivers/media/video/cx18/cx18-alsa.h
parent5eb3291fe84b30a8e2fda31fd5fa44c40575f283 (diff)
V4L/DVB: cx18-alsa: Initial non-working cx18-alsa files
Initial cx18-alsa module files check-in to avoid losing work. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-alsa.h')
-rw-r--r--drivers/media/video/cx18/cx18-alsa.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-alsa.h b/drivers/media/video/cx18/cx18-alsa.h
new file mode 100644
index 000000000000..ea8576fd5786
--- /dev/null
+++ b/drivers/media/video/cx18/cx18-alsa.h
@@ -0,0 +1,55 @@
1/*
2 * ALSA interface to cx18 PCM capture streams
3 *
4 * Copyright (C) 2009 Andy Walls <awalls@radix.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 * 02111-1307 USA
20 */
21
22struct snd_card;
23
24struct snd_cx18_card {
25 struct v4l2_device *v4l2_dev;
26 struct snd_card *sc;
27};
28
29extern int cx18_alsa_debug;
30
31#define CX18_ALSA_DBGFLG_WARN (1 << 0)
32#define CX18_ALSA_DBGFLG_WARN (1 << 0)
33#define CX18_ALSA_DBGFLG_INFO (1 << 1)
34
35#define CX18_ALSA_DEBUG(x, type, fmt, args...) \
36 do { \
37 if ((x) & cx18_alsa_debug) \
38 printk(KERN_INFO "%s-alsa: " type ": " fmt, \
39 v4l2_dev->name , ## args); \
40 } while (0)
41
42#define CX18_ALSA_DEBUG_WARN(fmt, args...) \
43 CX18_ALSA_DEBUG(CX18_ALSA_DBGFLG_WARN, "warning", fmt , ## args)
44
45#define CX18_ALSA_DEBUG_INFO(fmt, args...) \
46 CX18_ALSA_DEBUG(CX18_ALSA_DBGFLG_INFO, "info", fmt , ## args)
47
48#define CX18_ALSA_ERR(fmt, args...) \
49 printk(KERN_ERR "%s-alsa: " fmt, v4l2_dev->name , ## args)
50
51#define CX18_ALSA_WARN(fmt, args...) \
52 printk(KERN_WARNING "%s-alsa: " fmt, v4l2_dev->name , ## args)
53
54#define CX18_ALSA_INFO(fmt, args...) \
55 printk(KERN_INFO "%s-alsa: " fmt, v4l2_dev->name , ## args)