Re:

2015-11-13 Thread Alberto Mardegan
On 11/12/2015 07:20 PM, Mauro Carvalho Chehab wrote:
> Complaining doesn't help at all. We don't read the mailing list to

I wasn't complaining, just asking :-)

[...]
> All patches that goes to the ML are automatically stored there, and will be
> handled by one of the (sub-)maintainers.
[...]

That was the information I missed. Then all is fine, thanks. :-)

Ciao,
  Alberto

-- 
http://blog.mardy.it <- geek in un lingua international!
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re:

2015-11-12 Thread Alberto Mardegan

On 11/12/2015 06:25 AM, Walter Cheuk wrote:

I sent a patch named "[PATCH] tv tuner max2165 driver: extend
frequency range" two weeks ago (22/10). Is it being reviewed? Thank
you.


Since such reminders seem to help, I also sent a patch on 27/10:
"[PATCH] [media] em28xx: add Terratec Cinergy T XS (MT2060)"

It's not urgent, given that people have been surviving without support 
for this device for years, but I'd just like to make sure that it won't 
be forgotten.


Ciao,
  Alberto

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] [media] em28xx: add Terratec Cinergy T XS (MT2060)

2015-10-27 Thread Alberto Mardegan
The Terratec Cinergy T XS is a DVB-T receiver with no analog TV tuner.
This patch adds support for the cards carrying the mt2060 tuner; it's
unclear whether there are cards sold under the same name which use a
different tuner.
As long as there are no reports of such cards, and indeed as long as
there are no working drivers for them, we assume that the USB device
[0ccd:0043] is carrying the mt2060 tuner.

Signed-off-by: Alberto Mardegan <ma...@users.sourceforge.net>
---
 Documentation/video4linux/CARDLIST.em28xx |  4 ++--
 drivers/media/usb/em28xx/em28xx-cards.c   |  8 ++--
 drivers/media/usb/em28xx/em28xx-dvb.c | 15 +++
 3 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/Documentation/video4linux/CARDLIST.em28xx 
b/Documentation/video4linux/CARDLIST.em28xx
index 9e57ce4..6720999 100644
--- a/Documentation/video4linux/CARDLIST.em28xx
+++ b/Documentation/video4linux/CARDLIST.em28xx
@@ -41,8 +41,8 @@
  40 -> Plextor ConvertX PX-TV100U   (em2861)[093b:a005]
  41 -> Kworld 350 U DVB-T   (em2870)[eb1a:e350]
  42 -> Kworld 355 U DVB-T   (em2870)
[eb1a:e355,eb1a:e357,eb1a:e359]
- 43 -> Terratec Cinergy T XS(em2870)[0ccd:0043]
- 44 -> Terratec Cinergy T XS (MT2060)   (em2870)
+ 43 -> Terratec Cinergy T XS(em2870)
+ 44 -> Terratec Cinergy T XS (MT2060)   (em2870)[0ccd:0043]
  45 -> Pinnacle PCTV DVB-T  (em2870)
  46 -> Compro, VideoMate U3 (em2870)[185b:2870]
  47 -> KWorld DVB-T 305U(em2880)[eb1a:e305]
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c 
b/drivers/media/usb/em28xx/em28xx-cards.c
index 3940046..30d7629 100644
--- a/drivers/media/usb/em28xx/em28xx-cards.c
+++ b/drivers/media/usb/em28xx/em28xx-cards.c
@@ -1051,8 +1051,12 @@ struct em28xx_board em28xx_boards[] = {
},
[EM2870_BOARD_TERRATEC_XS_MT2060] = {
.name = "Terratec Cinergy T XS (MT2060)",
-   .valid= EM28XX_BOARD_NOT_VALIDATED,
+   .xclk = EM28XX_XCLK_IR_RC5_MODE |
+   EM28XX_XCLK_FREQUENCY_12MHZ,
+   .i2c_speed= EM28XX_I2C_CLK_WAIT_ENABLE,
.tuner_type   = TUNER_ABSENT, /* MT2060 */
+   .has_dvb  = 1,
+   .tuner_gpio   = default_tuner_gpio,
},
[EM2870_BOARD_KWORLD_350U] = {
.name = "Kworld 350 U DVB-T",
@@ -2368,7 +2372,7 @@ struct usb_device_id em28xx_id_table[] = {
{ USB_DEVICE(0x0ccd, 0x0042),
.driver_info = EM2882_BOARD_TERRATEC_HYBRID_XS },
{ USB_DEVICE(0x0ccd, 0x0043),
-   .driver_info = EM2870_BOARD_TERRATEC_XS },
+   .driver_info = EM2870_BOARD_TERRATEC_XS_MT2060 },
{ USB_DEVICE(0x0ccd, 0x008e),   /* Cinergy HTC USB XS Rev. 1 */
.driver_info = EM2884_BOARD_TERRATEC_HTC_USB_XS },
{ USB_DEVICE(0x0ccd, 0x00ac),   /* Cinergy HTC USB XS Rev. 2 */
diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c 
b/drivers/media/usb/em28xx/em28xx-dvb.c
index 357be76..bf5c244 100644
--- a/drivers/media/usb/em28xx/em28xx-dvb.c
+++ b/drivers/media/usb/em28xx/em28xx-dvb.c
@@ -38,6 +38,7 @@
 #include "lgdt3305.h"
 #include "zl10353.h"
 #include "s5h1409.h"
+#include "mt2060.h"
 #include "mt352.h"
 #include "mt352_priv.h" /* FIXME */
 #include "tda1002x.h"
@@ -815,6 +816,10 @@ static struct zl10353_config 
em28xx_zl10353_no_i2c_gate_dev = {
.parallel_ts = 1,
 };
 
+static struct mt2060_config em28xx_mt2060_config = {
+   .i2c_address = 0x60,
+};
+
 static struct qt1010_config em28xx_qt1010_config = {
.i2c_address = 0x62
 };
@@ -1142,6 +1147,16 @@ static int em28xx_dvb_init(struct em28xx *dev)
goto out_free;
}
break;
+   case EM2870_BOARD_TERRATEC_XS_MT2060:
+   dvb->fe[0] = dvb_attach(zl10353_attach,
+   _zl10353_no_i2c_gate_dev,
+   
>i2c_adap[dev->def_i2c_bus]);
+   if (dvb->fe[0] != NULL) {
+   dvb_attach(mt2060_attach, dvb->fe[0],
+   >i2c_adap[dev->def_i2c_bus],
+   _mt2060_config, 1220);
+   }
+   break;
case EM2870_BOARD_KWORLD_355U:
dvb->fe[0] = dvb_attach(zl10353_attach,
   _zl10353_no_i2c_gate_dev,
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Trying to get Terratec Cinergy T XS to work

2015-10-21 Thread Alberto Mardegan
Thanks to another developer, I've made some progress and loaded the
driver with the right tuner (mt2060). The /dev/dvb/* nodes are created.

Now the problem is that when I run a scan, the mt2060_set_params()
function is not called at all [1].
I've set the "debug" and "frontend_debug" flags to 1, but I don't see
any kernel messages when I'm scanning. (I'm using the "scan" command)

Can please someone guide me a bit to debug this?

Ciao,
  Alberto


[1]: I can tell that because I'se set the "debug=1" option on the mt2060
module, and I can indeed see some other debugging stuff when that module
is initialized, but the debug lines from the set_params() method are not
printed.


-- 
http://blog.mardy.it <- geek in un lingua international!
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Trying to get Terratec Cinergy T XS to work

2015-10-20 Thread Alberto Mardegan
Hi all!
  I own a USB DVB-T receiver, Terratec Cinergy T XS, (0ccd:0043) which
as far as I can tell from google searches used to work with the old
"em28xx-new" driver.

I've downloaded the old driver from
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/460636/comments/2

and tried to modify the current media_tree drivers accordingly (please
see the attached patch), but I get an error when initializing the frontend:

=
Oct 20 19:33:20 mapperone kernel: [25479.846347] usb 2-1.1: new
high-speed USB device number 6 using ehci-pci
Oct 20 19:33:20 mapperone kernel: [25479.951208] usb 2-1.1: New USB
device found, idVendor=0ccd, idProduct=0043
Oct 20 19:33:20 mapperone kernel: [25479.951215] usb 2-1.1: New USB
device strings: Mfr=2, Product=1, SerialNumber=0
Oct 20 19:33:20 mapperone kernel: [25479.951220] usb 2-1.1: Product:
Cinergy T USB XS
Oct 20 19:33:20 mapperone kernel: [25479.951223] usb 2-1.1:
Manufacturer: TerraTec Electronic GmbH
Oct 20 19:33:20 mapperone mtp-probe: checking bus 2, device 6:
"/sys/devices/pci:00/:00:1d.0/usb2/2-1/2-1.1"
Oct 20 19:33:20 mapperone mtp-probe: bus: 2, device: 6 was not an MTP device
Oct 20 19:33:20 mapperone kernel: [25479.982735] em28xx: New device
TerraTec Electronic GmbH Cinergy T USB XS @ 480 Mbps (0ccd:0043,
interface 0, class 0)
Oct 20 19:33:20 mapperone kernel: [25479.982739] em28xx: Video interface
0 found: isoc
Oct 20 19:33:20 mapperone kernel: [25479.982740] em28xx: DVB interface 0
found: isoc
Oct 20 19:33:20 mapperone kernel: [25479.982859] em28xx: chip ID is em2870
Oct 20 19:33:20 mapperone kernel: [25480.110080] em2870 #0: EEPROM ID =
1a eb 67 95, EEPROM hash = 0x084c44df
Oct 20 19:33:20 mapperone kernel: [25480.110085] em2870 #0: EEPROM info:
Oct 20 19:33:20 mapperone kernel: [25480.110087] em2870 #0: No audio on
board.
Oct 20 19:33:20 mapperone kernel: [25480.110089] em2870 #0: 500mA max power
Oct 20 19:33:20 mapperone kernel: [25480.110092] em2870 #0: Table at
offset 0x06, strings=0x246a, 0x348e, 0x
Oct 20 19:33:20 mapperone kernel: [25480.110096] em2870 #0: Identified
as Terratec Cinergy T XS (card=43)
Oct 20 19:33:20 mapperone kernel: [25480.110099] em2870 #0: analog set
to isoc mode.
Oct 20 19:33:20 mapperone kernel: [25480.110101] em2870 #0: dvb set to
isoc mode.
Oct 20 19:33:20 mapperone kernel: [25480.110149] usbcore: registered new
interface driver em28xx
Oct 20 19:33:20 mapperone kernel: [25480.113975] em2870 #0: Registering
V4L2 extension
Oct 20 19:33:20 mapperone kernel: [25480.118352] Chip ID is not zero. It
is not a TEA5767
Oct 20 19:33:20 mapperone kernel: [25480.118361] tuner 7-0060: Tuner -1
found with type(s) Radio TV.
Oct 20 19:33:20 mapperone kernel: [25480.118390] xc2028 7-0060: creating
new instance
Oct 20 19:33:20 mapperone kernel: [25480.118397] xc2028 7-0060: type set
to XCeive xc2028/xc3028 tuner
Oct 20 19:33:20 mapperone kernel: [25480.118453] xc2028 7-0060: Loading
80 firmware images from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
Oct 20 19:33:21 mapperone kernel: [25480.166568] xc2028 7-0060: Loading
firmware for type=BASE (1), id .
Oct 20 19:33:22 mapperone kernel: [25481.248675] xc2028 7-0060: Loading
firmware for type=(0), id b700.
Oct 20 19:33:22 mapperone kernel: [25481.266071] SCODE (2000), id
b700:
Oct 20 19:33:22 mapperone kernel: [25481.266078] xc2028 7-0060: Loading
SCODE for type=MONO SCODE HAS_IF_4320 (60008000), id 8000.
Oct 20 19:33:22 mapperone kernel: [25481.270699] xc2028 7-0060:
Incorrect readback of firmware version.
Oct 20 19:33:22 mapperone kernel: [25481.371524] xc2028 7-0060: Loading
firmware for type=BASE (1), id .
Oct 20 19:33:23 mapperone kernel: [25482.449292] xc2028 7-0060: Loading
firmware for type=(0), id b700.
Oct 20 19:33:23 mapperone kernel: [25482.466803] SCODE (2000), id
b700:
Oct 20 19:33:23 mapperone kernel: [25482.466811] xc2028 7-0060: Loading
SCODE for type=MONO SCODE HAS_IF_4320 (60008000), id 8000.
Oct 20 19:33:23 mapperone kernel: [25482.471431] xc2028 7-0060:
Incorrect readback of firmware version.
Oct 20 19:33:23 mapperone kernel: [25482.572622] xc2028 7-0060: Loading
firmware for type=BASE (1), id .
Oct 20 19:33:24 mapperone kernel: [25483.650635] xc2028 7-0060: Loading
firmware for type=(0), id b700.
Oct 20 19:33:24 mapperone kernel: [25483.66] SCODE (2000), id
b700:
Oct 20 19:33:24 mapperone kernel: [25483.667784] xc2028 7-0060: Loading
SCODE for type=MONO SCODE HAS_IF_4320 (60008000), id 8000.
Oct 20 19:33:24 mapperone kernel: [25483.672770] xc2028 7-0060:
Incorrect readback of firmware version.
Oct 20 19:33:24 mapperone kernel: [25483.773478] xc2028 7-0060: Loading
firmware for type=BASE (1), id .
Oct 20 19:33:25 mapperone kernel: [25484.851617] xc2028 7-0060: Loading
firmware for type=(0), id b700.
Oct 20 19:33:25 mapperone kernel: 

Terratec Cinergy T XS

2012-04-09 Thread Alberto Mardegan

Hi all,
  I have the DVB-T USB stick written in the subject (ID 0ccd:0043), and 
I'd like to make it work with Linux.
The current version of the em28xx driver (both in the Linux kernel and 
in the media_tree git) gives an error after loading the firmware, as 
reported here:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/460636

I modified the source so that the driver sets the read_not_reliable bit 
in the xc2028_ctrl structure, and that seems to help in getting past the 
firmware error. However, the /dev/dvb device is not created.
Since I'm new to DVB and V4L, can someone give me some hints on what 
could be going wrong?


I'm attaching the dmesg output after inserting the device.

Ciao,
  Alberto
[ 3514.238137] usb 1-1.3: new high speed USB device using ehci_hcd and address 5
[ 3514.379164] em28xx: New device TerraTec Electronic GmbH Cinergy T USB XS @ 
480 Mbps (0ccd:0043, interface 0, class 0)
[ 3514.379167] em28xx: Video interface 0 found
[ 3514.379168] em28xx: DVB interface 0 found
[ 3514.379268] em28xx #0: chip ID is em2870
[ 3514.525653] em28xx #0: i2c eeprom 00: 1a eb 67 95 cd 0c 43 00 c0 12 81 00 6a 
24 8e 34
[ 3514.525668] em28xx #0: i2c eeprom 10: 00 00 06 57 02 0c 00 00 00 00 00 00 00 
00 00 00
[ 3514.525681] em28xx #0: i2c eeprom 20: 44 00 00 00 f0 10 01 00 00 00 00 00 5b 
00 00 00
[ 3514.525693] em28xx #0: i2c eeprom 30: 00 00 20 40 20 80 02 20 01 01 00 00 06 
c1 66 49
[ 3514.525706] em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00
[ 3514.525718] em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00
[ 3514.525730] em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 24 03 43 
00 69 00
[ 3514.525743] em28xx #0: i2c eeprom 70: 6e 00 65 00 72 00 67 00 79 00 20 00 54 
00 20 00
[ 3514.525755] em28xx #0: i2c eeprom 80: 55 00 53 00 42 00 20 00 58 00 53 00 00 
00 34 03
[ 3514.525767] em28xx #0: i2c eeprom 90: 54 00 65 00 72 00 72 00 61 00 54 00 65 
00 63 00
[ 3514.525780] em28xx #0: i2c eeprom a0: 20 00 45 00 6c 00 65 00 63 00 74 00 72 
00 6f 00
[ 3514.525792] em28xx #0: i2c eeprom b0: 6e 00 69 00 63 00 20 00 47 00 6d 00 62 
00 48 00
[ 3514.525804] em28xx #0: i2c eeprom c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00
[ 3514.525816] em28xx #0: i2c eeprom d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00
[ 3514.525828] em28xx #0: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00
[ 3514.525841] em28xx #0: i2c eeprom f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00
[ 3514.525855] em28xx #0: EEPROM ID= 0x9567eb1a, EEPROM hash = 0x084c44df
[ 3514.525857] em28xx #0: EEPROM info:
[ 3514.525860] em28xx #0:   No audio on board.
[ 3514.525862] em28xx #0:   500mA max power
[ 3514.525865] em28xx #0:   Table at 0x06, strings=0x246a, 0x348e, 0x
[ 3514.527026] em28xx #0: Identified as Terratec Cinergy T XS (card=43)
[ 3514.527030] em28xx #0: 
[ 3514.527031] 
[ 3514.527034] em28xx #0: The support for this board weren't valid yet.
[ 3514.527037] em28xx #0: Please send a report of having this working
[ 3514.527039] em28xx #0: not to V4L mailing list (and/or to other addresses)
[ 3514.527041] 
[ 3514.532371] Chip ID is not zero. It is not a TEA5767
[ 3514.532536] tuner 17-0060: Tuner -1 found with type(s) Radio TV.
[ 3514.532683] xc2028 17-0060: creating new instance
[ 3514.532687] xc2028 17-0060: type set to XCeive xc2028/xc3028 tuner
[ 3514.535211] xc2028 17-0060: Loading 80 firmware images from xc3028-v27.fw, 
type: xc2028 firmware, ver 2.7
[ 3514.587148] xc2028 17-0060: Loading firmware for type=BASE (1), id 
.
[ 3515.676546] xc2028 17-0060: Loading firmware for type=(0), id 
b700.
[ 3515.693610] SCODE (2000), id b700:
[ 3515.693617] xc2028 17-0060: Loading SCODE for type=MONO SCODE HAS_IF_4320 
(60008000), id 8000.
[ 3515.824193] em28xx #0: v4l2 driver version 0.1.3
[ 3515.884068] xc2028 17-0060: Loading firmware for type=BASE F8MHZ (3), id 
.
[ 3516.983649] (0), id 00ff:
[ 3516.983655] xc2028 17-0060: Loading firmware for type=(0), id 
00010007.
[ 3517.000627] xc2028 17-0060: Loading SCODE for type=MONO SCODE HAS_IF_5320 
(60008000), id 000f0007.
[ 3517.136140] em28xx #0: V4L2 video device registered as video1
[ 3517.137403] usbcore: registered new interface driver em28xx