Thread (6 messages) 6 messages, 3 authors, 2011-01-06

Re: [PATCH 0/8] Fix V4L/DVB/RC warnings

From: Jarod Wilson <hidden>
Date: 2011-01-06 21:54:44

On Dec 28, 2010, at 5:18 PM, Andy Walls wrote:
On Tue, 2010-12-28 at 12:45 -0200, Mauro Carvalho Chehab wrote:
quoted
Em 28-12-2010 12:14, Andy Walls escreveu:
quoted
On Tue, 2010-12-28 at 01:12 -0200, Mauro Carvalho Chehab wrote:
quoted
Em 27-12-2010 21:55, Andy Walls escreveu:
quoted
I have hardware for lirc_zilog.  I can look later this week.
That would be great!
It shouldn't be hard to fix up the lirc_zilog.c use of adap->id but it
may require a change to the hdpvr driver as well.

As I was looking, I noticed this commit is incomplete:

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=07cc65d4f4a21a104269ff7e4e7be42bd26d7acb

The "goto" was missed in the conditional compilation for the HD-PVR:

http://git.linuxtv.org/media_tree.git?a=blob;f=drivers/staging/lirc/lirc_zilog.c;h=f0076eb025f1a0e9d412080caab87f627dda4970#l844

You might want to revert the trivial commit that removed the "done:"
label.  When I clean up the dependence on adap->id, I may need the
"done:" label back again.
Argh! this is not a very nice code at all...

I think that the proper way is to apply the enclosed patch. After having it
fixed, the dont_wait parameter can be passed to the driver via platform_data.
So, we should add a field at struct IR for it.
Well there is one more exception in lirc_zilog for the HD-PVR that also
relies on adapter->id.

lirc_zilog only handles Hauppauge adapters with that Z8 microcontroller
(PVR-150's, HVR-1600's, etc.) and the HD-PVR is the only device that
requires these quirky exceptions AFAIK.

It's probably better just to let lirc_zilog cleanly know it is dealing
with an HD-PVR and let it handle.  I'm working on it this evening and
will post something soon.
Thanks much for working on this admittedly crappy lirc code, and apologies
for the relative radio silence of late. The holiday break didn't afford
nearly as much (okay, any) time for IR work like I'd hoped. :\

Trying to catch up now though, and I do have an hdpvr to beat on with
some of the patches I'm seeing floated on the list.

-- 
Jarod Wilson
jarod@wilsonet.com


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help