Date: Thu, 16 Nov 2006 11:27:31 GMT From: Stefan Lambrev<cheffo@freebsd-bg.org> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/105604: add support for Pixelview PlayTV Pro 2 on bktr Message-ID: <200611161127.kAGBRVuR033340@www.freebsd.org> Resent-Message-ID: <200611161130.kAGBU2Kl033582@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 105604 >Category: kern >Synopsis: add support for Pixelview PlayTV Pro 2 on bktr >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Nov 16 11:30:01 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Stefan Lambrev >Release: 6.2-PRERELEASE >Organization: none >Environment: FreeBSD cheffo.freebsd-bg.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #15: Fri Oct 27 20:40:19 EEST 2006 root@cheffo.freebsd-bg.org:/usr/obj/usr/src/sys/CORE i386 >Description: I have a Prolink Pixelview PlayTV Pro 2 card which didn't work with the bktr driver. I make some changes to the patch from : http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/102549, so it can apply without a problems to the current RELENG_6 src. After the patch the card is still not recognized but if you manually set in /etc/sysctl.conf hw.bt848.card=23 hw.bt848.tuner=16 evrything work fine (well at least with mplayer) >How-To-Repeat: Use the above card with the bktr driver. >Fix: diff -urN --exclude=CVS sys/dev/bktr/bktr_card.c /root/src/sys/dev/bktr/bktr_card.c --- sys/dev/bktr/bktr_card.c Sat Jan 14 16:18:34 2006 +++ /root/src/sys/dev/bktr/bktr_card.c Thu Nov 16 13:17:10 2006 @@ -415,6 +415,29 @@ 0, /* EEProm size */ { 0x01, 0x04, 0x01, 0x03, 1 }, /* audio MUX values */ 0x00ffffff }, + { CARD_PIXELVIEW_PLAYTV_PRO_2, /* the card id */ + "PixelView PlayTV Pro 2 ", /* the 'name' */ + NULL, /* the tuner */ + 0, /* the tuner i2c address */ + 0, /* dbx is optional */ + 0, + 0, + 0, /* EEProm type */ + 0, /* EEProm size */ + { 0x00, 0x0a, 0x07, 0x0c, 1 }, /* audio MUX values */ + 0x0f }, + + { CARD_PIXELVIEW_PLAYTV_MPEG2, /* the card id */ + "PixelView PlayTV MPEG2 ", /* the 'name' */ + NULL, /* the tuner */ + 0, /* the tuner i2c address */ + 0, /* dbx is optional */ + 0, + 0, + 0, /* EEProm type */ + 0, /* EEProm size */ + { 0x21, 0x24, 0x2c, 0x29, 1 }, /* audio MUX values */ + 0x3f }, }; struct bt848_card_sig bt848_card_signature[1]= { diff -urN --exclude=CVS sys/dev/bktr/bktr_card.h /root/src/sys/dev/bktr/bktr_card.h --- sys/dev/bktr/bktr_card.h Sat Jan 14 16:18:34 2006 +++ /root/src/sys/dev/bktr/bktr_card.h Thu Nov 16 13:17:10 2006 @@ -82,7 +82,9 @@ #define CARD_PIXELVIEW_PLAYTV_PAK 20 #define CARD_TERRATVALUE 21 #define CARD_PIXELVIEW_PLAYTV_PRO_REV_4C 22 -#define Bt848_MAX_CARD 23 +#define CARD_PIXELVIEW_PLAYTV_PRO_2 23 +#define CARD_PIXELVIEW_PLAYTV_MPEG2 24 +#define Bt848_MAX_CARD 25 #define CARD_IO_GV CARD_IO_BCTV2 diff -urN --exclude=CVS sys/dev/bktr/bktr_tuner.c /root/src/sys/dev/bktr/bktr_tuner.c --- sys/dev/bktr/bktr_tuner.c Sat Jan 14 16:18:34 2006 +++ /root/src/sys/dev/bktr/bktr_tuner.c Thu Nov 16 13:17:10 2006 @@ -299,6 +299,17 @@ 0x00 }, { 0x00, 0x00 }, /* band-switch crosspoints */ { 0xa0, 0x90, 0x30, 0x8e } }, /* the band-switch values */ + + /* YMEC_TVF_5533 */ + /* Same characteristics as many Philips and Tena */ + { "Ymec TVision TVF-5533MF" , /* the 'name' */ + TTYPE_PAL, /* input type */ + { TSA552x_FCONTROL, /* control byte for Tuner PLL */ + TSA552x_FCONTROL, + TSA552x_FCONTROL, + TSA552x_RADIO }, + { 0x00, 0x00 }, /* band-switch crosspoints */ + { 0x01, 0x02, 0x04, 0x08 } }, /* the band-switch values */ }; diff -urN --exclude=CVS sys/dev/bktr/bktr_tuner.h /root/src/sys/dev/bktr/bktr_tuner.h --- sys/dev/bktr/bktr_tuner.h Sat Jan 14 16:18:34 2006 +++ /root/src/sys/dev/bktr/bktr_tuner.h Thu Nov 16 13:17:10 2006 @@ -61,7 +61,8 @@ #define ALPS_TSBH1 13 #define TUNER_MT2032 14 #define LG_TPI8PSB12P_PAL 15 -#define Bt848_MAX_TUNER 16 +#define YMEC_TVF_5533 16 +#define Bt848_MAX_TUNER 17 /* experimental code for Automatic Frequency Control */ #define TUNER_AFC >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611161127.kAGBRVuR033340>