[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2016-02-03 Thread Ben Stanley
psalter,

I have just reproduced the fix you described in post #17. I am now able
to use my Dvico Fusion Dual Digital 4 again!

I installed the packages
linux-image-generic-lts-vivid
linux-headers-generic-lts-vivid

The net result is
linux-image-generic-3.19.0-49-generic
linux-headers-generic-3.19.0-49-generic

and my tuners work at last!
Thanks for doing the hard work and figuring out what fixed it!
Ben.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2016-01-26 Thread psalter
Thanks to the details above I was able to get my Dvico Fusion Dual Digital 4 
working on Mythbuntu Trusty 14.04.3  . The problem was solved at kernel 3.19. 
Problem is related to cxusb.c where the #define MAX_XFER_SIZE 80 was changed 
from 64 to 80. Details of change are at LinuxTV.org:
https://git.linuxtv.org/media_tree.git/commit/?id=eb9da073bd002f2968c84129a5c49625911a3199


diff --git a/drivers/media/usb/dvb-usb/cxusb.c 
b/drivers/media/usb/dvb-usb/cxusb.c
index b7461ac..f379f7e 100644
--- a/drivers/media/usb/dvb-usb/cxusb.c
+++ b/drivers/media/usb/dvb-usb/cxusb.c
@@ -46,7 +46,7 @@
 #include "si2157.h"
 
 /* Max transfer size done by I2C transfer functions */
-#define MAX_XFER_SIZE  64
+#define MAX_XFER_SIZE  80
 
 /* debug */
 static int dvb_usb_cxusb_debug;

I looked through the ubuntu kernels for the updated cxusb.c and found it looked 
ok after 3.19.0   .
To fix my Mythbuntu Trusty I loaded linux-headers-3.19.0-47  and it all worked.

I wanted to update comments here so that anyone else doing searches for
the problem might find a quick answer as there are not very many search
results relating to Dvico card and later kernel.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-08-30 Thread Blowdesign
Ok, I've changed my default boot kernel to come back to the kernel
3.2.0.29 (Ubuntu 12.04.1 LTS april 2017) and it works fine, it's less
expensive than change the card ;-)

The problem is since the kernel 3.13 (Ubuntu 12.04.5)

Thanks for your help.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-08-28 Thread Blowdesign
Thanks for your reply.

I think I'll use the old kernel.

Regards

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-08-28 Thread Ben Stanley
Sounds like a good solution.


On 28 August 2014 6:21:25 PM Blowdesign 1291...@bugs.launchpad.net wrote:

 Thanks for your reply.

 I think I'll use the old kernel.

 Regards

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/1291459

 Title:
   ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
   card

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-08-27 Thread Blowdesign
Hi,

How do fix this issue ?

I've the same error :

 3242.308051] xc2028 0-0061: i2c output error: rc = -95 (should be 64)
[ 3242.308055] xc2028 0-0061: -95 returned from send
[ 3242.317961] xc2028 0-0061: Error -22 while loading base firmware
[ 3242.352112] xc2028 1-0061: Loading firmware for type=BASE F8MHZ (3), id 
.
[ 3242.364130] cxusb: i2c wr: len=64 is too big!

Where is the file drivers/media/tuners/tuner-xc2028 to change the
MAX_XFER_SIZE ?

Thanks in advance.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-08-27 Thread Ben Stanley
It turns out that a much deeper fix is necessary, and I have not created 
it. My current solution is to blacklist the driver. I plan to replace the card.

Alternatively, you could big the guys at Linux tv.org, the ones who write 
the drivers in the first place. Launched doesn't seem to be where they hang 
out.

The change I made was in the kernel source code. First you have to get the 
ubuntu kernel source. After making the change, you have to recompile the 
kernel module and copy it into the correct location. The process is very 
technical and requires developer skills. But, it doesn't work as well as I 
claimed.

Regards,
Ben Stanley


On 28 August 2014 5:21:08 AM Blowdesign 1291...@bugs.launchpad.net wrote:

 Hi,

 How do fix this issue ?

 I've the same error :

  3242.308051] xc2028 0-0061: i2c output error: rc = -95 (should be 64)
 [ 3242.308055] xc2028 0-0061: -95 returned from send
 [ 3242.317961] xc2028 0-0061: Error -22 while loading base firmware
 [ 3242.352112] xc2028 1-0061: Loading firmware for type=BASE F8MHZ (3), id 
 .
 [ 3242.364130] cxusb: i2c wr: len=64 is too big!

 Where is the file drivers/media/tuners/tuner-xc2028 to change the
 MAX_XFER_SIZE ?

 Thanks in advance.

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/1291459

 Title:
   ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
   card

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-04-30 Thread Ben Stanley
After further work and testing, I have found that changing
drivers/media/tuners/tuner-xc2028.c:28
#define MAX_XFER_SIZE  80
to
#define MAX_XFER_SIZE  61
is enough to fix the problem.

I have confirmed that with this change the firmware loads and I am able
to watch TV using me-tv.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-04-30 Thread Ben Stanley
The details of how the problem was traced are contained in the attached
Notes_xc2028.txt file.

** Attachment added: Notes on tracing the calls that produce the log messages.
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+attachment/4101603/+files/Notes_xc2028.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-04-29 Thread Ben Stanley
I have poked around in the source code and found some inconsistencies.

=
Summary:
There are multiple definitions of MAX_XFER_SIZE in the drivers/media 
sub-directory, containing values such as 64, 80, 128, 256.
The definition that appears to matter is in 
drivers/media/usb/dvb-usb/cxusb.c
#define MAX_XFER_SIZE  64
It seems that passing a larger msg.len to cxusb_i2c_xfer causes the errors 
noted in this report.
The buffer size is declared separately in various places, having many different 
sizes. It seems that there are many ways that this error could be caused.

I have changed MAX_XFER_SIZE in tuner-xc2028.c from 80 to 64. With this
change, the kernel logs no longer contain an error when the firmare is
loaded. Indeed, the firmware appears to load successfully.

However, I have not yet been able to test whether a DVB signal can be
received and decoded.

These tests were performed after upgrading to trusty 14.04, using kernel 
3.13.0-24-generic.
=

Notes

Initial testing performed using 3.14.0-031400rc6-generic on Ubuntu 14.04 (same 
kernel as used previously, but the rest of the OS was upgraded).
Apr 29 14:56:17 mythtv kernel: [ 2385.788462] cxusb: No IR receiver detected on 
this device.
Apr 29 14:56:17 mythtv kernel: [ 2385.788472] usb 3-2: DVB: registering adapter 
2 frontend 0 (Zarlink ZL10353 DVB-T)...
Apr 29 14:56:17 mythtv kernel: [ 2385.788565] xc2028 11-0061: creating new 
instance
Apr 29 14:56:17 mythtv kernel: [ 2385.788568] xc2028 11-0061: type set to 
XCeive xc2028/xc3028 tuner
Apr 29 14:56:17 mythtv kernel: [ 2385.790357] xc2028 11-0061: Loading 80 
firmware images from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
Apr 29 14:56:17 mythtv kernel: [ 2385.790714] dvb-usb: DViCO FusionHDTV DVB-T 
Dual Digital 4 successfully initialized and connected.
Apr 29 14:56:17 mythtv kernel: [ 2385.790760] usbcore: registered new interface 
driver dvb_usb_cxusb

Apr 29 14:58:32 mythtv kernel: [ 2520.932221] xc2028 10-0061: Loading firmware 
for type=BASE F8MHZ (3), id .
Apr 29 14:58:32 mythtv kernel: [ 2520.944221] cxusb: i2c wr: len=64 is too big!
Apr 29 14:58:32 mythtv kernel: [ 2520.944221] 
Apr 29 14:58:32 mythtv kernel: [ 2520.944226] xc2028 10-0061: i2c output error: 
rc = -95 (should be 64)
Apr 29 14:58:32 mythtv kernel: [ 2520.944228] xc2028 10-0061: -95 returned from 
send
Apr 29 14:58:32 mythtv kernel: [ 2520.944231] xc2028 10-0061: Error -22 while 
loading base firmware
repeats 8 times

I have located the origin of each of these messages:

Apr 29 14:58:32 mythtv kernel: [ 2520.932221] xc2028 10-0061: Loading firmware 
for type=BASE F8MHZ (3), id .
drivers/media/tuners/tuner-xc2028.c
static int load_firmware(struct dvb_frontend *fe, unsigned int type,
 v4l2_std_id *id)

tuner_info(Loading firmware for type=);
dump_firm_type(priv-firm[pos].type);
printk((%x), id %016llx.\n, priv-firm[pos].type,
   (unsigned long long)*id);

further down

/* Sends message chunks */
while (size  0) {
int len = (size  priv-ctrl.max_len - 1) ?
   size : priv-ctrl.max_len - 1;

memcpy(buf + 1, p, len);

rc = i2c_send(priv, buf, len + 1);
if (rc  0) {
tuner_err(%d returned from send\n, rc);
return -EINVAL;
}

p += len;
size -= len;
}

i2c_send is a macro, defined near the top of tuner-xc2028.c

#define i2c_send(priv, buf, size) ({\
int _rc;\
_rc = tuner_i2c_xfer_send(priv-i2c_props, buf, size); \
if (size != _rc)\
tuner_info(i2c output error: rc = %d (should be %d)\n,\
   _rc, (int)size); \
if (priv-ctrl.msleep)  \
msleep(priv-ctrl.msleep);  \
_rc;\
})

tuner_i2c_xfer_send
drivers/media/tuners/tuner-i2c.h

static inline int tuner_i2c_xfer_send(struct tuner_i2c_props *props, char *buf, 
int len)
{
struct i2c_msg msg = { .addr = props-addr, .flags = 0,
   .buf = buf, .len = len };
int ret = i2c_transfer(props-adap, msg, 1);

return (ret == 1) ? len : ret;
}

FIXME I don't understand how it gets from there to what comes next.
These messages must be produced by i2c_transfer!

Apr 29 14:58:32 mythtv kernel: [ 2520.944221] cxusb: i2c wr: len=64 is
too big!

drivers/media/usb/dvb-usb/cxusb.c
static int 

[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-04-29 Thread Ben Stanley
Unfortunately, that change had no effect. The errors found in the log
previously still occur, but they are delayed from the initially
successful output posted previously. More investigation is required.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-03-26 Thread Vince McIntyre
I see the same firmware loading issue. I assumed the problem was in
tuner_xc2028, as I don't see any related messages in dmesg after the
firmware blob fails to load:

Mar 26 22:03:20 localhost kernel: [   11.567369] xc2028 0-0061: Loading 
firmware for type=BASE F8MHZ (3), id 0
000.
Mar 26 22:03:20 localhost kernel: [   11.576247] cxusb: i2c wr: len=64 is too 
big!
Mar 26 22:03:20 localhost kernel: [   11.576247] 
Mar 26 22:03:20 localhost kernel: [   11.576253] xc2028 0-0061: i2c output 
error: rc = -95 (should be 64)
Mar 26 22:03:20 localhost kernel: [   11.576255] xc2028 0-0061: -95 returned 
from send
Mar 26 22:03:20 localhost kernel: [   11.576258] xc2028 0-0061: Error -22 while 
loading base firmware
Mar 26 22:03:20 localhost kernel: [   11.648380] xc2028 0-0061: Loading 
firmware for type=BASE F8MHZ (3), id .

This is from the linux-image-generic-lts-saucy   v3.11.0.18.17 running on a 
Precise LTS system (amd64).
cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION=Ubuntu 12.04.4 LTS

At the risk of starting a wild goose chase this _might_ be related to:
  
http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=e9812be28ce0f4e4bf5586f1a542551c8fc80ffa
which has been merged into the saucy kernel, as far as I can tell,
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-saucy.git;a=commit;h=d1ba3eb8a51b2ebb09bdfd7277fde2c8ff679f87

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-03-26 Thread Vince McIntyre
Not seeing the issue on linux-image-generic-lts-raring   v3.8.0.37.37 .

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-03-13 Thread Ben Stanley
** Tags removed: kernel-fixed-upstream
** Tags added: kernel-bug-exists-upstream

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1291459] Re: ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4 card

2014-03-13 Thread Ben Stanley
Furhter testing has revealed that the DViCO FusionHDTV tuners don't work
with mythtv or with me-tv (running upstream 3.14 kernel). The Budget-CI
card is working OK with me-tv.

It appears that the firmware loading problems are real.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291459

Title:
  ioctl FE_GET_INFO hangs with DViCO FusionHDTV DVB-T Dual Digital 4
  card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs