From patchwork Sat Aug 29 12:32:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Yudin X-Patchwork-Id: 44685 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7TCPIsw020239 for ; Sat, 29 Aug 2009 12:25:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751539AbZH2MZO (ORCPT ); Sat, 29 Aug 2009 08:25:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751462AbZH2MZN (ORCPT ); Sat, 29 Aug 2009 08:25:13 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:61836 "EHLO mail-ew0-f206.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751377AbZH2MZM (ORCPT ); Sat, 29 Aug 2009 08:25:12 -0400 Received: by ewy2 with SMTP id 2so2814679ewy.17 for ; Sat, 29 Aug 2009 05:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :message-id; bh=QbLYPmEV7pv3+zlJynVURe0xFv0E1FCwwxgd6D27Vk8=; b=kdPiS67ndUBgVihyyBAcumQzrDp0Fdofew/DIWVjLVZEc8QkN2Z8LZ3h92jNGVjszw xawlpjomzjxuYwCh6Re26x8K8l52ilXIixO1onA7YGwB2HfNEoEexy5kTfmH7GhzURKt L4BYqz5N9DenmOakXRL9SX+BG48qTv2gRyWjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:message-id; b=QWewGZFfwVs5Ykwz+V7cofMY9008VzxfiCtrWLfpjOLMrTe1St7PO+VmOLCdWWbfPe FJ07pdLu35EB9+YzzVStRXrpFa1O1IXw9WIpdPlsPOCuCh1B45NwBv6zOxhNOVYa09uB 9fNmdO0VPPR4qDDwNTuoGaQ0BoaVZHc4yHIrg= Received: by 10.211.131.8 with SMTP id i8mr2588578ebn.68.1251548712453; Sat, 29 Aug 2009 05:25:12 -0700 (PDT) Received: from arch.localnet ([95.83.176.99]) by mx.google.com with ESMTPS id 5sm87165eyf.15.2009.08.29.05.25.10 (version=SSLv3 cipher=RC4-MD5); Sat, 29 Aug 2009 05:25:11 -0700 (PDT) From: Eugene Yudin To: hermann pitton Subject: [PATCH] Add support for RoverMedia TV Link Pro FM Date: Sat, 29 Aug 2009 16:32:11 +0400 User-Agent: KMail/1.12.0 (Linux/2.6.30-ARCH; KDE/4.3.0; i686; ; ) Cc: linux-media@vger.kernel.org References: <200908272104.59221.Eugene.Yudin@gmail.com> <1251492543.9277.23.camel@pc07.localdom.local> <200908291613.16863.Eugene.Yudin@gmail.com> In-Reply-To: <200908291613.16863.Eugene.Yudin@gmail.com> MIME-Version: 1.0 Message-Id: <200908291632.11813.Eugene.Yudin@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch add support for RoverMedia TV Link Pro FM (LR138 REV:I) card based on saa7134. Signed-off-by: Eugene Yudin Best Regards, Eugene diff -r ad2f24d34b83 linux/Documentation/video4linux/CARDLIST.saa7134 --- a/linux/Documentation/video4linux/CARDLIST.saa7134 Fri Aug 28 04:12:06 2009 -0300 +++ b/linux/Documentation/video4linux/CARDLIST.saa7134 Sat Aug 29 15:53:10 2009 +0400 @@ -168,3 +168,4 @@ 167 -> Beholder BeholdTV 609 RDS [5ace:6092] 168 -> Beholder BeholdTV 609 RDS [5ace:6093] 169 -> Compro VideoMate S350/S300 [185b:c900] +170 -> RoverMedia TV Link Pro FM [19d1:0138] diff -r ad2f24d34b83 linux/drivers/media/video/saa7134/saa7134-cards.c --- a/linux/drivers/media/video/saa7134/saa7134-cards.c Fri Aug 28 04:12:06 2009 -0300 +++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Sat Aug 29 15:53:10 2009 +0400 @@ -5182,6 +5182,56 @@ .amux = LINE1 } }, }, + [SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM] = { + /* RoverMedia TV Link Pro FM (LR138 REV:I) */ + /* Eugene Yudin */ + .name = "RoverMedia TV Link Pro FM", + .audio_clock = 0x00200000, + .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* TCL MFPE05 2 */ + .radio_type = UNSET, + .tuner_addr = ADDR_UNSET, + .radio_addr = ADDR_UNSET, + .tda9887_conf = TDA9887_PRESENT, + .gpiomask = 0xe000, + .inputs = {{ + .name = name_tv, + .vmux = 1, + .amux = TV, + .gpio = 0x8000, + .tv = 1, + },{ + .name = name_tv_mono, + .vmux = 1, + .amux = LINE2, + .gpio = 0x0000, + .tv = 1, + },{ + .name = name_comp1, + .vmux = 0, + .amux = LINE2, + .gpio = 0x4000, + },{ + .name = name_comp2, + .vmux = 3, + .amux = LINE2, + .gpio = 0x4000, + },{ + .name = name_svideo, + .vmux = 8, + .amux = LINE2, + .gpio = 0x4000, + }}, + .radio = { + .name = name_radio, + .amux = LINE2, + .gpio = 0x2000, + }, + .mute = { + .name = name_mute, + .amux = TV, + .gpio = 0x8000, + }, + }, }; const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards); @@ -6296,6 +6346,12 @@ .subdevice = 0xc900, .driver_data = SAA7134_BOARD_VIDEOMATE_S350, }, { + .vendor = PCI_VENDOR_ID_PHILIPS, + .device = PCI_DEVICE_ID_PHILIPS_SAA7134, + .subvendor = 0x19d1, /* RoverMedia */ + .subdevice = 0x0138, /* LifeView FlyTV Prime30 OEM */ + .driver_data = SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM, + }, { /* --- boards without eeprom + subsystem ID --- */ .vendor = PCI_VENDOR_ID_PHILIPS, .device = PCI_DEVICE_ID_PHILIPS_SAA7134, @@ -6656,6 +6712,7 @@ case SAA7134_BOARD_REAL_ANGEL_220: case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG: case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS: + case SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM: dev->has_remote = SAA7134_REMOTE_GPIO; break; case SAA7134_BOARD_FLYDVBS_LR300: diff -r ad2f24d34b83 linux/drivers/media/video/saa7134/saa7134-input.c --- a/linux/drivers/media/video/saa7134/saa7134-input.c Fri Aug 28 04:12:06 2009 -0300 +++ b/linux/drivers/media/video/saa7134/saa7134-input.c Sat Aug 29 15:53:10 2009 +0400 @@ -456,6 +456,7 @@ case SAA7134_BOARD_FLYVIDEO3000: case SAA7134_BOARD_FLYTVPLATINUM_FM: case SAA7134_BOARD_FLYTVPLATINUM_MINI2: + case SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM: ir_codes = ir_codes_flyvideo; mask_keycode = 0xEC00000; mask_keydown = 0x0040000; diff -r ad2f24d34b83 linux/drivers/media/video/saa7134/saa7134.h --- a/linux/drivers/media/video/saa7134/saa7134.h Fri Aug 28 04:12:06 2009 -0300 +++ b/linux/drivers/media/video/saa7134/saa7134.h Sat Aug 29 15:53:10 2009 +0400 @@ -294,6 +294,7 @@ #define SAA7134_BOARD_BEHOLD_609RDS_MK3 167 #define SAA7134_BOARD_BEHOLD_609RDS_MK5 168 #define SAA7134_BOARD_VIDEOMATE_S350 169 +#define SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM 170 #define SAA7134_MAXBOARDS 32 #define SAA7134_INPUT_MAX 8