From a9f1c290863f5aabdb9f36dfe7a1499ae05a9d45 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Tue, 3 Jun 2003 13:07:01 +0000 Subject: Here comes the "dvb-c analog module hack" - if the analog module is detected, the saa7113 is initialized and some more v4l2 ioctls are available. you can use "xawtv" now to switch between "dvb" and "analog" input. when you are one the "analog" input, you can tune in analog channels with the cursor keys via v4l2. currently, this is a big hack -- tuning is not mutually exclusive, so "szap" and v4l2 tuning can interfere with each other. the demodulator address is hardcoded to 0x09. Other changes: - changed the saa7146 ioctl parameters, give out the data of the current device open "fh" (=> "file handle"), not the pointer to the device structure "dev". It is "dev = fh->dev". Some stuff does not work: - analog audio does not work. does the msp3400 need to be reprogrammed? - one field is "missing", so the picture is very bad and capturing does not work neither. this needs to be investigated by looking at the programming the windows driver uses for the saa7146 --- linux/drivers/media/dvb/ttpci/budget-av.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/ttpci/budget-av.c') diff --git a/linux/drivers/media/dvb/ttpci/budget-av.c b/linux/drivers/media/dvb/ttpci/budget-av.c index 3b7c386b0..e4c294656 100644 --- a/linux/drivers/media/dvb/ttpci/budget-av.c +++ b/linux/drivers/media/dvb/ttpci/budget-av.c @@ -265,8 +265,9 @@ struct saa7146_extension_ioctls ioctls[] = { static -int av_ioctl(struct saa7146_dev *dev, unsigned int cmd, void *arg) +int av_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg) { + struct saa7146_dev *dev = fh->dev; struct budget_av *budget_av = (struct budget_av*) dev->ext_priv; /* struct saa7146_vv *vv = dev->vv_data; -- cgit v1.2.3