From patchwork Wed Jan 30 09:14:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Frolov X-Patchwork-Id: 2066421 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C6EA03FD2B for ; Wed, 30 Jan 2013 09:15:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753528Ab3A3JPn (ORCPT ); Wed, 30 Jan 2013 04:15:43 -0500 Received: from mail-bk0-f45.google.com ([209.85.214.45]:52880 "EHLO mail-bk0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751856Ab3A3JPm (ORCPT ); Wed, 30 Jan 2013 04:15:42 -0500 Received: by mail-bk0-f45.google.com with SMTP id i18so702248bkv.18 for ; Wed, 30 Jan 2013 01:15:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=H0PKi/hD6EmJu3GE/nu2DplL+j7qe8wNGZchZz4WbQU=; b=hC1swaYmxJ4fmXg4wWcUBoUftS7XgJejAzjdfn8DUbigM27Umc6a4Ftl81xJ4D9W8h Voex8fTFOptOcRK/hs4APFNUbqwp+ks3RjLdfi0zLPgtMob/T14A54OlO1UcYJMlSjGp 85IYqxWwa9699p90Nq3X9P86UOQscVNp1oMg3lixpG9aW4xE9YUvYjOImRFHib9Tb5MN kQJxbZcH5yB3JCEHwqo2HpqwjNcHV07DLH+JeOJJoK8c6FO2VJ87DEULbgA2HKTBXEPH 8XBntuwwKdxTSdeegN35OmNDX9MKMaJUIlvUtH9O0+cDndxWnv41Je13rCgD6nA3jgrP q19w== X-Received: by 10.204.147.144 with SMTP id l16mr1052520bkv.96.1359537340859; Wed, 30 Jan 2013 01:15:40 -0800 (PST) Received: from localhost.localdomain ([94.72.62.225]) by mx.google.com with ESMTPS id ho6sm286017bkc.0.2013.01.30.01.15.38 (version=TLSv1 cipher=DES-CBC3-SHA bits=168/168); Wed, 30 Jan 2013 01:15:39 -0800 (PST) From: Vadim Frolov To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, Vadim Frolov Subject: [PATCH 1/1] [media] saa7134: Add capture card Hawell HW-9004V1 Date: Wed, 30 Jan 2013 13:14:59 +0400 Message-Id: <1359537299-6534-1-git-send-email-fralik@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds new capture board Hawell HW-9004V1. This card has 4 SAA71300 chips. In order to work it is needed to initialize its registers (gpio mask and value). The value of these registers were dumped under Windows using flytest. Signed-off-by: Vadim Frolov --- Documentation/video4linux/CARDLIST.saa7134 | 1 + drivers/media/pci/saa7134/saa7134-cards.c | 17 +++++++++++++++++ drivers/media/pci/saa7134/saa7134.h | 1 + 3 files changed, 19 insertions(+) diff --git a/Documentation/video4linux/CARDLIST.saa7134 b/Documentation/video4linux/CARDLIST.saa7134 index 94d9025..b3ad683 100644 --- a/Documentation/video4linux/CARDLIST.saa7134 +++ b/Documentation/video4linux/CARDLIST.saa7134 @@ -189,3 +189,4 @@ 188 -> Sensoray 811/911 [6000:0811,6000:0911] 189 -> Kworld PC150-U [17de:a134] 190 -> Asus My Cinema PS3-100 [1043:48cd] +191 -> Hawell HW-9004V1 diff --git a/drivers/media/pci/saa7134/saa7134-cards.c b/drivers/media/pci/saa7134/saa7134-cards.c index bc08f1d..dc68cf1 100644 --- a/drivers/media/pci/saa7134/saa7134-cards.c +++ b/drivers/media/pci/saa7134/saa7134-cards.c @@ -5773,6 +5773,23 @@ struct saa7134_board saa7134_boards[] = { .gpio = 0x0000000, }, }, + [SAA7134_BOARD_HAWELL_HW_9004V1] = { + /* Hawell HW-9004V1 */ + /* Vadim Frolov */ + .name = "Hawell HW-9004V1", + .audio_clock = 0x00200000, + .tuner_type = UNSET, + .radio_type = UNSET, + .tuner_addr = ADDR_UNSET, + .radio_addr = ADDR_UNSET, + .gpiomask = 0x618E700, + .inputs = {{ + .name = name_comp1, + .vmux = 3, + .amux = LINE1, + .gpio = 0x6010000, + } }, + }, }; diff --git a/drivers/media/pci/saa7134/saa7134.h b/drivers/media/pci/saa7134/saa7134.h index 6eae432..6d92a59 100644 --- a/drivers/media/pci/saa7134/saa7134.h +++ b/drivers/media/pci/saa7134/saa7134.h @@ -333,6 +333,7 @@ struct saa7134_card_ir { #define SAA7134_BOARD_SENSORAY811_911 188 #define SAA7134_BOARD_KWORLD_PC150U 189 #define SAA7134_BOARD_ASUSTeK_PS3_100 190 +#define SAA7134_BOARD_HAWELL_HW_9004V1 191 #define SAA7134_MAXBOARDS 32 #define SAA7134_INPUT_MAX 8