Commit c9d044cb authored by Gerd Knorr's avatar Gerd Knorr Committed by Linus Torvalds

[PATCH] v4l: create include/media

This patch creates a new include directory include/media, populates
it with a few files header files and fixups the affected drivers to
compile with the new directory layout.

The directory is intented to be used for (kernel-internal) header files
of the media drivers (which are sitting below drivers/media).  For now
the video-buf.h (mm helper), tuner.h (tv/radio tuner) and audiochip.h
(tv sound decoder drivers) header files are moved.  Some more header
files from the dvb folks will likely follow.
parent a800d7ad
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <asm/io.h> #include <asm/io.h>
#include "bttvp.h" #include "bttvp.h"
#include "tuner.h"
#include "bt832.h" #include "bt832.h"
/* fwd decl */ /* fwd decl */
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include <asm/io.h> #include <asm/io.h>
#include "bttvp.h" #include "bttvp.h"
#include "tuner.h"
int bttv_num; /* number of Bt848s in use */ int bttv_num; /* number of Bt848s in use */
struct bttv bttvs[BTTV_MAX]; struct bttv bttvs[BTTV_MAX];
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <asm/io.h> #include <asm/io.h>
#include "bttvp.h" #include "bttvp.h"
#include "tuner.h"
static struct i2c_algo_bit_data bttv_i2c_algo_template; static struct i2c_algo_bit_data bttv_i2c_algo_template;
static struct i2c_adapter bttv_i2c_adap_template; static struct i2c_adapter bttv_i2c_adap_template;
......
...@@ -34,10 +34,12 @@ ...@@ -34,10 +34,12 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <asm/scatterlist.h> #include <asm/scatterlist.h>
#include <media/video-buf.h>
#include <media/audiochip.h>
#include <media/tuner.h>
#include "bt848.h" #include "bt848.h"
#include "bttv.h" #include "bttv.h"
#include "video-buf.h"
#include "audiochip.h"
#ifdef __KERNEL__ #ifdef __KERNEL__
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
#define __KERNEL_SYSCALLS__ #define __KERNEL_SYSCALLS__
#include <linux/unistd.h> #include <linux/unistd.h>
#include "audiochip.h" #include <media/audiochip.h>
#include "msp3400.h" #include "msp3400.h"
/* Addresses to scan */ /* Addresses to scan */
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "saa7134-reg.h" #include "saa7134-reg.h"
#include "saa7134.h" #include "saa7134.h"
#include "tuner.h"
/* commly used strings */ /* commly used strings */
static char name_mute[] = "mute"; static char name_mute[] = "mute";
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "saa7134-reg.h" #include "saa7134-reg.h"
#include "saa7134.h" #include "saa7134.h"
#include "tuner.h"
MODULE_DESCRIPTION("v4l2 driver module for saa7130/34 based TV cards"); MODULE_DESCRIPTION("v4l2 driver module for saa7130/34 based TV cards");
MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]");
......
...@@ -30,8 +30,6 @@ ...@@ -30,8 +30,6 @@
#include "saa7134-reg.h" #include "saa7134-reg.h"
#include "saa7134.h" #include "saa7134.h"
#include "tuner.h"
#include "id.h"
/* ----------------------------------------------------------- */ /* ----------------------------------------------------------- */
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include "saa7134-reg.h" #include "saa7134-reg.h"
#include "saa7134.h" #include "saa7134.h"
#include "tuner.h"
#include "audiochip.h"
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
......
...@@ -22,7 +22,11 @@ ...@@ -22,7 +22,11 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/videodev.h> #include <linux/videodev.h>
#include <linux/kdev_t.h> #include <linux/kdev_t.h>
#include "video-buf.h"
#include <media/video-buf.h>
#include <media/tuner.h>
#include <media/audiochip.h>
#include <media/id.h>
#define SAA7134_VERSION_CODE KERNEL_VERSION(0,2,2) #define SAA7134_VERSION_CODE KERNEL_VERSION(0,2,2)
......
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
#include <linux/i2c-algo-bit.h> #include <linux/i2c-algo-bit.h>
#include "bttv.h" #include "bttv.h"
#include "audiochip.h" #include <media/audiochip.h>
#include "id.h" #include <media/id.h>
#ifndef VIDEO_AUDIO_BALANCE #ifndef VIDEO_AUDIO_BALANCE
# define VIDEO_AUDIO_BALANCE 32 # define VIDEO_AUDIO_BALANCE 32
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
#include <linux/init.h> #include <linux/init.h>
#include "bttv.h" #include "bttv.h"
#include "audiochip.h" #include <media/audiochip.h>
#include "id.h" #include <media/id.h>
MODULE_PARM(debug,"i"); MODULE_PARM(debug,"i");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "id.h" #include <media/audiochip.h>
#include "audiochip.h" #include <media/id.h>
/* Chips: /* Chips:
TDA9885 (PAL, NTSC) TDA9885 (PAL, NTSC)
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/videodev.h> #include <linux/videodev.h>
#include "tuner.h" #include <media/tuner.h>
static int debug; /* insmod parameter */ static int debug; /* insmod parameter */
static int this_adap; static int this_adap;
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#include <linux/videodev.h> #include <linux/videodev.h>
#include <linux/init.h> #include <linux/init.h>
#include "tuner.h" #include <media/tuner.h>
#include "audiochip.h" #include <media/audiochip.h>
/* Addresses to scan */ /* Addresses to scan */
static unsigned short normal_i2c[] = {I2C_CLIENT_END}; static unsigned short normal_i2c[] = {I2C_CLIENT_END};
......
...@@ -29,9 +29,10 @@ ...@@ -29,9 +29,10 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include "audiochip.h" #include <media/audiochip.h>
#include <media/id.h>
#include "tvaudio.h" #include "tvaudio.h"
#include "id.h"
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
# define TryLockPage TestSetPageLocked # define TryLockPage TestSetPageLocked
#endif #endif
#include "video-buf.h" #include <media/video-buf.h>
static int debug = 0; static int debug = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment