Re: Newbie problems: SAA7134 (some progress made)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Oct 10, 2003 at 03:23:24AM +0200, hermann pitton wrote:
> That doesn't harm, because the default value of 5500 is correct.
> Whith card=9 you get an additional input tv-mono-only. Try to switch to
> that too.

Already tried. "Television" gives me static on most channels, silence on
some. The "TV (mono only)" gives silence on all stations.

> The thing is that I can't find out it, because I don't have this card.
> Marcel can try on test6 with saa7134-20030910 card=12 again.

And there be sound \o/

The sound is actually working now, good. With the snapshot driver and
card=12 though, only overlay works for the video. Grabdisplay does not.

Overlay doesn't behave as nicely as it should here; when I move the
window, the video stays at it's original position and only moves when I
release the mouse button. Also "fullscreen" in xawtv only gives me a
1/3rd size video image on an otherwise black screen.

I experienced the same problem with the Pinnacle PCTV Pro (bt878), so
I'm assuming it's a v4l2 problem that's not related to this driver.
Perhaps it's my XFree86 (4.2.1).

Anyhow, I hacked together a patch, that takes the video-options of card
9, and the audio options from card 12. I added a card ID for it, put in
the right PCI IDs, and removed the TV-mono-only option, since it seems
dummy here.

The driver with my patch works properly here; it autodetects the card,
and I have working overlay, grabdisplay and audio. Wheeeee! :)


The patch:

diff -ur saa7134-0.2.9/saa7134-cards.c new/saa7134-cards.c
--- saa7134-0.2.9/saa7134-cards.c	2003-10-09 15:06:53.000000000 +0200
+++ new/saa7134-cards.c	2003-10-10 22:53:24.000000000 +0200
@@ -625,6 +625,34 @@
 			.gpio = 2 << 14,
                 }},
         },
+	[SAA7134_BOARD_MD2819] = {
+		.name           = "Medion 2819",
+		.audio_clock    = 0x00187de7,
+		.tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
+		.need_tda9887   = 1,
+		.inputs         = {{
+			.name = name_tv,
+			.vmux = 1,
+			.amux = TV,
+			.tv   = 1,
+		},{
+			.name = name_comp1,
+			.vmux = 0,
+			.amux = LINE2,
+		},{
+			.name = name_comp2,
+			.vmux = 3,
+			.amux = LINE2,
+		},{
+			.name = name_svideo,
+			.vmux = 8,
+			.amux = LINE2,
+		}},
+		.radio = {
+			.name = name_radio,
+			.amux = LINE2,
+		},
+	},
 };
 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
 
@@ -741,6 +769,12 @@
                 .subdevice    = 0x48d0,
 		.driver_data  = SAA7134_BOARD_CRONOS_PLUS,
 	},{
+		.vendor       = PCI_VENDOR_ID_PHILIPS,
+		.device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
+                .subvendor    = 0x1461, /* Avermedia Technologies Inc */
+                .subdevice    = 0xa70b,
+		.driver_data  = SAA7134_BOARD_MD2819,
+	},{
 		
 		/* --- boards without eeprom + subsystem ID --- */
                 .vendor       = PCI_VENDOR_ID_PHILIPS,
diff -ur saa7134-0.2.9/saa7134.h new/saa7134.h
--- saa7134-0.2.9/saa7134.h	2003-10-09 14:26:40.000000000 +0200
+++ new/saa7134.h	2003-10-10 22:38:39.000000000 +0200
@@ -170,6 +170,7 @@
 #define SAA7134_BOARD_VIDEOMATE_TV     19
 #define SAA7134_BOARD_CRONOS_PLUS      20
 #define SAA7134_BOARD_10MOONSTVMASTER  21
+#define SAA7134_BOARD_MD2819           22
 
 #define SAA7134_INPUT_MAX 8
 

If Olav can get it working also, and you consider the patch fine, I'll
mail it to Gerd Knorr.

Olav:
Save above patch to a file (save the e-mail, and edit out the other
text; don't copy/paste the patch part, because that will replace tabs
in the code with spaces, rendering the patch invalid). Then download
the snapshot from http://bytesex.org/snapshot/ (saa7134-20031009.tar.gz),
and untar it. Move into the source directory, and type:

  patch -p1 < patch_file

Where patch_file is the file with above patch in it, obviously. Then
compile the driver, and load video-buf.ko, tda9887.ko, tuner.ko and
ir-common.o using insmod. Then load saa7134.ko, and watchs
/var/log/messages closely; it should autodetect your card now.

Marcel




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux