DVB-T-Receiver "TwinhanDTV Magic box" does not work

Bug #591931 reported by misko
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
Maverick
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: linux-image-generic

I'm using Ubuntu 10.04 with the latest updates:

root@orbit:/usr/src/linux-source-2.6.32# uname -a
Linux orbit 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686 GNU/Linux
root@orbit:/usr/src/linux-source-2.6.32# lsb_release -rd
Description: Ubuntu 10.04 LTS
Release: 10.04

When I connect my DVB-T - Receiver, it is recognized and all modules and firmware are loaded:
(dmesg-output):

[ 9255.448099] usb 3-1: new full speed USB device using uhci_hcd and address 2
[ 9255.598387] usb 3-1: configuration #1 chosen from 1 choice
[ 9256.782296] dvb-usb: found a 'TwinhanDTV USB-Ter USB1.1 / Magic Box I / HAMA USB1.1 DVB-T device' in cold state, will try to load a firmware
[ 9256.782312] usb 3-1: firmware: requesting dvb-usb-dibusb-5.0.0.11.fw
[ 9257.004996] dvb-usb: downloading firmware from file 'dvb-usb-dibusb-5.0.0.11.fw'
[ 9257.503247] usbcore: registered new interface driver dvb_usb_dibusb_mb
[ 9257.512116] usb 3-1: USB disconnect, address 2
[ 9257.512215] dvb-usb: generic DVB-USB module successfully deinitialized and disconnected.
[ 9259.496089] usb 3-1: new full speed USB device using uhci_hcd and address 3
[ 9259.683543] usb 3-1: configuration #1 chosen from 1 choice
[ 9259.686246] dvb-usb: found a 'TwinhanDTV USB-Ter USB1.1 / Magic Box I / HAMA USB1.1 DVB-T device' in warm state.
[ 9259.705295] dvb-usb: will use the device's hardware PID filter (table count: 16).
[ 9259.707133] DVB: registering new adapter (TwinhanDTV USB-Ter USB1.1 / Magic Box I / HAMA USB1.1 DVB-T device)
[ 9259.815113] DVB: registering adapter 0 frontend 0 (DiBcom 3000M-B DVB-T)...
[ 9259.819107] dibusb: This device has the Thomson Cable onboard. Which is default.
[ 9259.926309] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/input/input9
[ 9259.926445] dvb-usb: schedule remote query interval to 150 msecs.
[ 9259.941104] dvb-usb: TwinhanDTV USB-Ter USB1.1 / Magic Box I / HAMA USB1.1 DVB-T device successfully initialized and connected.

and lsusb also displays it correctly:
Bus 003 Device 009: ID 1822:3202 Twinhan VisionDTV USB-Ter/HAMA USB DVB-T device warm

But all media-players complain that tuning is not possible, e.g. kaffeine:
kaffeine(24548) DvbDevice::frontendEvent: tuning failed

With Ubuntu 9.04 the device worked, so I started further investigation and found following (german) ubuntu-forum:
http://forum.ubuntuusers.de/topic/dvb-t-karte-funktioniert-seit-update-auf-9-10/
which gave me the hint do download and compile the v4l-Driver from the repository (hg clone http://linuxtv.org/hg/v4l-dvb), which worked.

I researched deeper, and this page (http://osdir.com/ml/linux-media/2009-10/msg00184.html) gave me that hint that the file drivers/media/dvb/dvb-usb/dibusb-common.c has to be modified.

I just added following else-branch in the function "static int dibusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num)" :
145,151c145,146
< } else if (msg[i].addr != 0x50) {
< /* 0x50 is the address of the eeprom - we need to protect it
< * from dibusb's bad i2c implementation: reads without
< * writing the offset before are forbidden */
< if (dibusb_i2c_msg(d, msg[i].addr, NULL, 0, msg[i].buf, msg[i].len) < 0)
< break;
< }
---
> } else
> break;

of the original kernel's driver (this else-branch is taken from the latest driver in the v4l-repository).

I recompiled all modules with this simple modification of the original kernel, and the Twinhan DTV Magic Box now works.

description: updated
Revision history for this message
jokrebel (jokrebel) wrote :

Same Problem here since Upgrading my Ubuntu 9.04 to 9.10.
Upgrade to Ubuntu 10.04 didn't solve the Problem.

In the German thread

( http://forum.ubuntuusers.de/topic/dvb-t-karte-funktioniert-seit-update-auf-9-10/2/)

are about 6 other People with the same Problem.

Revision history for this message
misko (michael-wagner-gmx) wrote :

Problem persists after upgrade to 2.6.32-23-generic.

Mark Edgington (edgimar)
Changed in linux-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
misko (michael-wagner-gmx) wrote :

Problem is fixed in Ubuntu Maverick Meerkat (2.6.35-23-generic)

Tim Gardner (timg-tpi)
affects: linux-meta (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu Maverick):
status: New → Fix Released
Changed in linux (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.