Re: Terratec H7 Rev. 4 is DVBSky

2015-09-20 Thread Erik Andresen
Hi Roger,

> I'm not able to enable any protocols. Nothing happens when running 
> ir-keytable with "-p rc-5". Nothing shows in the row "Enabled protocols" and 
> nothing happens when testing with "ir-keytable -t". 
try to give it the device, e.g.

ir-keytable -d /dev/input/event14 -t

I was able to get output from it. The device is now running for a week under 
mythbackend.

greetings,
Erik


Am 19.09.2015 um 23:48 schrieb Roger MÃ¥rtensson:
> Den 2015-09-19 kl. 23:39, skrev Roger MÃ¥rtensson:
>> Den 2015-09-11 kl. 17:04, skrev Erik Andresen:
>>> Hi,
>>>
>>> I recently got a Terratec H7 in Revision 4 and turned out that it is not
>>> just a new revision, but a new product with USB ProductID 0x10a5.
>>> Previous revisions have been AZ6007, but this revision does not work
>>> with this driver [1].
>>>
>>> Output of lsusb (extended output attached):
>>> Bus 001 Device 011: ID 0ccd:10a5 TerraTec Electronic GmbH
>>>
>>> The revision 4 seems to a DVBSky variant, adding its Product ID to
>>> dvbsky.c with the attached patch enabled me to scan for channels and
>>> watch DVB-C and DVB-T.
>>>
>>> greetings,
>>> Erik
>>>
>>> [1] https://www.mail-archive.com/linux-media@vger.kernel.org/msg70934.html
>> Do I feel lucky or what..
>> Just got my H7 devices delivered and noticed the lack of supported driver 
>> and some quick searches gave me this e-mail.
>> Maybe should take a trip to the race track. :)
>>
>> I have tried this driver and it works wonderfully. I have noticed a freeze 
>> or two when handling the device (powering off, ripping USB etc) but I'm not 
>> sure it is the driver that is causing this.
>>
>> I do notice something weird. The remote doesn't seem to work.
>> Found /sys/class/rc/rc0/ (/dev/input/event14) with:
>> Driver dvb_usb_dvbsky, table rc-tt-1500
>> Supported protocols: RC-5
>> Enabled protocols:
>> Name: Terratec H7 Rev.4
>> bus: 3, vendor/product: 0ccd:10a5, version: 0x
>> Repeat delay = 500 ms, repeat period = 125 ms
>>
>> I'm not able to enable any protocols. Nothing happens when running 
>> ir-keytable with "-p rc-5". Nothing shows in the row "Enabled protocols" and 
>> nothing happens when testing with "ir-keytable -t".
>>
>> I've tested on a Ubuntu 14.04 (Mythbuntu) with Linux Kernel 4.2 that I have 
>> to compile myself. (Don't know in which kernel dvbsky was released)
>> Tested using both Kaffeine and MythTV and it works like a charm (with the 
>> exception of missing IR).
>> I tested using DVB-C with CI for encrypted channels
> One more this..
> Is there a possibility that Signal strength support could be added to the 
> driver?
> MythTV uses this and I think Kaffeine also uses it (not sure). Currently the 
> logs are filling up with "Operation not supported".




signature.asc
Description: OpenPGP digital signature


[PATCH] Add Terratec H7 Revision 4 to DVBSky driver

2015-09-19 Thread Erik Andresen
Adds Terratec H7 Rev. 4 with USB id 0ccd:10a5 to DVBSky driver.

Signed-off-by: Erik Andresen <e...@vontaene.de>
---
 drivers/media/dvb-core/dvb-usb-ids.h  | 1 +
 drivers/media/usb/dvb-usb-v2/dvbsky.c | 4 
 2 files changed, 5 insertions(+)

diff --git a/drivers/media/dvb-core/dvb-usb-ids.h 
b/drivers/media/dvb-core/dvb-usb-ids.h
index c117fb3..0a46580 100644
--- a/drivers/media/dvb-core/dvb-usb-ids.h
+++ b/drivers/media/dvb-core/dvb-usb-ids.h
@@ -257,6 +257,7 @@
 #define USB_PID_TERRATEC_CINERGY_T_XXS_2   0x00ab
 #define USB_PID_TERRATEC_H70x10b4
 #define USB_PID_TERRATEC_H7_2  0x10a3
+#define USB_PID_TERRATEC_H7_3  0x10a5
 #define USB_PID_TERRATEC_T30x10a0
 #define USB_PID_TERRATEC_T50x10a1
 #define USB_PID_NOXON_DAB_STICK0x00b3
diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c 
b/drivers/media/usb/dvb-usb-v2/dvbsky.c
index cdf59bc..8f526a4 100644
--- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
+++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
@@ -841,6 +841,10 @@ static const struct usb_device_id dvbsky_id_table[] = {
USB_PID_TECHNOTREND_CONNECT_CT2_4650_CI,
_t680c_props, "TechnoTrend TT-connect CT2-4650 CI",
RC_MAP_TT_1500) },
+{ DVB_USB_DEVICE(USB_VID_TERRATEC,
+USB_PID_TERRATEC_H7_3,
+_t680c_props, "Terratec H7 Rev.4",
+RC_MAP_TT_1500) },
{ }
 };
 MODULE_DEVICE_TABLE(usb, dvbsky_id_table);
-- 
2.5.0





signature.asc
Description: OpenPGP digital signature


Terratec H7 Rev. 4 is DVBSky

2015-09-11 Thread Erik Andresen
Hi,

I recently got a Terratec H7 in Revision 4 and turned out that it is not
just a new revision, but a new product with USB ProductID 0x10a5.
Previous revisions have been AZ6007, but this revision does not work
with this driver [1].

Output of lsusb (extended output attached):
Bus 001 Device 011: ID 0ccd:10a5 TerraTec Electronic GmbH

The revision 4 seems to a DVBSky variant, adding its Product ID to
dvbsky.c with the attached patch enabled me to scan for channels and
watch DVB-C and DVB-T.

greetings,
Erik

[1] https://www.mail-archive.com/linux-media@vger.kernel.org/msg70934.html
From b453f37d9a6e9910cb7d76fa58ba724449ac9a22 Mon Sep 17 00:00:00 2001
From: Erik Andresen <e...@vontaene.de>
Date: Fri, 11 Sep 2015 16:51:10 +0200
Subject: [PATCH] Add Terratec H7 Revision 4 to DVBSky driver

---
 drivers/media/dvb-core/dvb-usb-ids.h  | 1 +
 drivers/media/usb/dvb-usb-v2/dvbsky.c | 4 
 2 files changed, 5 insertions(+)

diff --git a/drivers/media/dvb-core/dvb-usb-ids.h b/drivers/media/dvb-core/dvb-usb-ids.h
index c117fb3..0a46580 100644
--- a/drivers/media/dvb-core/dvb-usb-ids.h
+++ b/drivers/media/dvb-core/dvb-usb-ids.h
@@ -257,6 +257,7 @@
 #define USB_PID_TERRATEC_CINERGY_T_XXS_2		0x00ab
 #define USB_PID_TERRATEC_H70x10b4
 #define USB_PID_TERRATEC_H7_20x10a3
+#define USB_PID_TERRATEC_H7_30x10a5
 #define USB_PID_TERRATEC_T30x10a0
 #define USB_PID_TERRATEC_T50x10a1
 #define USB_PID_NOXON_DAB_STICK0x00b3
diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c
index cdf59bc..8f526a4 100644
--- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
+++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
@@ -841,6 +841,10 @@ static const struct usb_device_id dvbsky_id_table[] = {
 		USB_PID_TECHNOTREND_CONNECT_CT2_4650_CI,
 		_t680c_props, "TechnoTrend TT-connect CT2-4650 CI",
 		RC_MAP_TT_1500) },
+{ DVB_USB_DEVICE(USB_VID_TERRATEC,
+USB_PID_TERRATEC_H7_3,
+_t680c_props, "Terratec H7 Rev.4",
+RC_MAP_TT_1500) },
 	{ }
 };
 MODULE_DEVICE_TABLE(usb, dvbsky_id_table);
-- 
2.5.0

Bus 002 Device 009: ID 0ccd:10a5 TerraTec Electronic GmbH 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  idVendor   0x0ccd TerraTec Electronic GmbH
  idProduct  0x10a5 
  bcdDevice0.00
  iManufacturer   1 
  iProduct2 
  iSerial 3 
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength  219
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  4 
bmAttributes 0x80
  (Bus Powered)
MaxPower  500mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   3
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass  1 
  bInterfaceProtocol  1 
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82  EP 2 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   1
  bNumEndpoints   3
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass  1 
  bInterfaceProtocol  1 
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type