public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <m.chehab@samsung.com>
To: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: LMML <linux-media@vger.kernel.org>,
	Devin Heitmueller <devin.heitmueller@gmail.com>
Subject: Re: [ANNOUNCE EXPERIMENTAL] PCTV 80e driver
Date: Sun, 19 Jan 2014 15:32:24 -0200	[thread overview]
Message-ID: <20140119153224.122ce0d4@samsung.com> (raw)
In-Reply-To: <CAGoCfiwp0WPMceeyQUHU-GJkSkiQzpF-YoJ+ueiFNqNOEQNK4A@mail.gmail.com>

Em Sun, 19 Jan 2014 11:50:55 -0500
Devin Heitmueller <dheitmueller@kernellabs.com> escreveu:

> On Sun, Jan 19, 2014 at 8:39 AM, Mauro Carvalho Chehab
> <m.chehab@samsung.com> wrote:
> > It seems that subsequent tuning makes the device worse, reducing the
> > maximum effective packet bandwidth. Btw, this happens with both xHCI
> > and EHCI drivers, so, it is not related to any USB 3.0 issue.
> 
> I'm pretty sure I saw this and had a patch.  I don't recall the exact
> circumstances under which it happened, but I believe it had to do with
> stopping and then restarting the streaming on the em28xx too quickly.
> The state machine inside the em28xx gets confused and you end up
> getting a misaligned stream (which is why you see hundreds of
> different PIDs in output from tools such as dvbtraffic).

Do you still has your old tree? I'm not seeing it anymore at kernellabs.

> 
> > Enabling some demux logs, it is possible to see that there are too many
> > FEC errors:
> >
> > [73514.186880] dvb_dmx_swfilter_packet: 4546 callbacks suppressed
> > [73514.186933] TEI detected. PID=0x17f data1=0xc1
> > [73514.186965] TEI detected. PID=0x1c68 data1=0xbc
> > [73514.186993] TEI detected. PID=0x17f data1=0xc1
> > [73514.187022] TEI detected. PID=0x1c68 data1=0xbc
> > [73514.187049] TEI detected. PID=0x17f data1=0xc1
> > [73514.187080] TEI detected. PID=0x1c68 data1=0xbc
> > [73514.187105] TEI detected. PID=0x17f data1=0xc1
> > [73514.194878] TEI detected. PID=0x1c68 data1=0xbc
> > [73514.194906] TEI detected. PID=0x17f data1=0xc1
> > [73514.194927] TEI detected. PID=0x1c68 data1=0xbc
> > [73521.569205] TS speed 402 Kbits/sec
> 
> Are these actually valid PIDs you're expecting data on?  If not, then
> it could just be the issue I described above.  Does the TEI check
> occur after it has found the SYNC byte?

Yes. it keeps repeating several times, even after finding the SYNC.

This patch makes the behavior stable:
	http://git.linuxtv.org/mchehab/experimental.git/commitdiff/88c9318cbea60d189a9b10cbc4c5a73f8b002336

Even so, the bitstream of my test signal is 19Mbps, while the measured
speed with the valid packets is being about 3Mbps.

I'm now playing with the em28xx code that allocates URBs, as it might
be related (yet, it works properly with HVR-950).

> > I'm starting to suspect that this could be a hardware issue.
> >
> > It would be good to see if others can use it and tune to several
> > channels.
> >
> >> Ah, I didn't work at the remote controller yet. I'll handle it after
> >> doing more tests with the DVB functionality.
> >
> > Remote controller support was added.
> 
> Should be trivial - I added the support for the em2874's RC using that
> device - the RC support went upstream years ago but not the actual
> board profile.

Yes, the patch was a single line one:
	http://git.linuxtv.org/mchehab/experimental.git/commitdiff/69473d44d1daf434f1e567f40a8247bb8056cfc3
> 
> Probably worth mentioning that while I got signal lock on ATSC, I
> didn't any significant analysis into the quality of the SNR. It's
> possible that additional optimization of the frontend is required in
> order to achieve optimal performance. 

It is unlikely to be due to some optimization, as I'm not injecting
any errors via the RF generator.

> Also, I didn't do the ClearQAM
> support yet, although that should be a fairly straightforward exercise
> (should just be another block in the set_frontend() call which sets
> the modulation appropriately).

Ok. I'll handle it after being sure that VSB is working properly.

Btw, I noticed that there are two "extra" firmwares, that aren't currently
used, defined, on your driver, at drxj_mc_vsb.h and drxj_mc_vsbqam.h.

Do you remember when those should be used? Or are them just two variants
of the main firmware, with support for just VSB and just ClearQAM?

Regards,
Mauro

  reply	other threads:[~2014-01-19 17:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-19  4:23 [ANNOUNCE EXPERIMENTAL] PCTV 80e driver Mauro Carvalho Chehab
2014-01-19 13:39 ` Mauro Carvalho Chehab
2014-01-19 16:50   ` Devin Heitmueller
2014-01-19 17:32     ` Mauro Carvalho Chehab [this message]
2014-01-20  3:59       ` Devin Heitmueller
2014-01-19 15:04 ` Steven Toth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140119153224.122ce0d4@samsung.com \
    --to=m.chehab@samsung.com \
    --cc=devin.heitmueller@gmail.com \
    --cc=dheitmueller@kernellabs.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox