Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mpeg2] Re: mpex experience
Hi,
Yeah, sound works now.
One strange thing I noticed when running xawtv are that I must use
grabdisplay. Overlay are not working anymore.
Attached a patch I need to compile under 2.4.20.
Not the best solution I guess but it works for me :-)
BTW: Nice work!
/Thomas
On Sunday 24 August 2003 01.11, Andrew de Quincey wrote:
> On Saturday 23 August 2003 01:07, greg wrote:
> > Hi Andrew,
> >
> > If you need a test bunny then I'm your guy.
> >
> > I've also hacked together procfs support for getting at some of the
> > status registers of the 7134 (if anyone is interested).
>
> Hiya, here is my latest patch for the MPEX encoder. This is against the
> snapshot 20030822 on http://bytesex.org/. Sound is working fine now, as is
> video.
>
> There may be a remaining issue: sound can be out of sync when you first
> read from the encoder, but gets back in sync within about 20 seconds. I'm
> gonna try and fix this soon, but I thought you might like to test a nearly
> working version ASAP.
>
>
> If you have a card *without* a tuner (as I do):
>
> Unfortunately, BMK have used the same subsystem ID as the Philips reference
> board, so theres no good way to tell the BMK board versions apart.
>
> When you load the module, you have to supply "chip=18" as a parameter.
>
> If you have more than one board (e.g. 3), you have as many 18's as boards
> (i.e. "chip=18,18,18" for 3 boards)
>
> I've numbered the inputs starting from the one nearest the screw on the PCI
> connector as there is nothing actually stamped on the card.
>
>
> For the version with the tuner:
>
> Omit the "card=18", and it will be detected as a philips encoder reference
> board. I don't know if this will work correctly however, as I don't know
> how the inputs are wired up: I had to beep the inputs on my card out with a
> voltmeter to work out what was connected to what.
>
> I'm not sure if sound is working for the tuner version. It is currently
> setup to read from LINE1. You may need to switch inputs using v4l to get
> sound from the tuner.
diff -ru saa7134-0.2.9/saa7134-core.c saa7134-0.2.9-2.4.20_comp/saa7134-core.c
--- saa7134-0.2.9/saa7134-core.c 2003-08-20 12:25:26.000000000 +0200
+++ saa7134-0.2.9-2.4.20_comp/saa7134-core.c 2003-08-24 02:06:48.000000000 +0200
@@ -131,6 +131,24 @@
};
#define OSSPCM_IOCTLS ARRAY_SIZE(v4l2_ioctls)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
+struct video_device* video_device_alloc(void)
+{
+ struct video_device *vfd;
+ vfd = kmalloc(sizeof(*vfd), GFP_KERNEL);
+ if (vfd==NULL) {
+ return NULL;
+ }
+ memset(vfd, 0, sizeof(*vfd));
+ return vfd;
+}
+
+void video_device_release(struct video_device *vfd)
+{
+ kfree(vfd);
+}
+#endif
+
void saa7134_print_ioctl(char *name, unsigned int cmd)
{
char *dir;
Home |
Main Index |
Thread Index