From patchwork Wed Apr 19 23:13:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devin Heitmueller X-Patchwork-Id: 9689199 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 B5DFA602DC for ; Wed, 19 Apr 2017 23:14:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A85B32582C for ; Wed, 19 Apr 2017 23:14:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D83628437; Wed, 19 Apr 2017 23:14:49 +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 20DB52582C for ; Wed, 19 Apr 2017 23:14:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940346AbdDSXOr (ORCPT ); Wed, 19 Apr 2017 19:14:47 -0400 Received: from mail-qt0-f175.google.com ([209.85.216.175]:33959 "EHLO mail-qt0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S940341AbdDSXOl (ORCPT ); Wed, 19 Apr 2017 19:14:41 -0400 Received: by mail-qt0-f175.google.com with SMTP id c45so32513385qtb.1 for ; Wed, 19 Apr 2017 16:14:35 -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=uKCMoj77Vzi8zHQY/wNEh9LV73G1uO5SpTg+cSJM1Ek=; b=FxvrJO4s5IIPv3LKg64IeSto+Megi33tjxCZqlmtKV88qWn8bgMGCPcT6yYZ86Djkd 45HVKPf+GEbtVeetSB46D2V8BuyNYap+fvx3ifK7gQqCqs6uBz82h85VoBSmJwVj57kG cb2cXQ+1V2fTbtRVki6KBulfrLDGT9kC2P8f5W8TFGCHzSc8QquCRct8bOncuCKx/2Dh N263i/224mPqALLcm0m0Q3WkvWDM8lGj13bJVOjVMsQwMJQf0e43Et7SaYov33/FmDRD 1g/ys1denG4eVuHOA0J640BfBB9i6nlP+BJxfswsgsPkQV768LApPtCosAKYkL5v75U2 HCsg== 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=uKCMoj77Vzi8zHQY/wNEh9LV73G1uO5SpTg+cSJM1Ek=; b=B/AjQUTq7Er13FuK3G0bEJHfhdABYNl8Sd9pl3Pkbzq4iZqxmFO8gTax1xavuDhvcM 1JcAxN4ikNSfCjMbzVL62H7um1bmNWK141cIGP4jKm3LThc+lgjlhn+MLNmxrocJU1BH w2YFb2CqVa1K2Yu+7o3JyeZTYP+FdGK1KWknLoftJAjYVyuJ+D2fp95I4DKDTHxwXz+2 8ROHeeprzekaHXyvt/g1x+RlxvvSHXX74wuhjZVvzxej2OiFoQ/gnteKakvKkz6KMwUx T7XzWEFx1SH+of0Y41PnuiaA74pdfMnDxhfkEFXVp9HZ6bLGUJvNa+Kz5UvJwwCJlXIh dZ4A== X-Gm-Message-State: AN3rC/7FPciT+lwHT6ZCxJJ8nQz70Fl+opEWT5KFPW9k3oxggIOQ7yHG ErfWjjqlEZOluYZN3xw= X-Received: by 10.200.3.216 with SMTP id z24mr5796601qtg.124.1492643675219; Wed, 19 Apr 2017 16:14:35 -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.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Apr 2017 16:14:34 -0700 (PDT) From: Devin Heitmueller To: linux-media@vger.kernel.org Cc: Devin Heitmueller Subject: [PATCH 10/12] au8522: Set the initial modulation Date: Wed, 19 Apr 2017 19:13:53 -0400 Message-Id: <1492643635-30823-11-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 We need to set the initial modulation on driver setup, or else any calls to GET_FRONTEND prior to the first SET_FRONTEND call will get back garbage. Signed-off-by: Devin Heitmueller --- drivers/media/dvb-frontends/au8522_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/dvb-frontends/au8522_common.c b/drivers/media/dvb-frontends/au8522_common.c index cf4ac24..6722838 100644 --- a/drivers/media/dvb-frontends/au8522_common.c +++ b/drivers/media/dvb-frontends/au8522_common.c @@ -234,6 +234,7 @@ int au8522_init(struct dvb_frontend *fe) chip, so that when it gets powered back up it won't think that it is already tuned */ state->current_frequency = 0; + state->current_modulation = VSB_8; au8522_writereg(state, 0xa4, 1 << 5);