* it913x driver with USB1.1
@ 2012-11-07 23:43 Antti Palosaari
2012-11-08 17:48 ` Malcolm Priestley
0 siblings, 1 reply; 5+ messages in thread
From: Antti Palosaari @ 2012-11-07 23:43 UTC (permalink / raw)
To: Malcolm Priestley, linux-media
Malcolm,
Have you newer tested it with USB1.1 port? Stream is totally broken.
regards
Antti
--
http://palosaari.fi/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: it913x driver with USB1.1
2012-11-07 23:43 it913x driver with USB1.1 Antti Palosaari
@ 2012-11-08 17:48 ` Malcolm Priestley
2012-11-08 20:18 ` Antti Palosaari
0 siblings, 1 reply; 5+ messages in thread
From: Malcolm Priestley @ 2012-11-08 17:48 UTC (permalink / raw)
Cc: linux-media
On 07/11/12 23:43, Antti Palosaari wrote:
> Malcolm,
> Have you newer tested it with USB1.1 port? Stream is totally broken.
>
Hi Antti
Hmm, yes it is a bit choppy on dvb-usb-v2.
I will have a look at it.
Regards
Malcolm
> regards
> Antti
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: it913x driver with USB1.1
2012-11-08 17:48 ` Malcolm Priestley
@ 2012-11-08 20:18 ` Antti Palosaari
2012-11-08 21:30 ` [PATCH] it913x: [BUG] fix correct endpoint size when pid filter on Malcolm Priestley
0 siblings, 1 reply; 5+ messages in thread
From: Antti Palosaari @ 2012-11-08 20:18 UTC (permalink / raw)
To: Malcolm Priestley; +Cc: linux-media
On 11/08/2012 07:48 PM, Malcolm Priestley wrote:
>
> On 07/11/12 23:43, Antti Palosaari wrote:
>> Malcolm,
>> Have you newer tested it with USB1.1 port? Stream is totally broken.
>>
> Hi Antti
>
> Hmm, yes it is a bit choppy on dvb-usb-v2.
>
> I will have a look at it.
Fedora's stock 3.6.5-1.fc17.x86_64 is even more worse - no picture at
all when using vlc. Clearly visible difference is pid filter count.
dvb-usb says 5 filters whilst dvb-usb-v2 says 32 pid filters.
dvb_usb_v2: will use the device's hardware PID filter (table count: 32)
dvb-usb: will use the device's hardware PID filter (table count: 5).
regards
Antti
--
http://palosaari.fi/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] it913x: [BUG] fix correct endpoint size when pid filter on.
2012-11-08 20:18 ` Antti Palosaari
@ 2012-11-08 21:30 ` Malcolm Priestley
2012-11-09 14:19 ` Antti Palosaari
0 siblings, 1 reply; 5+ messages in thread
From: Malcolm Priestley @ 2012-11-08 21:30 UTC (permalink / raw)
To: linux-media; +Cc: Antti Palosaari
On Thu, 2012-11-08 at 22:18 +0200, Antti Palosaari wrote:
> On 11/08/2012 07:48 PM, Malcolm Priestley wrote:
> >
> > On 07/11/12 23:43, Antti Palosaari wrote:
> >> Malcolm,
> >> Have you newer tested it with USB1.1 port? Stream is totally broken.
> >>
> > Hi Antti
> >
> > Hmm, yes it is a bit choppy on dvb-usb-v2.
> >
> > I will have a look at it.
>
> Fedora's stock 3.6.5-1.fc17.x86_64 is even more worse - no picture at
> all when using vlc. Clearly visible difference is pid filter count.
> dvb-usb says 5 filters whilst dvb-usb-v2 says 32 pid filters.
>
> dvb_usb_v2: will use the device's hardware PID filter (table count: 32)
> dvb-usb: will use the device's hardware PID filter (table count: 5).
>
>
I kept the count as the hardware default with dvb-usb-v2, with 5, users
can still run in to trouble with Video PIDs.
I have traced it to an incorrect endpoint size when the PID filter
is enabled. It also affected USB 2.0 with the filter on.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
drivers/media/usb/dvb-usb-v2/it913x.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/media/usb/dvb-usb-v2/it913x.c b/drivers/media/usb/dvb-usb-v2/it913x.c
index 695f910..29300e3 100644
--- a/drivers/media/usb/dvb-usb-v2/it913x.c
+++ b/drivers/media/usb/dvb-usb-v2/it913x.c
@@ -643,7 +643,8 @@ static int it913x_frontend_attach(struct dvb_usb_adapter *adap)
struct it913x_state *st = d->priv;
int ret = 0;
u8 adap_addr = I2C_BASE_ADDR + (adap->id << 5);
- u16 ep_size = adap->stream.buf_size / 4;
+ u16 ep_size = (adap->pid_filtering) ? TS_BUFFER_SIZE_PID / 4 :
+ TS_BUFFER_SIZE_MAX / 4;
u8 pkt_size = 0x80;
if (d->udev->speed != USB_SPEED_HIGH)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] it913x: [BUG] fix correct endpoint size when pid filter on.
2012-11-08 21:30 ` [PATCH] it913x: [BUG] fix correct endpoint size when pid filter on Malcolm Priestley
@ 2012-11-09 14:19 ` Antti Palosaari
0 siblings, 0 replies; 5+ messages in thread
From: Antti Palosaari @ 2012-11-09 14:19 UTC (permalink / raw)
To: Malcolm Priestley; +Cc: linux-media
On 11/08/2012 11:30 PM, Malcolm Priestley wrote:
> On Thu, 2012-11-08 at 22:18 +0200, Antti Palosaari wrote:
>> On 11/08/2012 07:48 PM, Malcolm Priestley wrote:
>>>
>>> On 07/11/12 23:43, Antti Palosaari wrote:
>>>> Malcolm,
>>>> Have you newer tested it with USB1.1 port? Stream is totally broken.
>>>>
>>> Hi Antti
>>>
>>> Hmm, yes it is a bit choppy on dvb-usb-v2.
>>>
>>> I will have a look at it.
>>
>> Fedora's stock 3.6.5-1.fc17.x86_64 is even more worse - no picture at
>> all when using vlc. Clearly visible difference is pid filter count.
>> dvb-usb says 5 filters whilst dvb-usb-v2 says 32 pid filters.
>>
>> dvb_usb_v2: will use the device's hardware PID filter (table count: 32)
>> dvb-usb: will use the device's hardware PID filter (table count: 5).
>>
>>
> I kept the count as the hardware default with dvb-usb-v2, with 5, users
> can still run in to trouble with Video PIDs.
>
> I have traced it to an incorrect endpoint size when the PID filter
> is enabled. It also affected USB 2.0 with the filter on.
Bug fixed. Lets add proper tags. Happy weekend!
Reported-by: Antti Palosaari <crope@iki.fi>
Tested-by: Antti Palosaari <crope@iki.fi>
>
>
> Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
> ---
> drivers/media/usb/dvb-usb-v2/it913x.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/media/usb/dvb-usb-v2/it913x.c b/drivers/media/usb/dvb-usb-v2/it913x.c
> index 695f910..29300e3 100644
> --- a/drivers/media/usb/dvb-usb-v2/it913x.c
> +++ b/drivers/media/usb/dvb-usb-v2/it913x.c
> @@ -643,7 +643,8 @@ static int it913x_frontend_attach(struct dvb_usb_adapter *adap)
> struct it913x_state *st = d->priv;
> int ret = 0;
> u8 adap_addr = I2C_BASE_ADDR + (adap->id << 5);
> - u16 ep_size = adap->stream.buf_size / 4;
> + u16 ep_size = (adap->pid_filtering) ? TS_BUFFER_SIZE_PID / 4 :
> + TS_BUFFER_SIZE_MAX / 4;
> u8 pkt_size = 0x80;
>
> if (d->udev->speed != USB_SPEED_HIGH)
>
--
http://palosaari.fi/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-09 14:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07 23:43 it913x driver with USB1.1 Antti Palosaari
2012-11-08 17:48 ` Malcolm Priestley
2012-11-08 20:18 ` Antti Palosaari
2012-11-08 21:30 ` [PATCH] it913x: [BUG] fix correct endpoint size when pid filter on Malcolm Priestley
2012-11-09 14:19 ` Antti Palosaari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).