Hello,

I had to hack in my new PVR500 PAL with Samsung tuner. Attached are the
changes I made so it would work. Autodetect, tuning, sound all work
except that the sound output is significantly lower on the PVR500 then
on my PVR350.

It is like the PAL Samsung tuner was forgotten somehow, strange or done
on purpose :)

Anyway, great piece of work people :) I hope you guys make it into
2.6.18 but if not I'm sure you'll get it in 2.6.19.

Thanks and regards,
Sander

lspci:
mythtv ~ # lspci | grep iTVC16
03:08.0 Multimedia video controller: Internext Compression Inc iTVC16
(CX23416) MPEG-2 Encoder (rev 01)
03:09.0 Multimedia video controller: Internext Compression Inc iTVC16
(CX23416) MPEG-2 Encoder (rev 01)

And also attached the entries from /var/log/messages


--- tuner.h.old	2006-06-07 22:53:13.133235750 +0200
+++ tuner.h	2006-06-07 21:28:23.995952000 +0200
@@ -115,7 +115,8 @@
 
 #define TUNER_PHILIPS_TUV1236D		68	/* ATI HDTV Wonder */
 #define TUNER_TNF_5335MF                69	/* Sabrent Bt848   */
-#define TUNER_SAMSUNG_TCPN_2121P30A     70 	/* Hauppauge PVR-500MCE NTSC */
+#define TUNER_SAMSUNG_TCPN_2221P30A     70 	/* Hauppauge PVR-500MCE NTSC */
+#define TUNER_SAMSUNG_TCPG_6221P30A	71	/* Hauppauge PVR-500MCE PAL */
 
 /* tv card specific */
 #define TDA9887_PRESENT 		(1<<0)
--- tuner-types.c.old	2006-06-07 22:49:26.475070500 +0200
+++ tuner-types.c	2006-06-07 21:49:48.348219000 +0200
@@ -1084,22 +1084,37 @@
 };
 
 /* 70-79 */
-/* ------------ TUNER_SAMSUNG_TCPN_2121P30A - Samsung NTSC ------------ */
+/* ------------ TUNER_SAMSUNG_TCPN_2221P30A - Samsung NTSC ------------ */
 
-static struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = {
-	{ 16 * 175.75 /*MHz*/, 0x01, },
-	{ 16 * 410.25 /*MHz*/, 0x02, },
-	{ 16 * 999.99        , 0x08, },
+static struct tuner_range tuner_samsung_tcpn_2221p30a_ntsc_ranges[] = {
+	{ 16 * 130.00 /*MHz*/, 0x01+4, },
+	{ 16 * 364.50 /*MHz*/, 0x02+4, },
+	{ 16 * 999.99        , 0x08+4, },
 };
 
-static struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = {
+static struct tuner_params tuner_samsung_tcpn_2221p30a_params[] = {
 	{
 		.type   = TUNER_PARAM_TYPE_NTSC,
-		.ranges = tuner_samsung_tcpn_2121p30a_ntsc_ranges,
-		.count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_ntsc_ranges),
+		.ranges = tuner_samsung_tcpn_2221p30a_ntsc_ranges,
+		.count  = ARRAY_SIZE(tuner_samsung_tcpn_2221p30a_ntsc_ranges),
 		.config = 0xce,
 	},
 };
+/* ------------ TUNER_SAMSUNG_TCPG_6221P30A - Samsung PAL ------------ */
+static struct tuner_range tuner_samsung_tcpg_6221p30a_pal_ranges[] = {
+	{ 16 * 146.25 /*Mhz*/, 0x01+4 },
+	{ 16 * 428.50 /*Mhz*/, 0x02+4 },
+	{ 16 * 999.99        , 0x08+4 },
+};
+
+static struct tuner_params tuner_samsung_tcpg_6221p30a_params[] = {
+	{
+		.type   = TUNER_PARAM_TYPE_PAL,
+		.ranges = tuner_samsung_tcpg_6221p30a_pal_ranges,
+		.count  = ARRAY_SIZE(tuner_samsung_tcpg_6221p30a_pal_ranges),
+		.config = 0xce,
+	}
+};
 
 /* --------------------------------------------------------------------- */
 
@@ -1397,9 +1412,13 @@
 	},
 
 	/* 70-79 */
-	[TUNER_SAMSUNG_TCPN_2121P30A] = { /* Samsung NTSC */
-		.name   = "Samsung TCPN 2121P30A",
-		.params = tuner_samsung_tcpn_2121p30a_params,
+	[TUNER_SAMSUNG_TCPN_2221P30A] = { /* Samsung NTSC */
+		.name   = "Samsung TCPN 2221P30A",
+		.params = tuner_samsung_tcpn_2221p30a_params,
+	},
+	[TUNER_SAMSUNG_TCPG_6221P30A] = { /* Samsung PAL */
+		.name   = "Samsung TCPG 6221P30A",
+		.params = tuner_samsung_tcpg_6221p30a_params,
 	},
 };
 
--- tveeprom.c.old	2006-06-07 22:51:25.082483000 +0200
+++ tveeprom.c	2006-06-07 21:09:02.407357250 +0200
@@ -190,7 +190,7 @@
 	{ TUNER_LG_PAL_NEW_TAPC, "TCL 2002MI 3"},
 	{ TUNER_TCL_2002N,     "TCL 2002N 6A"},
 	{ TUNER_PHILIPS_FM1236_MK3, "Philips FQ1236 MK3"},
-	{ TUNER_SAMSUNG_TCPN_2121P30A, "Samsung TCPN 2121P30A"},
+	{ TUNER_SAMSUNG_TCPN_2221P30A, "Samsung TCPN 2221P30A"},
 	{ TUNER_ABSENT,        "Samsung TCPE 4121P30A"},
 	{ TUNER_PHILIPS_FM1216ME_MK3, "TCL MFPE05 2"},
 	/* 90-99 */
@@ -200,7 +200,7 @@
 	{ TUNER_ABSENT,        "Philips FQ1286A MK4"},
 	{ TUNER_ABSENT,        "Philips FQ1216ME MK5"},
 	{ TUNER_ABSENT,        "Philips FQ1236 MK5"},
-	{ TUNER_ABSENT,        "Samsung TCPG_6121P30A"},
+	{ TUNER_SAMSUNG_TCPG_6221P30A, "Samsung TCPG 6221P30A"},
 	{ TUNER_TCL_2002MB,    "TCL 2002MB_3H"},
 	{ TUNER_ABSENT,        "TCL 2002MI_3H"},
 	{ TUNER_TCL_2002N,     "TCL 2002N 5H"},
Jun  8 02:22:28 mythtv ivtv:  ==================== START INIT IVTV 
====================
Jun  8 02:22:28 mythtv ivtv:  version 0.6.2 (tagged release) loading
Jun  8 02:22:28 mythtv ivtv:  Linux version: 2.6.16-gentoo-r8 K7 gcc-3.4
Jun  8 02:22:28 mythtv ivtv:  In case of problems please include the debug info 
between
Jun  8 02:22:28 mythtv ivtv:  the START INIT IVTV and END INIT IVTV lines, 
along with
Jun  8 02:22:28 mythtv ivtv:  any module options, when mailing the ivtv-users 
mailinglist.
Jun  8 02:22:28 mythtv ivtv0: Autodetected Hauppauge WinTV PVR-350 card 
(cx23415 based)
Jun  8 02:22:28 mythtv ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 16
Jun  8 02:22:28 mythtv ACPI: PCI Interrupt 0000:02:08.0[A] -> Link [LNKA] -> 
GSI 16 (level, high) -> IRQ 20
Jun  8 02:22:28 mythtv tveeprom 0-0050: Hauppauge model 48139, rev K257, 
serial# 8234845
Jun  8 02:22:28 mythtv tveeprom 0-0050: tuner model is Philips FM1216 ME MK3 
(idx 57, type 38)
Jun  8 02:22:28 mythtv tveeprom 0-0050: TV standards PAL(B/G) PAL(I) 
SECAM(L/L') PAL(D/D1/K) (eeprom 0x74)
Jun  8 02:22:28 mythtv tveeprom 0-0050: audio processor is MSP4418 (idx 25)
Jun  8 02:22:28 mythtv tveeprom 0-0050: decoder processor is SAA7115 (idx 19)
Jun  8 02:22:28 mythtv tveeprom 0-0050: has radio, has IR remote
Jun  8 02:22:28 mythtv tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
Jun  8 02:22:28 mythtv tda9887 0-0043: chip found @ 0x86 (ivtv i2c driver #0)
Jun  8 02:22:28 mythtv saa7115 0-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
Jun  8 02:22:28 mythtv saa7127 0-0044: saa7129 found @ 0x88 (ivtv i2c driver #0)
Jun  8 02:22:28 mythtv msp3400 0-0040: MSP4418G-B3 found @ 0x80 (ivtv i2c 
driver #0)
Jun  8 02:22:28 mythtv msp3400 0-0040: MSP4418G-B3 supports nicam and radio, 
mode is autodetect and autoselect
Jun  8 02:22:28 mythtv ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jun  8 02:22:28 mythtv ivtv0: loaded v4l-cx2341x-dec.fw firmware (262144 bytes)
Jun  8 02:22:28 mythtv ivtv0: Encoder revision: 0x02050032
Jun  8 02:22:28 mythtv ivtv0: Decoder revision: 0x02020023
Jun  8 02:22:28 mythtv ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 
buffers (4096KB total)
Jun  8 02:22:28 mythtv ivtv0: Allocate DMA encoder YUV stream: 161 x 12960 
buffers (2048KB total)
Jun  8 02:22:28 mythtv ivtv0: Allocate DMA encoder VBI stream: 80 x 26208 
buffers (2048KB total)
Jun  8 02:22:28 mythtv ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 
buffers (2048KB total)
Jun  8 02:22:28 mythtv ivtv0: Create encoder radio stream
Jun  8 02:22:28 mythtv ivtv0: Allocate DMA decoder MPEG stream: 16 x 65536 
buffers (1024KB total)
Jun  8 02:22:28 mythtv ivtv0: Allocate DMA decoder VBI stream: 512 x 2048 
buffers (1024KB total)
Jun  8 02:22:28 mythtv ivtv0: Create decoder VOUT stream
Jun  8 02:22:28 mythtv ivtv0: Allocate DMA decoder YUV stream: 20 x 51840 
buffers (1024KB total)
Jun  8 02:22:28 mythtv ivtv0: loaded v4l-cx2341x-init.mpg firmware (155648 
bytes)
Jun  8 02:22:28 mythtv tuner 0-0061: type set to 38 (Philips PAL/SECAM multi 
(FM1216ME MK3))
Jun  8 02:22:28 mythtv ivtv0: Initialized Hauppauge WinTV PVR-350, card #0
Jun  8 02:22:28 mythtv ivtv:  ======================  NEXT CARD  
======================
Jun  8 02:22:28 mythtv ivtv1: Autodetected Hauppauge WinTV PVR-150 card 
(cx23416 based)
Jun  8 02:22:28 mythtv ACPI: PCI Interrupt 0000:03:08.0[A] -> Link [LNKC] -> 
GSI 18 (level, high) -> IRQ 19
Jun  8 02:22:28 mythtv tuner 1-0060: TEA5767 detected.
Jun  8 02:22:28 mythtv tuner 1-0060: chip found @ 0xc0 (ivtv i2c driver #1)
Jun  8 02:22:28 mythtv tuner 1-0060: type set to 62 (Philips TEA5767HN FM Radio)
Jun  8 02:22:28 mythtv tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #1)
Jun  8 02:22:28 mythtv tda9887 1-0043: chip found @ 0x86 (ivtv i2c driver #1)
Jun  8 02:22:28 mythtv tveeprom 1-0050: Hauppauge model 23559, rev E596, 
serial# 8837751
Jun  8 02:22:28 mythtv tveeprom 1-0050: tuner model is Samsung TCPG 6221P30A 
(idx 96, type 71)
Jun  8 02:22:28 mythtv tveeprom 1-0050: TV standards PAL(B/G) PAL(I) 
SECAM(L/L') PAL(D/D1/K) (eeprom 0x74)
Jun  8 02:22:28 mythtv tveeprom 1-0050: second tuner model is Philips TEA5768HL 
FM Radio (idx 101, type 62)
Jun  8 02:22:28 mythtv tveeprom 1-0050: audio processor is CX25843 (idx 37)
Jun  8 02:22:28 mythtv tveeprom 1-0050: decoder processor is CX25843 (idx 30)
Jun  8 02:22:28 mythtv tveeprom 1-0050: has radio, has no IR remote
Jun  8 02:22:28 mythtv ivtv1: This is the first unit of a PVR500
Jun  8 02:22:28 mythtv cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver 
#1)
Jun  8 02:22:28 mythtv cx25840 1-0044: loaded v4l-cx25840.fw firmware (14264 
bytes)
Jun  8 02:22:28 mythtv wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #1)
Jun  8 02:22:28 mythtv ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jun  8 02:22:28 mythtv ivtv1: Encoder revision: 0x02050032
Jun  8 02:22:28 mythtv ivtv1: Allocate DMA encoder MPEG stream: 128 x 32768 
buffers (4096KB total)
Jun  8 02:22:28 mythtv ivtv1: Allocate DMA encoder YUV stream: 161 x 12960 
buffers (2048KB total)
Jun  8 02:22:28 mythtv ivtv1: Allocate DMA encoder VBI stream: 80 x 26208 
buffers (2048KB total)
Jun  8 02:22:28 mythtv ivtv1: Allocate DMA encoder PCM audio stream: 455 x 4608 
buffers (2048KB total)
Jun  8 02:22:28 mythtv ivtv1: Create encoder radio stream
Jun  8 02:22:28 mythtv tuner 1-0061: type set to 71 (Samsung TCPG 6221P30A)
Jun  8 02:22:28 mythtv ivtv1: Initialized WinTV PVR 500 (unit #1), card #1
Jun  8 02:22:28 mythtv ivtv:  ======================  NEXT CARD  
======================
Jun  8 02:22:28 mythtv ivtv2: Autodetected Hauppauge WinTV PVR-150 card 
(cx23416 based)
Jun  8 02:22:28 mythtv ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 19
Jun  8 02:22:28 mythtv ACPI: PCI Interrupt 0000:03:09.0[A] -> Link [LNKD] -> 
GSI 19 (level, high) -> IRQ 21
Jun  8 02:22:28 mythtv tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #2)
Jun  8 02:22:28 mythtv tda9887 2-0043: chip found @ 0x86 (ivtv i2c driver #2)
Jun  8 02:22:28 mythtv cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c driver 
#2)
Jun  8 02:22:28 mythtv cx25840 2-0044: loaded v4l-cx25840.fw firmware (14264 
bytes)
Jun  8 02:22:28 mythtv wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #2)
Jun  8 02:22:28 mythtv tveeprom 2-0050: Hauppauge model 23559, rev E596, 
serial# 8837751
Jun  8 02:22:28 mythtv tveeprom 2-0050: tuner model is Samsung TCPG 6221P30A 
(idx 96, type 71)
Jun  8 02:22:28 mythtv tveeprom 2-0050: TV standards PAL(B/G) PAL(I) 
SECAM(L/L') PAL(D/D1/K) (eeprom 0x74)
Jun  8 02:22:28 mythtv tveeprom 2-0050: second tuner model is Philips TEA5768HL 
FM Radio (idx 101, type 62)
Jun  8 02:22:28 mythtv tveeprom 2-0050: audio processor is CX25843 (idx 37)
Jun  8 02:22:28 mythtv tveeprom 2-0050: decoder processor is CX25843 (idx 30)
Jun  8 02:22:28 mythtv tveeprom 2-0050: has radio, has no IR remote
Jun  8 02:22:28 mythtv ivtv2: This is the second unit of a PVR500
Jun  8 02:22:28 mythtv ivtv2: Correcting tveeprom data: no radio present on 
second unit
Jun  8 02:22:28 mythtv ivtv2: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jun  8 02:22:28 mythtv ivtv2: Encoder revision: 0x02050032
Jun  8 02:22:28 mythtv ivtv2: Allocate DMA encoder MPEG stream: 128 x 32768 
buffers (4096KB total)
Jun  8 02:22:28 mythtv ivtv2: Allocate DMA encoder YUV stream: 161 x 12960 
buffers (2048KB total)
Jun  8 02:22:28 mythtv ivtv2: Allocate DMA encoder VBI stream: 80 x 26208 
buffers (2048KB total)
Jun  8 02:22:28 mythtv ivtv2: Allocate DMA encoder PCM audio stream: 455 x 4608 
buffers (2048KB total)
Jun  8 02:22:28 mythtv tuner 2-0061: type set to 71 (Samsung TCPG 6221P30A)
Jun  8 02:22:28 mythtv ivtv2: Initialized WinTV PVR 500 (unit #2), card #2
Jun  8 02:22:28 mythtv ivtv:  ====================  END INIT IVTV  
====================

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to