From patchwork Thu May 4 22:21:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Hollstegge X-Patchwork-Id: 9712833 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 2B7E360235 for ; Thu, 4 May 2017 22:21:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 135C828694 for ; Thu, 4 May 2017 22:21:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05D30286A8; Thu, 4 May 2017 22:21:42 +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 D335028694 for ; Thu, 4 May 2017 22:21:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751560AbdEDWVj (ORCPT ); Thu, 4 May 2017 18:21:39 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33597 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473AbdEDWVj (ORCPT ); Thu, 4 May 2017 18:21:39 -0400 Received: by mail-wm0-f65.google.com with SMTP id y10so6278658wmh.0 for ; Thu, 04 May 2017 15:21:38 -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:mime-version:content-disposition :user-agent; bh=5S1qS0dpzMqMQKmyjULyI8n9mq72O8kFkEuIMEhL4Tw=; b=QWxPBzon4bDCklnsDGOPhEy/M3fiGpLUOuG9Vq07p+W57RGOtmjFll0doerR1yjTvR nr7UEqjMDq8cMzeFarGGiiY6eVPJvyjbrohaaC4nGchoWl5WBt8ILzCqTUqfOWDpBcLU YLq7okVBBmFifYv+SjKStrZrHFUl1nO28aPxqOunzJDnsUHd7jVoH5FqilzGqQNQtlrt C2cpTfKkcXlrjqNbXkhOpgqxvbWhdApF3hUQDtttNxTS0iKBbPNf90EQt/a9oyTXn08m CVmeyllyOXitMSgsmPt7OYGuk9CEPxXS2aW6/y9FOqyH7rqVswc7zwCc9Ob6MPM8zp7u yVEg== 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:mime-version :content-disposition:user-agent; bh=5S1qS0dpzMqMQKmyjULyI8n9mq72O8kFkEuIMEhL4Tw=; b=jS1dvuxWqduxKe1HdXL0Y49vubYd3yV62TmsqU9gC8SV/jDpZo0JJz7Iub92IJNzA/ cJs8SyZdq/WZQ8Uxr/ZX0BLf4UOBhaq/0cufUJw412lqpgXHYyNSaIvfXor68BjpCm8P 3WRMnrnGiDr5171kKl2wcycNddXAOiC9rFd+Ws1OH0lfXvkH5M7ZDIfOAOma1+OaSVSH 5WIzo2uqpsKFC7SqUMUORnynV7YIANyT6jLnuWH+wSg8PvlfxWnFJ9cz5pM0FGkdlck2 zQFSgVxD9GB9Am7i/rY8PjoMYIGsOjpWq7XPUcXbJ58aqiEDPwWcMz+tEHsJ78YioO0s yKWA== X-Gm-Message-State: AODbwcBj7G1hvAQ1O77Pg52FK0NrRblBy4PowxPN3imFg/i92P88biav KEPBFKx1rwsuWg== X-Received: by 10.28.153.11 with SMTP id b11mr3442152wme.141.1493936497571; Thu, 04 May 2017 15:21:37 -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 q19sm3298544wmd.1.2017.05.04.15.21.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 15:21:36 -0700 (PDT) Date: Fri, 5 May 2017 00:21:35 +0200 From: Thomas Hollstegge To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Subject: [PATCH] [media] em28xx: support for Sundtek MediaTV Digital Home Message-ID: <20170504222115.GA26659@googlemail.com> 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 --- 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 5f90d08..4effbda 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); @@ -2600,6 +2613,8 @@ struct usb_device_id em28xx_id_table[] = { .driver_info = EM28178_BOARD_TERRATEC_T2_STICK_HD }, { USB_DEVICE(0x3275, 0x0085), .driver_info = EM28178_BOARD_PLEX_PX_BCUD }, + { 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 e9f3799..72f1468 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