From patchwork Wed Apr 19 23:13:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devin Heitmueller X-Patchwork-Id: 9689179 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 F1FC060326 for ; Wed, 19 Apr 2017 23:14:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E438B2582C for ; Wed, 19 Apr 2017 23:14:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7B2A28437; Wed, 19 Apr 2017 23:14:24 +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.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, 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 3CE5C2582C for ; Wed, 19 Apr 2017 23:14:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940325AbdDSXOW (ORCPT ); Wed, 19 Apr 2017 19:14:22 -0400 Received: from mail-qt0-f180.google.com ([209.85.216.180]:33894 "EHLO mail-qt0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937980AbdDSXOV (ORCPT ); Wed, 19 Apr 2017 19:14:21 -0400 Received: by mail-qt0-f180.google.com with SMTP id c45so32510518qtb.1 for ; Wed, 19 Apr 2017 16:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernellabs-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vAYK8LHcl+w25yj4SogeUsFonCVAM3J4jhKOE7y+pPg=; b=wOonJVGXjYp+qXosxqSDGsKvSwRIImDqW7OpwNqfdQwFRqZiCBQzwbaoHmsRhr+E29 T6rj03BhcmNQEYgKmqZfohujI2Oc/sSRkNePLEuZt1HyooYVCgn1hy0FfEVZwI4qz5pi yk4rYQoSiEkb+XgiOPDWS/vMNYtJRSEEEqIDowy45y+HxilMW6ctwS9KO/NFrxqmsX9P 9QRd/OU+vTts2hTA8FkH/AJLAfRFoinFueRXydH4IYyGwyUHXGfzyyjmrDI9P8pH+jnL D2cuaf8cX4WAj0r00X0Qnoelcv494gU9vlaiyFwwQBG6gNh6ECtdCsAKFl6fuKFOaR4W rRRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vAYK8LHcl+w25yj4SogeUsFonCVAM3J4jhKOE7y+pPg=; b=Y1uxy7iYDGD+wyiHD/x4wC0Ix9EaT6z+JlZjAebflOaSptarGXIbNfJuZY56ft96B2 gWFGmqfACTdHChObGibzxmIOjZBZcEv5l+2ql0XnJfXLq9w9M52baWAdvi1UmboiQT8U POLPUtkXTLx91JeIg4qqnyt2+w2z0cgfkqsygyCHdphBJcWwxO7hwK9BnsWi27KlF9K1 RSuEQFZ2QYwp/4zzDdB9MUATlbi32f7d8XkXog38uv5b8fsFdIJzp/En1ozA/2pUhz9Z hKDf32tBrO8Pg6oJFSvs5MNcBMxarNqr7KDoEM4xtwQlrb4bfV+sWTGsekNVr7cH4b/H DH9w== X-Gm-Message-State: AN3rC/5GGZAJ4DGlC2pwhjgu41UUqYDiSyhkPM6zfpCueVsjDnf8dBkt AGAH8ld/lQs5hii2SOc= X-Received: by 10.200.47.2 with SMTP id j2mr4994848qta.277.1492643660395; Wed, 19 Apr 2017 16:14:20 -0700 (PDT) Received: from localhost.localdomain (cpe-74-71-114-159.nyc.res.rr.com. [74.71.114.159]) by smtp.gmail.com with ESMTPSA id 123sm2951916qkm.22.2017.04.19.16.14.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Apr 2017 16:14:19 -0700 (PDT) From: Devin Heitmueller To: linux-media@vger.kernel.org Cc: Devin Heitmueller Subject: [PATCH 01/12] au8522: don't attempt to configure unsupported VBI slicer Date: Wed, 19 Apr 2017 19:13:44 -0400 Message-Id: <1492643635-30823-2-git-send-email-dheitmueller@kernellabs.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1492643635-30823-1-git-send-email-dheitmueller@kernellabs.com> References: <1492643635-30823-1-git-send-email-dheitmueller@kernellabs.com> 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 Since we don't suppoort sliced VBI with the au0828/au8522, there is no need to configure the au8522 VBI slicer, which because of the coefficients requires a large amount of i2c traffic. Remove the relevant code. Note that this has no effect on raw VBI support, which is currently the only supported way to access VBI on this device. Signed-off-by: Devin Heitmueller --- drivers/media/dvb-frontends/au8522_decoder.c | 38 ---------------------------- 1 file changed, 38 deletions(-) diff --git a/drivers/media/dvb-frontends/au8522_decoder.c b/drivers/media/dvb-frontends/au8522_decoder.c index a2e7713..12a5c2c 100644 --- a/drivers/media/dvb-frontends/au8522_decoder.c +++ b/drivers/media/dvb-frontends/au8522_decoder.c @@ -179,42 +179,6 @@ static inline struct au8522_state *to_state(struct v4l2_subdev *sd) return container_of(sd, struct au8522_state, sd); } -static void setup_vbi(struct au8522_state *state, int aud_input) -{ - int i; - - /* These are set to zero regardless of what mode we're in */ - au8522_writereg(state, AU8522_TVDEC_VBI_CTRL_H_REG017H, 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_CTRL_L_REG018H, 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_TOTAL_BITS_REG019H, 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_TUNIT_H_REG01AH, 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_TUNIT_L_REG01BH, 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_THRESH1_REG01CH, 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_PAT2_REG01EH, 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_PAT1_REG01FH, 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_PAT0_REG020H, 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_MASK2_REG021H, - 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_MASK1_REG022H, - 0x00); - au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_MASK0_REG023H, - 0x00); - - /* Setup the VBI registers */ - for (i = 0x30; i < 0x60; i++) - au8522_writereg(state, i, 0x40); - - /* For some reason, every register is 0x40 except register 0x44 - (confirmed via the HVR-950q USB capture) */ - au8522_writereg(state, 0x44, 0x60); - - /* Enable VBI (we always do this regardless of whether the user is - viewing closed caption info) */ - au8522_writereg(state, AU8522_TVDEC_VBI_CTRL_H_REG017H, - AU8522_TVDEC_VBI_CTRL_H_REG017H_CCON); - -} - static void setup_decoder_defaults(struct au8522_state *state, bool is_svideo) { int i; @@ -317,8 +281,6 @@ static void setup_decoder_defaults(struct au8522_state *state, bool is_svideo) AU8522_TOREGAAGC_REG0E5H_CVBS); au8522_writereg(state, AU8522_REG016H, AU8522_REG016H_CVBS); - setup_vbi(state, 0); - if (is_svideo) { /* Despite what the table says, for the HVR-950q we still need to be in CVBS mode for the S-Video input (reason unknown). */