From patchwork Sun Nov 5 14:25:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schwarzott X-Patchwork-Id: 45332 Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBLrY-000262-EG; Sun, 05 Nov 2017 14:25:24 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751139AbdKEOZV (ORCPT + 1 other); Sun, 5 Nov 2017 09:25:21 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:44660 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751097AbdKEOZU (ORCPT ); Sun, 5 Nov 2017 09:25:20 -0500 Received: from gauss.fritz.box (unknown [IPv6:2001:a62:2d3:2e01:553e:3623:3ead:cddd]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zzam) by smtp.gentoo.org (Postfix) with ESMTPSA id A658B33FE49; Sun, 5 Nov 2017 14:25:19 +0000 (UTC) From: Matthias Schwarzott To: mchehab@kernel.org, linux-media@vger.kernel.org Cc: Matthias Schwarzott Subject: [PATCH 05/15] si2165: move ts parallel mode setting to the ts init code Date: Sun, 5 Nov 2017 15:25:01 +0100 Message-Id: <20171105142511.16563-5-zzam@gentoo.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171105142511.16563-1-zzam@gentoo.org> References: <20171105142511.16563-1-zzam@gentoo.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The TS parallel mode setting should be where all other TS settings are written. Signed-off-by: Matthias Schwarzott --- drivers/media/dvb-frontends/si2165.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/si2165.c b/drivers/media/dvb-frontends/si2165.c index 0f5325798bd2..b2541c1fe554 100644 --- a/drivers/media/dvb-frontends/si2165.c +++ b/drivers/media/dvb-frontends/si2165.c @@ -621,6 +621,9 @@ static int si2165_init(struct dvb_frontend *fe) if (ret < 0) return ret; ret = si2165_writereg8(state, REG_TS_CLK_MODE, 0x01); + if (ret < 0) + return ret; + ret = si2165_writereg8(state, REG_TS_PARALLEL_MODE, 0x00); if (ret < 0) return ret; @@ -723,7 +726,6 @@ static int si2165_set_if_freq_shift(struct si2165_state *state) static const struct si2165_reg_value_pair dvbt_regs[] = { /* standard = DVB-T */ { REG_DVB_STANDARD, 0x01 }, - { REG_TS_PARALLEL_MODE, 0x00 }, /* impulsive_noise_remover */ { REG_IMPULSIVE_NOISE_REM, 0x01 }, { REG_AUTO_RESET, 0x00 }, @@ -786,7 +788,6 @@ static int si2165_set_frontend_dvbt(struct dvb_frontend *fe) static const struct si2165_reg_value_pair dvbc_regs[] = { /* standard = DVB-C */ { REG_DVB_STANDARD, 0x05 }, - { REG_TS_PARALLEL_MODE, 0x00 }, /* agc2 */ { REG_AGC2_MIN, 0x50 },