From patchwork Tue Jun 4 20:10:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alessandro Miceli X-Patchwork-Id: 2662001 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 AD5483FC8C for ; Tue, 4 Jun 2013 20:11:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751037Ab3FDULs (ORCPT ); Tue, 4 Jun 2013 16:11:48 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:53225 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808Ab3FDULr (ORCPT ); Tue, 4 Jun 2013 16:11:47 -0400 Received: by mail-wi0-f180.google.com with SMTP id hn14so600934wib.7 for ; Tue, 04 Jun 2013 13:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=4QtzrQwPEz4p3gi2pso3Z5mgVdLmij6E73nw/Fpm8e4=; b=Dt8q2CtNsVprGSVvKWO2Y+2QpmV3QSxCBrkQc2BVKsdK9Bd0TXFhsAVEca1jorbqBC zwr71VvJo1r+pexJEVK/qeor4iGuoN0LLmt4I5nh9sQ0pQP/DS5Dd0bNW7G1nk+Lbsvg 82RajqdmV13SL12lNW342n+bZB4hStHx9plZkKRIbix0Wn6DnUCZf9N3i85FkC8GgFHa Ek6j7iSV9zYh1W/D8fvXnTDfA25HxwDGcxWKCk0QOpAqb3yIgeOIAriQoeNQgy0uKgKd IuZYxTpriepXVFDeXAbwWRDczAtBGDEN8855ToQ6m8d1AoLDqKAJGpoZGGYl12mb6mCA QPyw== X-Received: by 10.194.61.140 with SMTP id p12mr25584464wjr.51.1370376706684; Tue, 04 Jun 2013 13:11:46 -0700 (PDT) Received: from localhost.localdomain (ppp-19-163.33-151.iol.it. [151.33.163.19]) by mx.google.com with ESMTPSA id fu14sm5162971wic.0.2013.06.04.13.11.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 13:11:46 -0700 (PDT) From: Alessandro Miceli Cc: Alessandro Miceli , Linux Media Mailing List Subject: [PATCH] [rtl28xxu] Add support for Crypto Redi PC50A device (rtl2832u + FC0012 tuner) Date: Tue, 4 Jun 2013 22:10:34 +0200 Message-Id: <1370376634-3033-1-git-send-email-angelofsky1980@gmail.com> X-Mailer: git-send-email 1.7.9.5 To: unlisted-recipients:; (no To-header on input) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The device has been tested on a MIPSel box with kernel 3.1.1 and backported media_tree drivers The kernel detects the device with the following output: usbcore: registered new interface driver dvb_usb_rtl28xxu usb 1-2: dvb_usb_v2: found a 'Crypto Redi PC50A' in warm state usb 1-2: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer DVB: registering new adapter (Crypto Redi PC50A) usb 1-2: DVB: registering adapter 1 frontend 0 (Realtek RTL2832 (DVB-T))... i2c i2c-4: fc0012: Fitipower FC0012 successfully identified usb 1-2: dvb_usb_v2: 'Crypto Redi PC50A' successfully initialized and connected Signed-off-by: Alessandro Miceli --- drivers/media/dvb-core/dvb-usb-ids.h | 1 + drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/media/dvb-core/dvb-usb-ids.h b/drivers/media/dvb-core/dvb-usb-ids.h index 2e0709a..87bf2eb 100644 --- a/drivers/media/dvb-core/dvb-usb-ids.h +++ b/drivers/media/dvb-core/dvb-usb-ids.h @@ -368,4 +368,5 @@ #define USB_PID_TECHNISAT_AIRSTAR_TELESTICK_2 0x0004 #define USB_PID_TECHNISAT_USB2_DVB_S2 0x0500 #define USB_PID_CTVDIGDUAL_V2 0xe410 +#define USB_PID_CPYTO_REDI_PC50A 0xa803 #endif diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index 22015fe..9a0ad1e 100644 --- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c +++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c @@ -1408,6 +1408,8 @@ static const struct usb_device_id rtl28xxu_id_table[] = { &rtl2832u_props, "Compro VideoMate U620F", NULL) }, { DVB_USB_DEVICE(USB_VID_KWORLD_2, 0xd394, &rtl2832u_props, "MaxMedia HU394-T", NULL) }, + { DVB_USB_DEVICE(USB_VID_GTEK, USB_PID_CPYTO_REDI_PC50A, + &rtl2832u_props, "Crypto Redi PC50A", NULL) }, { } }; MODULE_DEVICE_TABLE(usb, rtl28xxu_id_table);