From patchwork Thu Oct 29 16:07:28 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: flinkdeldinky X-Patchwork-Id: 56486 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 n9TG7CLi019886 for ; Thu, 29 Oct 2009 16:07:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753397AbZJ2QHG (ORCPT ); Thu, 29 Oct 2009 12:07:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753226AbZJ2QHG (ORCPT ); Thu, 29 Oct 2009 12:07:06 -0400 Received: from mail-bw0-f227.google.com ([209.85.218.227]:48376 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753098AbZJ2QHE (ORCPT ); Thu, 29 Oct 2009 12:07:04 -0400 Received: by bwz27 with SMTP id 27so2489061bwz.21 for ; Thu, 29 Oct 2009 09:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:from:date :mime-version:content-type:content-transfer-encoding:message-id; bh=hxQpf987Qi0uEcKD1DZ/2h/klTb9ATr1dE8U7dv0k4c=; b=hvj3Dx5TvG9pmiQUSNWx699E7fhs4fELfrh600JUhk8Lmrg4aZVOIocQneiYajEBxM Cpm84WE8m/9SpndBvxxYWfCiFCSjSbYW6HSFaNkDUoqF3uuJblwknQn/2fPi3lfmr6Su xStk8Hq+eKsH6LrP5Pk61dxaT8ftDANWC4dM8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:from:date:mime-version:content-type :content-transfer-encoding:message-id; b=jYJZvELIGWpB65vQ3WHcw/VC/h99nmqhrJ0tZkgVVWi/NdH6vN+RUUEOjkPuPZJJbb 9hghGZU0hMlT5xCEajysO1rEmlEF6AOXAzzYzSSzl6+tDSPVdI5nHU+Ux6TxrSHr5+zP wYT9VKOT97yUeAxOdXs5My9ZX7E0ipzFydJV8= Received: by 10.204.141.4 with SMTP id k4mr181146bku.28.1256832427975; Thu, 29 Oct 2009 09:07:07 -0700 (PDT) Received: from gentookde.localnet (125.24.6.234.adsl.dynamic.totbb.net [125.24.6.234]) by mx.google.com with ESMTPS id g28sm4361351fkg.15.2009.10.29.09.07.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 09:07:07 -0700 (PDT) To: linux-media@vger.kernel.org Subject: [PATCH video4linux] For STLabs PCI saa7134 analog receiver card From: flinkdeldinky Date: Thu, 29 Oct 2009 23:07:28 +0700 MIME-Version: 1.0 Message-Id: <200910292307.28202.flinkdeldinky@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -r d6c09c3711b5 linux/drivers/media/video/saa7134/saa7134-cards.c --- a/linux/drivers/media/video/saa7134/saa7134-cards.c Sun Sep 20 15:14:21 2009 +0000 +++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Thu Oct 29 14:54:31 2009 +0700 @@ -5342,7 +5342,38 @@ .amux = LINE2, } }, }, - + [SAA7134_BOARD_STLAB_PCI_TV7130] = { + /* "Aidan Gill" */ + .name = "ST Lab ST Lab PCI-TV7130 ", + .audio_clock = 0x00200000, + .tuner_type = TUNER_LG_PAL_NEW_TAPC, + .radio_type = UNSET, + .tuner_addr = ADDR_UNSET, + .radio_addr = ADDR_UNSET, + .gpiomask = 0x7000, + .inputs = {{ + .name = name_tv, + .vmux = 1, + .amux = LINE2, + .gpio = 0x0000, + .tv = 1, + }, { + .name = name_comp1, + .vmux = 3, + .amux = LINE1, + .gpio = 0x2000, + }, { + .name = name_svideo, + .vmux = 0, + .amux = LINE1, + .gpio = 0x2000, + } }, + .mute = { + .name = name_mute, + .amux = TV, + .gpio = 0x3000, + }, + }, }; const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards); @@ -6487,6 +6518,12 @@ .subdevice = 0x4847, .driver_data = SAA7134_BOARD_ASUS_EUROPA_HYBRID, }, { + .vendor = PCI_VENDOR_ID_PHILIPS, + .device = PCI_DEVICE_ID_PHILIPS_SAA7130, + .subvendor = PCI_VENDOR_ID_PHILIPS, + .subdevice = 0x2001, + .driver_data = SAA7134_BOARD_STLAB_PCI_TV7130, + }, { /* --- boards without eeprom + subsystem ID --- */ .vendor = PCI_VENDOR_ID_PHILIPS, .device = PCI_DEVICE_ID_PHILIPS_SAA7134, diff -r d6c09c3711b5 linux/drivers/media/video/saa7134/saa7134.h --- a/linux/drivers/media/video/saa7134/saa7134.h Sun Sep 20 15:14:21 2009 +0000 +++ b/linux/drivers/media/video/saa7134/saa7134.h Thu Oct 29 14:54:31 2009 +0700 @@ -299,6 +299,7 @@ #define SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM 172 #define SAA7134_BOARD_ZOLID_HYBRID_PCI 173 #define SAA7134_BOARD_ASUS_EUROPA_HYBRID 174 +#define SAA7134_BOARD_STLAB_PCI_TV7130 175 #define SAA7134_MAXBOARDS 32 #define SAA7134_INPUT_MAX 8