From patchwork Fri May 5 19:59:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Hollstegge X-Patchwork-Id: 9714333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 23AD260235 for ; Fri, 5 May 2017 19:59:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13163286CC for ; Fri, 5 May 2017 19:59:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07F0F28616; Fri, 5 May 2017 19:59:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C879286CF for ; Fri, 5 May 2017 19:59:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755645AbdEET7T (ORCPT ); Fri, 5 May 2017 15:59:19 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36145 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755606AbdEET7R (ORCPT ); Fri, 5 May 2017 15:59:17 -0400 Received: by mail-wm0-f66.google.com with SMTP id u65so3308943wmu.3 for ; Fri, 05 May 2017 12:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=g8vEH56HYGArwCpDWS/4CgU9btH9F7rh2Cjh6LEYlC0=; b=qRTTIfdbS5M/geffg4Q+2HNWGJO/W+idMfybdCv2BA/5u1E393FKVZHe1Hd5ZbUSiw Y9FrN90sb56nAu7YlviXqMzOLCGuWOJPo9hriwR7XJ0xgzaiKDR1G2cr1jlIa222MFBj dUsrojqvEuCvvebWwheo9qkPpYAMgMYNz3xWIf1vY1NbnLNJqBY2DG3MslBqQgydA80N 7/4/xTPrt1Z2FgrjR7CSK7a2WbJOJLvOiv48VI8pf58hvHqTxgnKGChrymEjn5DyNPNY VlR3FVzMBx/X3EHRfHph/q0ogZL+6coN8ZwaQKPbaX3/VXTjx1djGmNRydRUvEiFTVAA VOMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:mime-version:content-disposition:user-agent; bh=g8vEH56HYGArwCpDWS/4CgU9btH9F7rh2Cjh6LEYlC0=; b=bXe2bRNecBG4OuOczS8KsgRt1NTwbmR5meR8L9L+aQpZTF92vkjkpiFYV9oyR/7kmF N6zvXp/eHVO2hZTiY4EtU9ug02Vgyij4r9Te6xbcPJhotuuSgNWdUouhvXNXMmvm7Zeu DDvCMcmCL3X31bmQaEubQb4kUFVvZ2OGxR8NWHAmv6XcYGXHXgmibNZv/FAV47OGJeNx 8k1HcoMroWf4+v5/P5kZjjH1JWQ+deylAN1EHmdnDQ36RlWMF0IG/3JCoJ7UZ5ON+vuH UY95Fgy/W6kt0/pJsbOMbKTtutZ8bgpGn1QS/lu8wH5A+aLXNZ2S9RJKf7okr2l0WMH3 708w== X-Gm-Message-State: AN3rC/5U7pSNutBwD4hjwKpzFO/T/wdoEJRGL6RBm2E1uuMGIR8VI8qt O1XpriTa1hj/+g== X-Received: by 10.28.238.218 with SMTP id j87mr6446547wmi.131.1494014350435; Fri, 05 May 2017 12:59:10 -0700 (PDT) Received: from localhost (p200300E55BCF1D00520495F012488B7F.dip0.t-ipconnect.de. [2003:e5:5bcf:1d00:5204:95f0:1248:8b7f]) by smtp.googlemail.com with ESMTPSA id u76sm7149853wrb.27.2017.05.05.12.59.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 May 2017 12:59:09 -0700 (PDT) Date: Fri, 5 May 2017 21:59:09 +0200 From: Thomas Hollstegge To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Subject: [PATCH v2] [media] em28xx: support for Sundtek MediaTV Digital Home Message-ID: <20170505195905.GA1057@googlemail.com> Mail-Followup-To: Mauro Carvalho Chehab , linux-media@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sundtek MediaTV Digital Home is a rebranded MaxMedia UB425-TC with the following components: USB bridge: Empia EM2874B Demodulator: Micronas DRX 3913KA2 Tuner: NXP TDA18271HDC2 Signed-off-by: Thomas Hollstegge --- Changes in v2: - Make the patch apply against linux-media master drivers/media/usb/em28xx/em28xx-cards.c | 15 +++++++++++++++ drivers/media/usb/em28xx/em28xx-dvb.c | 1 + drivers/media/usb/em28xx/em28xx.h | 1 + 3 files changed, 17 insertions(+) diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c index a12b599..adb5db2 100644 --- a/drivers/media/usb/em28xx/em28xx-cards.c +++ b/drivers/media/usb/em28xx/em28xx-cards.c @@ -415,6 +415,7 @@ static struct em28xx_reg_seq hauppauge_930c_digital[] = { /* 1b80:e425 MaxMedia UB425-TC * 1b80:e1cc Delock 61959 + * eb1a:51b2 Sundtek MediaTV Digital Home * GPIO_6 - demod reset, 0=active * GPIO_7 - LED, 0=active */ @@ -2405,6 +2406,18 @@ struct em28xx_board em28xx_boards[] = { .ir_codes = RC_MAP_HAUPPAUGE, .leds = hauppauge_dualhd_leds, }, + /* eb1a:51b2 Sundtek MediaTV Digital Home + * Empia EM2874B + Micronas DRX 3913KA2 + NXP TDA18271HDC2 */ + [EM2874_BOARD_SUNDTEK_MEDIATV_DIGITAL_HOME] = { + .name = "Sundtek MediaTV Digital Home", + .tuner_type = TUNER_ABSENT, + .tuner_gpio = maxmedia_ub425_tc, + .has_dvb = 1, + .ir_codes = RC_MAP_REDDO, + .def_i2c_bus = 1, + .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | + EM28XX_I2C_FREQ_400_KHZ, + }, }; EXPORT_SYMBOL_GPL(em28xx_boards); @@ -2602,6 +2615,8 @@ struct usb_device_id em28xx_id_table[] = { .driver_info = EM28178_BOARD_PLEX_PX_BCUD }, { USB_DEVICE(0xeb1a, 0x5051), /* Ion Video 2 PC MKII / Startech svid2usb23 / Raygo R12-41373 */ .driver_info = EM2860_BOARD_TVP5150_REFERENCE_DESIGN }, + { USB_DEVICE(0xeb1a, 0x51b2), + .driver_info = EM2874_BOARD_SUNDTEK_MEDIATV_DIGITAL_HOME }, { }, }; MODULE_DEVICE_TABLE(usb, em28xx_id_table); diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c index 82edd37..e7fa25d 100644 --- a/drivers/media/usb/em28xx/em28xx-dvb.c +++ b/drivers/media/usb/em28xx/em28xx-dvb.c @@ -1482,6 +1482,7 @@ static int em28xx_dvb_init(struct em28xx *dev) break; } case EM2874_BOARD_DELOCK_61959: + case EM2874_BOARD_SUNDTEK_MEDIATV_DIGITAL_HOME: case EM2874_BOARD_MAXMEDIA_UB425_TC: /* attach demodulator */ dvb->fe[0] = dvb_attach(drxk_attach, &maxmedia_ub425_tc_drxk, diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h index e8d97d5..226c2b6 100644 --- a/drivers/media/usb/em28xx/em28xx.h +++ b/drivers/media/usb/em28xx/em28xx.h @@ -148,6 +148,7 @@ #define EM28178_BOARD_PLEX_PX_BCUD 98 #define EM28174_BOARD_HAUPPAUGE_WINTV_DUALHD_DVB 99 #define EM28174_BOARD_HAUPPAUGE_WINTV_DUALHD_01595 100 +#define EM2874_BOARD_SUNDTEK_MEDIATV_DIGITAL_HOME 101 /* Limits minimum and default number of buffers */ #define EM28XX_MIN_BUF 4