Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp863400rwb; Sat, 14 Jan 2023 09:38:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXtSwRt+fWzZGoP600eq3Z6aC2NwyCoOENYXbLFAevkpYueLxLEjkSdV+8sE9xEHUMxXLR4b X-Received: by 2002:a50:cc4c:0:b0:479:8313:2fdd with SMTP id n12-20020a50cc4c000000b0047983132fddmr76801095edi.10.1673717887707; Sat, 14 Jan 2023 09:38:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673717887; cv=none; d=google.com; s=arc-20160816; b=tWtUv0UtOEVxGqOArEy2XoYzoe/PMcVUWIU/G5wyL1ZepOMDwhdcumMkjbJCIl7rtq UwmYfV6CcgC879jMexPB3RBrAszdFvQ25r0p/rTH3wlPNGsreb73eSKTiSij311oe0AN ismGweJMoSw6xNc3cR1ri9xD4qSSd0YGcZLfdOPT80BrVjKviC/nzI8/haDHVc24KRM4 RQikgbqfpMsJjrWizD9u10BsX2G8dZG/c0sCzpRKBDRBY42JPxuOtqyb/CLePFMSZFVm R0LpSGS1U9EO281BtRYv8ijhQuHG9PVbfnWkpgYXUcKWwLbIEe8hbF+w2IOggseWEsTG 9pIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wvT1/OdMM4+rEzEOB0JuM2b020XNZn1mClLzRA81HE8=; b=Wn7i/YcotsuI/ytUAdgDREOekzTf8dljj54FWHfk1eg0M4OJqVrAsyRBR17jLwBrtE ZxmS9eJSB9QWnz/H810AMl+iZ8YUI7dvYhGTCWy/P7gzqtcysJZju1wI3mlS4ZIcdUbK AXrua0Z2SpxFehUjcgLBSJvVQn4UrO2X8P5CfB3xNaNcUBZYzI0MExfS3to09ctHaqZV 14iWDn8mhIlWIo+mFTGN7I5ZNJt3DW40Xb0ZYsPb6FJdQmvUps1PQ2Ixuj5X974/jiT1 Ey9QDcLjG2pL76slkTZfY5L/lRHcw4E6WhTeH4An78TXX/eVPXIMKg5wcsAI6N/qPZMQ hx4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z94GKYZZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb7-20020a0564020d0700b004859d0f61e0si30567340edb.380.2023.01.14.09.37.53; Sat, 14 Jan 2023 09:38:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z94GKYZZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229918AbjANRZt (ORCPT + 52 others); Sat, 14 Jan 2023 12:25:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjANRZq (ORCPT ); Sat, 14 Jan 2023 12:25:46 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A03983CD; Sat, 14 Jan 2023 09:25:45 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EF91CB808D2; Sat, 14 Jan 2023 17:25:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9958C433D2; Sat, 14 Jan 2023 17:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673717142; bh=51ViAOYwT+L18PsoAipKMhxe8CCSN6yffy7zR6YFLdI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z94GKYZZWFNbKNROFJv54fKg5nMm4P0X2aQga1SmffqBJEBxJTDrM2s2BlXcuquWh N5Zc40MvepK5NQ15bYUb3YIMn+TyjTj2sOg/Tg45+1ZR4NjVsWzRpHNOu27zIg22n7 8MKhUOjwZMxnru7P8PE3buFtMY2lQVxYx0WI+jslfjxCx342/icq5RqGuvbJw4vhe4 wVy6hywOAyo8gnIo6YJ61OwId/WWlMPlYCvgeVkiFmMBPZg7fdw9Nq+Dgp8fNeJWef p1dKQS1Hz2obK1Alf8POl6dwk6q7N8aBLkY2RI+UWUBWQLuYytVfzN/vUMK+WQbP6s ESVfigIGzqAFA== Date: Sat, 14 Jan 2023 17:25:48 +0000 From: Mark Brown To: Jarrah Gosbell Cc: Oder Chiou , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Ondrej Jirman Subject: Re: [PATCH] ASoC: codec: rt5640: Resolve failure to set DMIC clock after playback Message-ID: References: <20230114003053.401274-1-kernel@undef.tools> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1RYbj7oVxAjXTigi" Content-Disposition: inline In-Reply-To: <20230114003053.401274-1-kernel@undef.tools> X-Cookie: TANSTAAFL X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1RYbj7oVxAjXTigi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Jan 14, 2023 at 12:30:54AM +0000, Jarrah Gosbell wrote: > rt5640_set_dai_sysclk is called with freq == 0 when playback stops. This > causes DMIC setup code to fail. I2S interface doesn't need to be active > for codec to work, so don't clear rt5640->sysclk after > rt5640_set_dai_sysclk is called with freq == 0. The goal with set_sysclk() is to record the current clock frequency, if the clock is stopped it should be set to zero. If a machine driver is setting the input clock to zero when it's still being provided then it should be fixed. If the device doesn't need a clock for DMIC (which seems dubious) then whatever is checking for a clock should be fixed. --1RYbj7oVxAjXTigi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmPC5ZsACgkQJNaLcl1U h9AQHgf/XaEEjF+BLM6Pnh3lYFsdSIlU+KtG76/OC9GzqxX1yVhlp5T1weE8tfSM nyVWqN20RA2TvVL9npXjB7xlRcsCONSUHg4h9SCDk08p5HT1bL9NtdgtqgMxwDPe 3Q70V5aD8vrF7QtdNLQe7wX/ub/yY7E6F3Nu3mlvdyzFjxekCnp5BcdCNMxQYlP2 cJdDWsO2vdc1tZrN4oFHWrtxoGEi5frIJLPkttaflVt4JV7g/07KpAP3qJ5KCQyY xItHWBAkhrbaLarnjJMfo9oKlu1U69QR3OFClWpmDYhzReAmtqby9phny8VWOpxT m1YFxkULKef8d8F4IZDrS72uQ57q9g== =tHmS -----END PGP SIGNATURE----- --1RYbj7oVxAjXTigi--