From: Andy Walls <awalls@md.metrocast.net>
To: Jarod Wilson <jarod@wilsonet.com>
Cc: linux-media@vger.kernel.org, Mike Isely <isely@isely.net>,
Jarod Wilson <jarod@redhat.com>,
Jean Delvare <khali@linux-fr.org>, Janne Grunau <j@jannau.net>,
Mauro Carvalho Chehab <mchehab@redhat.com>
Subject: Re: [GIT PATCHES for 2.6.38] Zilog Z8 IR unit fixes
Date: Wed, 19 Jan 2011 07:21:58 -0500 [thread overview]
Message-ID: <1295439718.2093.17.camel@morgan.silverblock.net> (raw)
In-Reply-To: <848D2317-613E-42B1-950D-A227CFF15C5B@wilsonet.com>
On Wed, 2011-01-19 at 00:20 -0500, Jarod Wilson wrote:
> On Jan 16, 2011, at 10:29 PM, Andy Walls wrote:
>
> > On Sun, 2011-01-16 at 14:20 -0500, Andy Walls wrote:
> >> Mauro,
> >>
> >> Please pull the one ir-kbd-i2c change and multiple lirc_zilog changes
> >> for 2.6.38.
> >>
> >> The one ir-kbd-i2c change is to put back a case to have ir-kbd-i2c set
> >> defaults for I2C client address 0x71. I know I was the one who
> >> recommend that ir-kbd-i2c not do this, but I discovered pvrusb2 and bttv
> >> rely on it for the moment - Mea culpa.
> >>
> >> The lirc_zilog changes are tested to work with both Tx and Rx with an
> >> HVR-1600. I don't want to continue much further on lirc_zilog changes,
> >> unitl a few things happen:
> >>
> >> 1. I have developed, and have had tested, a patch for the pvrusb2 driver
> >> to allow the in kernel lirc_zilog to bind to a Z8 on a pvrusb2 supported
> >> device.
> >
> > Mauro,
> >
> > I have developed a patch for pvrusb2 and Mike Isely provided his Ack. I
> > have added it to my "z8" branch and this pull request.
>
> I've finally got around to trying it out with the HVR-1950 I've got here,
> and it does do the trick for ir-kbd-i2c (albeit I never see proper key
> repeats, only alternating press/release key events).
Yay, a small victory.
I explicitly set the polling interval to 260 ms in pvrusb2, based on
your hdpvr findings and lirc_zilog code. I guess you can try tweaking
that back to 100 ms.
> Not working with
> lirc_zilog yet, it fails to load, due to an -EIO ret to one of the
> i2c_master_send() calls in lirc_zilog during probe of the TX side. Haven't
> looked into it any more than that yet.
Well technically lirc_zilog doesn't "probe" anymore. It relies on the
bridge driver telling it the truth.
But yes, lirc_zilog is overly sensitive to anything not being right
during lirc_zilog.c:ir_probe().
BTW, does your HVR-1950 have a blaster? The simple code I added to
pvrusb2 doesn't try to detect a unit on address 0x70. It always assumes
the Z8 is Tx capable.
With the cx18 and ivtv cards, the Hauppauge EEPROM indicates whether a
blaster is present. For those bridge drivers, I can communicate that
information to the IR modules.
For the hdpvr and pvrusb2, my short term plan was to always assume a Z8
could Tx, and make lirc_zilog not barf when it couldn't talk to a Tx
unit. I notice that Mike had written some short, simple IR unit
detection code here for other reasons:
http://git.linuxtv.org/media_tree.git?a=blob;f=drivers/media/video/pvrusb2/pvrusb2-i2c-core.c;h=ccc884948f34b385563ccbf548c5f80b33cd4f08;hb=refs/heads/staging/for_2.6.38-rc1#l661
http://git.linuxtv.org/media_tree.git?a=blob;f=drivers/media/video/pvrusb2/pvrusb2-i2c-core.c;h=ccc884948f34b385563ccbf548c5f80b33cd4f08;hb=refs/heads/staging/for_2.6.38-rc1#l542
For debugging, you might want to hack in a probe of address 0x70 for
your HVR-1950, to ensure the Tx side responds in the bridge driver.
Regards,
Andy
next prev parent reply other threads:[~2011-01-19 12:22 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-16 19:20 [GIT PATCHES for 2.6.38] Zilog Z8 IR unit fixes Andy Walls
2011-01-17 3:29 ` Andy Walls
2011-01-19 5:20 ` Jarod Wilson
2011-01-19 12:21 ` Andy Walls [this message]
2011-01-19 12:40 ` Jean Delvare
2011-01-19 13:24 ` Andy Walls
2011-01-19 13:28 ` Mike Isely
2011-01-19 13:20 ` Mike Isely
2011-01-19 13:38 ` Andy Walls
2011-01-19 13:50 ` Jean Delvare
2011-01-19 17:12 ` Jarod Wilson
2011-01-19 17:39 ` Jarod Wilson
2011-01-19 17:43 ` Jean Delvare
2011-01-19 20:08 ` Jarod Wilson
2011-01-20 4:45 ` Jarod Wilson
2011-01-20 4:52 ` Jarod Wilson
2011-01-20 13:22 ` Andy Walls
2011-01-20 21:49 ` Jarod Wilson
2011-01-21 1:10 ` Andy Walls
2011-01-21 3:58 ` Jarod Wilson
2011-01-19 14:17 ` Mike Isely
2011-01-19 16:42 ` Jarod Wilson
2011-01-19 16:57 ` Mike Isely
2011-01-19 17:07 ` Jarod Wilson
2011-01-19 16:08 ` Jarod Wilson
2011-01-19 16:10 ` Devin Heitmueller
2011-01-19 14:59 ` Jean Delvare
2011-01-19 15:09 ` Mike Isely
2011-01-19 15:18 ` Jean Delvare
-- strict thread matches above, loose matches on Subject: below --
2011-01-19 16:46 Andy Walls
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=1295439718.2093.17.camel@morgan.silverblock.net \
--to=awalls@md.metrocast.net \
--cc=isely@isely.net \
--cc=j@jannau.net \
--cc=jarod@redhat.com \
--cc=jarod@wilsonet.com \
--cc=khali@linux-fr.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.