TeVii S650 missing remote keys PATCH

Message ID 200906131620.08786.liplianin@tut.by
State New
Headers

Commit Message

Igor M. Liplianin June 13, 2009, 1:20 p.m. UTC
  On 13 June 2009 14:19:57 gimli wrote:
> Perfect ;)
>
> you need a :
>
> signed-off-by: Edgar Hucek < gimli at dark-green dot com >
>
> ?
>
> > On 13 June 2009 13:35:04 gimli wrote:
> >> Hi,
> >>
> >> i use the TeVii Firmware from the TeVii driver package :
> >> http://tevii.com/Tevii_linuxdriver_0815.rar
> >>
> >> dvb-fe-cx24116.fw and dvb-usb-s650.fw renamed to dvb-usb-dw2104.fw.
> >>
> >> You where right about the double mapping, this line can be removed.
> >> basicly it should not harm the existing mapping since you loop over and
> >> break on the first occurance.
> >
> > So, I will remove the line.
> >
> >> cu
> >>
> >> Edgar (gimli) Hucek
> >>
> >> > On 12 June 2009 21:50:15 gimli wrote:
> >> >> Hi,
> >> >>
> >> >> the attached patch is against :
> >> >> http://mercurial.intuxication.org/hg/s2-liplianin
> >> >>
> >> >> It adds the missing remote keys found on the TeVii Remote for the
> >>
> >> S650
> >>
> >> >> usb
> >> >> device.
> >> >>
> >> >> Now i have the remote fully working ;)
> >> >>
> >> >> cu
> >> >>
> >> >> Edgar (gimli) Hucek
> >> >
> >> > Hi Edgar,
> >> > Found bug, you are remapping already mapped key 0x1e
> >> > It breaks non-TeVii remotes.
> >> > Look at snip of your patch:
> >> >
> >> >  	{ 0xf8, 0x1e, KEY_W },		/*tvmode*/
> >> >  	{ 0xf8, 0x1b, KEY_B },		/*recall*/
> >> >
> >> > +	/* Keys the TeVii S650 provides */
> >> > +
> >> > +        { 0xf8, 0x1e, KEY_REWIND },
> >> >
> >> > BTW, which USB fimware are you using?
> >> >
> >> > Igor
> >>
> >> _______________________________________________
> >> vdr mailing list
> >> vdr@linuxtv.org
> >> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
> >
> > --
> > Igor M. Liplianin
> > Microsoft Windows Free Zone - Linux used for all Computing Tasks
I corrected you patch. Look at it, before I commit it.
  

Comments

gimli June 13, 2009, 2:48 p.m. UTC | #1
> On 13 June 2009 14:19:57 gimli wrote:
>> Perfect ;)
>>
>> you need a :
>>
>> signed-off-by: Edgar Hucek < gimli at dark-green dot com >
>>
>> ?
>>
>> > On 13 June 2009 13:35:04 gimli wrote:
>> >> Hi,
>> >>
>> >> i use the TeVii Firmware from the TeVii driver package :
>> >> http://tevii.com/Tevii_linuxdriver_0815.rar
>> >>
>> >> dvb-fe-cx24116.fw and dvb-usb-s650.fw renamed to dvb-usb-dw2104.fw.
>> >>
>> >> You where right about the double mapping, this line can be removed.
>> >> basicly it should not harm the existing mapping since you loop over
>> and
>> >> break on the first occurance.
>> >
>> > So, I will remove the line.
>> >
>> >> cu
>> >>
>> >> Edgar (gimli) Hucek
>> >>
>> >> > On 12 June 2009 21:50:15 gimli wrote:
>> >> >> Hi,
>> >> >>
>> >> >> the attached patch is against :
>> >> >> http://mercurial.intuxication.org/hg/s2-liplianin
>> >> >>
>> >> >> It adds the missing remote keys found on the TeVii Remote for the
>> >>
>> >> S650
>> >>
>> >> >> usb
>> >> >> device.
>> >> >>
>> >> >> Now i have the remote fully working ;)
>> >> >>
>> >> >> cu
>> >> >>
>> >> >> Edgar (gimli) Hucek
>> >> >
>> >> > Hi Edgar,
>> >> > Found bug, you are remapping already mapped key 0x1e
>> >> > It breaks non-TeVii remotes.
>> >> > Look at snip of your patch:
>> >> >
>> >> >  	{ 0xf8, 0x1e, KEY_W },		/*tvmode*/
>> >> >  	{ 0xf8, 0x1b, KEY_B },		/*recall*/
>> >> >
>> >> > +	/* Keys the TeVii S650 provides */
>> >> > +
>> >> > +        { 0xf8, 0x1e, KEY_REWIND },
>> >> >
>> >> > BTW, which USB fimware are you using?
>> >> >
>> >> > Igor
>> >>
>> >> _______________________________________________
>> >> vdr mailing list
>> >> vdr@linuxtv.org
>> >> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>> >
>> > --
>> > Igor M. Liplianin
>> > Microsoft Windows Free Zone - Linux used for all Computing Tasks
> I corrected you patch. Look at it, before I commit it.
>
> --
> Igor M. Liplianin
> Microsoft Windows Free Zone - Linux used for all Computing Tasks
>

Checked the patch and it's fine for me ;)

cu

Edgar (gimli) Hucek
  

Patch

# HG changeset patch
# User Edgar Hucek <gimli@dark-green.com>
# Date 1244898807 -10800
# Node ID 2fbb6f192909992c8aaa14b6d8b2b0a7f552c7e3
# Parent  0a879065cf36e5f1a9d718f3aff8097e41112610
Add missing remote keys for TeVii remote.

From: Edgar Hucek <gimli@dark-green.com>

It adds the missing remote keys found on
the TeVii Remote for the S650 usb device.

Signed-off-by: Edgar Hucek <gimli@dark-green.com>

diff -r 0a879065cf36 -r 2fbb6f192909 linux/drivers/media/dvb/dvb-usb/dw2102.c
--- a/linux/drivers/media/dvb/dvb-usb/dw2102.c	Sat Jun 13 14:10:24 2009 +0300
+++ b/linux/drivers/media/dvb/dvb-usb/dw2102.c	Sat Jun 13 16:13:27 2009 +0300
@@ -801,6 +801,23 @@ 
 	{ 0xf8, 0x1e, KEY_W },		/*tvmode*/
 	{ 0xf8, 0x1b, KEY_B },		/*recall*/
 
+	/* Additional keys TeVii S650 provides */
+	{ 0xf8, 0x4d, KEY_FASTFORWARD },
+	{ 0xf8, 0x44, KEY_EPG },
+	{ 0xf8, 0x41, KEY_MODE },      /* AB */
+	{ 0xf8, 0x4c, KEY_INFO },
+	{ 0xf8, 0x43, KEY_AUDIO },
+	{ 0xf8, 0x45, KEY_SUBTITLE },
+	{ 0xf8, 0x4a, KEY_LIST },
+	{ 0xf8, 0x46, KEY_F1 },
+	{ 0xf8, 0x47, KEY_F2 },
+	{ 0xf8, 0x5e, KEY_F3 },
+	{ 0xf8, 0x5c, KEY_F4 },
+	{ 0xf8, 0x52, KEY_F5 },
+	{ 0xf8, 0x5a, KEY_F6 },
+	{ 0xf8, 0x56, KEY_PVR },       /* mon */
+	{ 0xf8, 0x58, KEY_SWITCHVIDEOMODE },
+	{ 0xf8, 0x1d, KEY_BACK },
 };
 
 static int dw2102_rc_query(struct dvb_usb_device *d, u32 *event, int *state)