Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp788567rwb; Thu, 15 Dec 2022 02:24:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf43lr2g688XwebQmfcEDbm6Ga/VFLluW+7UHtsfgyZwpZElG3RIJaVTRvovAYTRMm98nMgB X-Received: by 2002:a17:902:64d6:b0:189:8412:7dd1 with SMTP id y22-20020a17090264d600b0018984127dd1mr25404618pli.61.1671099874781; Thu, 15 Dec 2022 02:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671099874; cv=none; d=google.com; s=arc-20160816; b=DyYgu6v1Z5e1CxXKcSZpBsM0Lyk3xuwyzC7PROPwKibApMXBVe+KJ6y46AULf6/cnU f2rTKJ0qPXnFufOsgH6boGDndu95peWrvA1KO5iNlQVnoDUTITMboyW+QGK/r6p/NQzn 73Rf6NjyNWZ34Yxgy9Pbaritjz43bbmudz62thtp/HkFG0pXvfVPRoMZgHxeGc6qOyjj XpJhhUD8rpBvH4A6kUHuwla6ctkQn961zSIC3Y2dE0fwLPQPitAy+yLeOEQ4P6KoFRTN /ZQCQVkLTVBlQirsdK691OY3lCJFEcLWhk11r7G5OjrqrHB+4GULu8QxCh8gRAWVS22p 2IDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+TFoeT/qz3gP02y/9MBhPwnZ/wH75XujxSyqwQzDwP8=; b=j7cGfindZYN2ItX1bBYumW7Y49oQXMszJEITvemc2SfdUozCRBi+hSxoNCZ7DWZWMI SuhE0PIqiDKD3zwsex+9SnMoiO5q7umU3BDLpwEawp0S3yqaBfi/+YFqaI39R9P1Sl9/ aQmMsGC5vRYGIUQ82dabil4ukN2OGXwxY4djVD2ItL8ThNhbTtSV9ty48WxDdctgi0Fu tezrsCu1xVtClsFZwWwZwEwNKqVPjIsRU8x7VgNqprE7pt+ADOkyC4EQawZ+J3S54UZL pR/H2nT8/d9lhAoDA+dJ4WXQXyK1JvVtgON+HU1rJ0PS6LcNMDdmB7N6unJ7YKJyoUXv w4Fw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a170903234c00b0017a0f71990dsi6259896plh.141.2022.12.15.02.24.26; Thu, 15 Dec 2022 02:24:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbiLOJSG (ORCPT + 68 others); Thu, 15 Dec 2022 04:18:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbiLOJSE (ORCPT ); Thu, 15 Dec 2022 04:18:04 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC2754732C for ; Thu, 15 Dec 2022 01:18:02 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5kNA-0007jH-PM; Thu, 15 Dec 2022 10:17:48 +0100 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1p5kN9-0001pe-Jb; Thu, 15 Dec 2022 10:17:47 +0100 Date: Thu, 15 Dec 2022 10:17:47 +0100 From: Marco Felsch To: Mark Brown Cc: Rouven Czerwinski , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , kernel@pengutronix.de, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] ASoC: max98088: fix initial dai mute state Message-ID: <20221215091747.xn3f7ecrwoc7ssyo@pengutronix.de> References: <20221213095328.122309-1-r.czerwinski@pengutronix.de> <20221213095328.122309-2-r.czerwinski@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 Hi Mark, On 22-12-13, Mark Brown wrote: > On Tue, Dec 13, 2022 at 10:53:28AM +0100, Rouven Czerwinski wrote: > > > To fix that we need to explicit set the mute state. Now the first > > playback request gets played correctly. > > > +++ b/sound/soc/codecs/max98088.c > > @@ -1710,6 +1710,11 @@ static int max98088_probe(struct snd_soc_component *component) > > snd_soc_component_write(component, M98088_REG_1E_DAI2_IOCFG, > > M98088_S2NORMAL|M98088_SDATA); > > > > + snd_soc_component_update_bits(component, M98088_REG_2F_LVL_DAI1_PLAY, > > + M98088_DAI_MUTE_MASK, M98088_DAI_MUTE); > > + snd_soc_component_update_bits(component, M98088_REG_31_LVL_DAI2_PLAY, > > + M98088_DAI_MUTE_MASK, M98088_DAI_MUTE); > > + > > Won't this be broken again after suspend? The device gets powered off > over suspend, then when it powers on again with the output unmuted > nothing will do another write since the register is already in the state > in the cache. I didn't found any suspend logic within the driver. Is this handled within the ASoC core? Regards, Marco