Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1654537ybh; Thu, 16 Jul 2020 19:28:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6QlBL73BGn/ikb983YACB7+fj9ONZzYusbpTL7BoAVWqZWmRkSq0WivNPqLQO7KZOweMy X-Received: by 2002:a17:906:6b0c:: with SMTP id q12mr6895112ejr.525.1594952939533; Thu, 16 Jul 2020 19:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594952939; cv=none; d=google.com; s=arc-20160816; b=Ro0kHYNnoA//Hzsa9pGsVXPD6X9+5LIcb1hdpUMfRH7BE377k6nxyAvDw5Z32sofGk Ne1PUtm4YC+x8SvliVTBIkPgyhXewLtgZQnW9c0V6O2VfhS1SdBjtQJ+8QburvbiDUut TwHBaLgzdQm0JwFWOGW6uL0oIUIsogZRkYv+z+34X/yjdSow12BtI90Xb8Fww5rTKYhh 0Jgg4OMxl6cNHoniqV4nBTVV0T/lGa7NziMiy6FXu+gKkbrylwUI9ixEoYnkXatfty6n sA8qYv548m/5wyx2/AdWmUTkmVEVE1MTLdyRUs5oIEe3GM232ndsfrSFBMkZVKXi9vj5 ImjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EwKnezkZmfj9xSK2I7Np/Cq9fStgMNgGCEPRKMrkZgg=; b=DjTqkzfckl86+69Et61HjpAmQAjv6goWbWdKBEcQiywTia2OMb3YHCJxMJqeSMMjES vg5hF30Nh9P21Kgn9rG0rgvzylzW5eEfqE7jMf7y1fdvl+Y3v+8Cf3xAbL3CBOBVtHuZ hz0xXJDsgFYrGPgv0GrhrvbLiph7FhbeBmLhK6E5WXbES7QSg9LZ7OwBDu5Vq/WW1+H/ XGROHepaeZP3dowkDqHFkUwn+bDxPdtIu/D8c9r8B5V0RSKb+eCOBAVUhLyvFcUimdsi ONKlLee3+FWA7ykKU/7MGH/oBCMFtcDCQ+JkvkGNSNud2blnA4aZbj96X+5Rpyaml8Tv iVBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="pK0YzL/+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si4703943ejd.51.2020.07.16.19.28.35; Thu, 16 Jul 2020 19:28:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="pK0YzL/+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726250AbgGQC2E (ORCPT + 99 others); Thu, 16 Jul 2020 22:28:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbgGQC2D (ORCPT ); Thu, 16 Jul 2020 22:28:03 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA78CC061755 for ; Thu, 16 Jul 2020 19:28:03 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id y2so8800592ioy.3 for ; Thu, 16 Jul 2020 19:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EwKnezkZmfj9xSK2I7Np/Cq9fStgMNgGCEPRKMrkZgg=; b=pK0YzL/+VoEc9RbtIE4MAdPH6e/eRtYLdOsJ17ftSBoq+EC7O8ZhuWfsLPHDHrum2c 5+/6iKaTc+7nr4WpOApibTRbkHGe67pbIy8Wr8MnLqmdzldYIWQ562489SNqWGEXg9sY 9PKj0RH4KB0YBotDm5jyoBdsmTFucgtBrylogM0a6D0j4aN2ELWDR6ifYCaz2NAkIzc9 bGCLyqe7OTJWxYM1QZfHDFZ7dMasGvjiROrF1ROv4JeULqBTb+YNS4XkUsgX3Sk8oF6+ dcja/vjVwcoPV2z1wGuwyo0FqBycG2HWV16BSgJIobQhXbSgx7diq1588VJuQ/8AFOcO yIoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EwKnezkZmfj9xSK2I7Np/Cq9fStgMNgGCEPRKMrkZgg=; b=a69JRuG76WmXxCncTkUPicvl0HB6mga/dhq2REZmAPOr7gW0WC9dY9h2aI7BvztxS9 LKxel+xkmFSVQ+qqJfrdFUrqWKZIFJlAnKWD39lz/02XlGuwO5xyKrQSBnPpmvDJqU3I ravONPPn1RjZenJNP6xO7eFFMLs5ZLPymN5gPM91zPErBi7l5LXHqS3pc5WtOcqeoeQM 44tu9w5NtfsKxK95CTma0/E+cJzBU+rjv/Gu5ozxrPT2m09PTE8W6VgTQfZKRLDc8Um5 kaxjBt+k/4HnbKj72IUMM6nrT1O9Qc1rPuKMHRv0N4M9sWZdbmFUcpq9u08PbcguuiRI YwPg== X-Gm-Message-State: AOAM5318tlrxsz3UNXmuxqt5KcRPBmLbqBWXghkifFHfPmT0JDy8TBnT z3VKmBRKPouZerzal4sleSf6oY/ZoPM6A/JfNVenEg== X-Received: by 2002:a6b:d301:: with SMTP id s1mr7361674iob.146.1594952882572; Thu, 16 Jul 2020 19:28:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tzung-Bi Shih Date: Fri, 17 Jul 2020 10:27:51 +0800 Message-ID: Subject: Re: Speaker pops with max98357a on rk3399-gru-kevin since v5.7 To: Alper Nebi Yasak Cc: Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner , ALSA development , Linux Kernel Mailing List , linux-rockchip@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 16, 2020 at 7:49 PM Alper Nebi Yasak wrote: > I have been getting "pop" sounds from the speaker on my rk3399-gru-kevin > for a while, and bisected it to 128f825aeab7 ("ASoC: max98357a: move > control of SD_MODE to DAPM"), but looks like the pops were somewhat > expected: I am not convinced the pop comes from 128f825aeab7. > As of v5.8-rc5 I'm still getting the speaker pops. More info below, but > not all pops coincide with "set sdmode" messages, and vice versa. > Reverting that commit stops the pops, but then the "Speakers Switch" can > no longer mute the speakers. (I don't have a rk3399-gru-kevin so I got another test machine with MAX98357A.) (I was testing with and without an audio server.) Observations: - I can hear the pop either with or without 128f825aeab7 (with and without sdmode-delay). - The pop noise is not always. Higher probability after stopping playback than before starting. - As you also mentioned, the pop noise is not directly related to SD_MODE transition.