Re: Support for RC-6 in em28xx driver?

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

 



2012/1/5 Simon Søndergaard <john7doe@xxxxxxxxx>:
> 2012/1/5 Devin Heitmueller <dheitmueller@xxxxxxxxxxxxxx>:
>> 2012/1/5 Simon Søndergaard <john7doe@xxxxxxxxx>:
>>> Hi,
>>>
>>> I recently purchased a PCTV 290e USB Stick (em28174) it comes with a
>>> remote almost as small as the stick itself... I've been able to get
>>> both stick and remote to work. I also own an MCE media center remote
>>> from HP (this make
>>> http://www.ebay.com/itm/Original-Win7-PC-MCE-Media-Center-HP-Remote-Controller-/170594956920)
>>> that sends RC-6 codes. While it do have a windows logo I still think
>>> it is vastly superior to the one that shipped with the stick :-)
>>>
>>> If I understand it correctly em28174 is a derivative of em2874?
>>>
>>> In em28xx-input.c it is stated that: "em2874 supports more protocols.
>>> For now, let's just announce the two protocols that were already
>>> tested"
>>>
>>> I've been searching high and low for a datasheet for em28(1)74, but
>>> have been unable to find it online. Do anyone know if one of the
>>> protocols supported is RC-6? and if so how do I get a copy of the
>>> datasheet?
>>
>> The 2874 supports NEC, RC-5, and RC-6/6A.  I did the original support
>> (based on the docs provided under NDA) but ironically enough I didn't
>> have an RC6 remote kicking around so I didn't do the support for it.
>>
>> IR receivers for MCE devices are dirt cheap (< $20), and if you're
>> doing a media center then it's likely the PCTV 290e probably isn't in
>> line-of-site for a remote anyway.
>
> The 290e will be in line of sight.
>
> Perhaps the info is already there, not sure why I overlooked it in the
> first place:
>
> EM2874_IR_RC6_MODE_0    0x08
> EM2874_IR_RC6_MODE_6A 0x0b

Ah, so I guess I did put at least some of the info into the driver.
Also, for RC6 make sure bits 0-1 are 00 and for RC6A they need to be
set based on the number of bytes expected to be received (2 bytes=00,
3bytes=01, 4bytes=10).  The received data gets stored in 0x52-0x55 (I
don't remember if the driver actually looks are 0x54/55 currently
since they aren't used for NEC or RC5)..

> RC5 and RC6 use same carrier frequency? so do I need another value for
> EM28XX_R0F_XCLK?

You shouldn't need to touch the XCLK register.

Good luck!

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
--
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