Re: LifeView TV Walker - Model LR506

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

 



On Tue, 03 Jul 2007 11:10:33 +0200
"Daniel Weigl" <danielweigl@xxxxxx> wrote:

> Hello,
> 
> Am Tue, 03 Jul 2007 02:56:26 +0200 hat Aapo Tahkola
> <aet@xxxxxxxxxxxxxx> geschrieben:
> > You need to have warm id listed in there as well. See line 137 of my
> > patch. You should see something interesting in dmesg after that.
> 
> 
> Yes, I know, I also have set the correct warm-Id, and the driver  
> recognizes the warm-device.
> 
> It says:
> [...]
> [ 1130.095937] dvb-usb: generic DVB-USB module successfully
> deinitialized and disconnected.
> [ 1130.095944] PM: Removing info for usb:6-3:1.0
> [ 1130.096015] PM: Removing info for No Bus:usbdev6.10
> [ 1130.096075] PM: Removing info for No Bus:usbdev6.10_ep00
> [ 1130.096175] PM: Removing info for usb:6-3
> [ 1131.862288] usb 6-3: new high speed USB device using ehci_hcd and  
> address 11
> [ 1131.977112] PM: Adding info for usb:6-3
> [ 1131.977222] PM: Adding info for No Bus:usbdev6.11_ep00
> [ 1131.977253] usb 6-3: configuration #1 chosen from 1 choice
> [ 1131.977352] PM: Adding info for usb:6-3:1.0
> [ 1131.977407] Probing for m920x device at interface 0
> [ 1131.977412] dvb-usb: cold=-2 (dfd29cc8)
> [ 1131.977417] dvb-usb: dev_desc: cold=-1 (dfd29cc8)
> [ 1131.977421] check for cold db0 5580
> [ 1131.977425] dvb-usb: dev_desc3: cold=-1 (dfd29cc8)
> [ 1131.977431] dvb-usb: dev_desc4: cold=-1 (dfd29cc8)
> [ 1131.977436] dvb-usb: dev_desc_ret: cold=-1 (dfd29cc8)
> [ 1131.977441] something went very wrong, device was not found in
> current device list - let's see what comes next.
> [ 1131.977449] dvb-usb: cold=-2 (dfd29cc8)
> [ 1131.977453] dvb-usb: dev_desc: cold=-1 (dfd29cc8)
> [ 1131.977459] check for cold 10fd 1513
> [ 1131.977463] dvb-usb: dev_desc3: cold=-1 (dfd29cc8)
> [ 1131.977468] dvb-usb: dev_desc4: cold=-1 (dfd29cc8)
> [ 1131.977473] dvb-usb: dev_desc_ret: cold=-1 (dfd29cc8)
> [ 1131.977478] something went very wrong, device was not found in
> current device list - let's see what comes next.
> [ 1131.977485] dvb-usb: cold=-2 (dfd29cc8)
> [ 1131.977490] dvb-usb: dev_desc: cold=-1 (dfd29cc8)
> [ 1131.977495] check for cold 10fd 514
> [ 1131.977498] dvb-usb: dev_desc3: cold=-1 (dfd29cc8)
> [ 1131.977503] check for warm 10fd 513
> [ 1131.977508] dvb-usb: dev_desc4: cold=-1 (dfd29cc8)
> [ 1131.977512] dvb-usb: dev_desc_ret: cold=-1 (dfd29cc8)
> [ 1131.977517] something went very wrong, device was not found in
> current device list - let's see what comes next.
> [ 1131.977525] dvb-usb: cold=-2 (dfd29cc8)
> [ 1131.977529] dvb-usb: dev_desc: cold=-1 (dfd29cc8)
> [ 1131.977534] check for cold 1498 9206
> [ 1131.977539] dvb-usb: dev_desc3: cold=-1 (dfd29cc8)
> [ 1131.977544] check for warm 1498 a090
> [ 1131.977548] dvb-usb: dev_desc4: cold=-1 (dfd29cc8)
> [ 1131.977553] dvb-usb: dev_desc_ret: cold=-1 (dfd29cc8)
> [ 1131.977557] something went very wrong, device was not found in
> current device list - let's see what comes next.
> [ 1131.977565] Search lr506
> [ 1131.977569] dvb-usb: cold=-2 (dfd29cc8)
> [ 1131.977573] dvb-usb: dev_desc: cold=-1 (dfd29cc8)
> [ 1131.977578] check for cold 10fd 506
> [ 1131.977582] dvb-usb: dev_desc3: cold=-1 (dfd29cc8)
> [ 1131.977587] check for warm 10fd 500
> [ 1131.977591] found warm device 10fd 500
> [ 1131.977595] dvb-usb: dev_desc4: cold=0 (dfd29cc8)
> [ 1131.977600] dvb-usb: dev_desc_ret: cold=0 (dfd29cc8)
> [ 1131.977605] dvb-usb: cold=0 (dfd29cc8)
> [ 1131.977610] dvb-usb: found a 'LifeView TV Walker LR506 DVB-T
> USB2.0' in warm state.
> [ 1131.977620] power control: 1
> [ 1131.977638] PM: Adding info for No Bus:i2c-4
> [ 1131.977658] dvb-usb: will pass the complete MPEG2 transport stream
> to the software demuxer.
> [ 1131.977855] DVB: registering new adapter (LifeView TV Walker
> LR506 DVB-T USB2.0)
> [ 1131.978113] m920x_tda10046_08_frontend_attach
> [ 1132.051658] dvb-usb: no frontend was attached by 'LifeView TV
> Walker LR506 DVB-T USB2.0'
> [ 1132.051668] power control: 0
> [ 1132.051672] dvb-usb: LifeView TV Walker LR506 DVB-T USB2.0
> successfully initialized and connected.
> [ 1132.051677] Found lr506...
> [ 1132.051680] No alt found!
> [ 1132.051729] PM: Adding info for No Bus:usbdev6.11_ep02
> [ 1132.051778] PM: Adding info for No Bus:usbdev6.11_ep84
> [ 1132.051821] PM: Adding info for No Bus:usbdev6.11_ep86
> [ 1132.051863] PM: Adding info for No Bus:usbdev6.11_ep88
> [ 1132.051914] PM: Adding info for No Bus:usbdev6.11
> [ 1135.285618] usb 6-4.3: reset high speed USB device using ehci_hcd
> and address 9
> [ 1135.362362] PM: Removing info for No Bus:usbdev6.9_ep01
> [ 1135.362429] PM: Removing info for No Bus:usbdev6.9_ep82
> [ 1135.362999] PM: Adding info for No Bus:usbdev6.9_ep01
> [ 1135.363050] PM: Adding info for No Bus:usbdev6.9_ep82
> 
> 
> It looks like the frontend-attach procedure is not compatible with
> this from the m920x
> [ 1131.978113] m920x_tda10046_08_frontend_attach
> [ 1132.051658] dvb-usb: no frontend was attached by 'LifeView TV
> Walker LR506 DVB-T USB2.0'

My bad, try this:
+static int m920x_twalk_i2c_xfer(struct i2c_adapter *adap, struct
i2c_msg msg[], int num) +{
+	struct dvb_usb_device *d = i2c_get_adapdata(adap);
+	int i, j;
+	int ret = 0;
+
+	if (!num)
+		return -EINVAL;
+
+	if (mutex_lock_interruptible(&d->i2c_mutex) < 0)
+		return -EAGAIN;
+
+	for (i = 0; i < num; i++) {
+		if (msg[i].flags & (I2C_M_NO_RD_ACK | I2C_M_IGNORE_NAK
| I2C_M_TEN | I2C_M_NOSTART) || msg[i].len == 0) {
+			ret = -ENOTSUPP;
+			goto unlock;
+		}
+		if (i+1 < num && msg[i+1].flags & I2C_M_RD) {
+			if ((ret = m920x_read(d->udev,
M9206_TWALK_I2C_R,
+					msg[i].addr, msg[i].buf[0],
msg[i+1].buf, msg[i+1].len)) != 0)
+				goto unlock;
+			i++;
+		} else {
+			if ((ret = m920x_write_bulk(d->udev,
M9206_TWALK_I2C_W,
+					msg[i].addr, 0, msg[i].buf,
msg[i].len)) != 0)
+				goto unlock;
+		}
+	}
+	ret = num;
+
+ unlock:
+	mutex_unlock(&d->i2c_mutex);
+
+	return ret;
+}

> 
> I have uploaded a usb-snoop of the initialization of the warm device
> under windows:
>    -->
> http://danyserv.selfip.org/dir/LifeView/usbsnoop_hotonly_notv.log
> 
> I also have collected some thoughts about this stick in the wiki:
>    --> http://linuxtv.org/v4lwiki/index.php/LifeView_LR506
> 
> 
> Daniel
> 


-- 
Aapo Tahkola

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux