Re: [GIT PATCHES for 2.6.38] Zilog Z8 IR unit fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 20, 2011 at 8:10 PM, Andy Walls <awalls@xxxxxxxxxxxxxxxx> wrote:
> On Thu, 2011-01-20 at 16:49 -0500, Jarod Wilson wrote:
>> On Jan 20, 2011, at 8:22 AM, Andy Walls wrote:
...
>> Some further testing today with a try-check success-delay-retry loop
>> shows one i2c_master_send() failure plus a udelay(100), and the second
>> i2c_master_send() typically always works (I haven't seen it *not* work
>> on the HVR-1950 in cursory testing).
>
> Cool.
>
>> A second similar loop has proven necessary for IR TX attempts to actually
>> claim to succeed -- not 100% certain they really worked, as I don't have
>> the IR emitter with me at the moment, its at home hooked up to my hdpvr,
>> but I suspect its working fine now.
>
> I'm not sure I follow here.  By "claim" I assume you mean no
> i2c_master_send() error.

Yeah, no errors in the code, and irsend says transmit was successful.
Just tried it out with the emitter hooked up, and it is indeed working
perfectly, sending commands to my cable box.

In short, IR on the HVR-1950 is behaving perfectly right now, including RX
with ir-kbd-i2c and both RX and TX with lirc_zilog.

...
>> Oh, I've also got IR RX with ir-kbd-i2c attached to the HVR-1950 working
>> much better now, with the polling interval reverted to the standard
>> 100ms, but simply introducing the same i2c_master_send() poll that
>> lirc_zilog uses into get_key_haup_xvr().
>
> You might want to check what video cards in the source tree request of,
> or are defaulted by, ir-kbd-i2c to use get_key_haup_xvr().  If it's only
> the chips at address 0x71, you're probably OK.

>From what I can tell, its only chips at 0x71.

>> I want to test today's changes with the hdpvr tonight (and verify that
>> tx is working on the HVR-1950) before I send along my current stack of
>> patches, and I have suspicions that most of the hdpvr-specific crud in
>> lirc_zilog is bogus now -- it *should* behave exactly like the HVR-1950,
>> which obviously doesn't follow any of those hdpvr-specific code paths,
>> so I'm hoping we can rip out some additional complexity from lirc_zilog.
>
> Good riddance to old kludges. :)
>
> You could then rename the i2c client strings back to
> "ir_[tr]x_z8f0811_haup".  We're going to modify struct IR_i2c_init_data
> with all the bridge specific parameters that need to be sent anyway, so
> no need to encode that information implicitly in the client's name
> anymore.

Unfortunately, my suspicions were wrong. The hdpvr-specific tweaks for
both RX and TX are necessary.

On RX, instead of getting two distinct keypresses (each with index 0), you
get two streams of keypresses, 00 to 08. On TX, we get a -EIO from the
i2c_master_recv() after where we normally bail out on the hdpvr.

Ah well. At least it means I'm not making more changes to lirc_zilog
tonight, so I'll send along the patches I've got queued up shortly.

-- 
Jarod Wilson
jarod@xxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux