Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1155501pxb; Tue, 17 Aug 2021 05:17:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLjL3IKOKpdW7hI7yXj5Ef012QvYl2iXbIxZUZNpzqt75XpItnOzb0HSqmwSQH7CmhR8bI X-Received: by 2002:a05:6e02:1cab:: with SMTP id x11mr2161207ill.235.1629202675292; Tue, 17 Aug 2021 05:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629202675; cv=none; d=google.com; s=arc-20160816; b=K+03IsV8Ac2WoL9IDZAOVUDk5U0SuUOzMahlrk0CjNrQX1sN7Ztf64vg1KMJNQpG9B xK/Awl8/YFVkHr9YHDmFvMsykecRNWgv9BAje10JkjnsVhw7CiKQSxdwTuZRvKZ2LmGz BSRmocu7t+DQzp1iQdw2l4JQ5DnrOeTHf/Djpf0FI6Oh7KLRLS0PsATs+s1bPI7TiSf9 ycBBrlgzgqQE1NNZvjxh+JRKk7kA+sJVLodG1Ch4JchLT73o4AzAAF06cGICoDaIEyLQ 8O+Yd7KMarsirogHUzflvapuoPDHNBzfTnpC2FzGkQVF15DIvh+hNINH1bUUz2SkorVI petQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=G/2HJak15dflWaTGZnj+3NYKbo9ai98dsxV58b8Kg8A=; b=JXdDEKGKmgnWlhb6JA+16/2l3Kx4tZnF5HtTgFLEA6Apgs0a65lb1GfByD+pXhCJVI 1XKN5zQmLZGwoxw/zU4OFPuFgZWjWhplDFQbshocICP0ww8XUmRAZhv6Of5URUMRxVux T21JLZLh7ihJouBgmnK9oLTbYR2KNBopaZQoPHfyq6cUfFyb450UjKcUskfb/40gVIQd 1J9zwgmAHX2tji5/phfFWkdUYR8sdbmc41c1bxjhedrFE4iu3zomNFQMw/ZaMZIUZyAM l4vv0ETGJkll1IwlrhsLYa3RqWDSAMMU4oP320JVN+5dgsGJ35kihMZgPxZ6T0OKJs8H nKXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=f1rIsMSo; dkim=neutral (no key) header.i=@suse.de; 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=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m2si2294541ili.39.2021.08.17.05.17.43; Tue, 17 Aug 2021 05:17:55 -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=@suse.de header.s=susede2_rsa header.b=f1rIsMSo; dkim=neutral (no key) header.i=@suse.de; 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=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239784AbhHQMR2 (ORCPT + 99 others); Tue, 17 Aug 2021 08:17:28 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:44274 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237338AbhHQMR1 (ORCPT ); Tue, 17 Aug 2021 08:17:27 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 90E451FF39; Tue, 17 Aug 2021 12:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1629202613; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=G/2HJak15dflWaTGZnj+3NYKbo9ai98dsxV58b8Kg8A=; b=f1rIsMSoGUbYEBklA+eWNyWT9bIMvt3ExR7DC9IqcE5ZOwExUFiqNZVIrHQN5uBdxkb/Q0 iBvo7vjSa7EP9g9rnFk2iohWAO2wxAuwW0ADuRfjru0GiToy4Lq7gQAC1VS1YpIKLPs6s0 Frd/Y9WKqt4aZGlrPAZO6D2sp29OBPM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1629202613; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=G/2HJak15dflWaTGZnj+3NYKbo9ai98dsxV58b8Kg8A=; b=Gon1bCwyVfHouaQAm+/4ST2Yzyarl8TL9XVJoJ9VfmdOwqG3gygu1pTYJNTrQfeCffxGGa CiuVcEB4tcedqsBQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 7A8B0A3B99; Tue, 17 Aug 2021 12:16:53 +0000 (UTC) Date: Tue, 17 Aug 2021 14:16:53 +0200 Message-ID: From: Takashi Iwai To: Vitaly Rodionov Cc: Jaroslav Kysela , Takashi Iwai , , , , Stefan Binding Subject: Re: [PATCH 2/2] ALSA: hda/cs8409: Prevent pops and clicks during reboot In-Reply-To: <6595e87d-1dae-b536-c17b-eafa07d04bbe@opensource.cirrus.com> References: <20210812183433.6330-1-vitalyr@opensource.cirrus.com> <20210812183433.6330-2-vitalyr@opensource.cirrus.com> <6595e87d-1dae-b536-c17b-eafa07d04bbe@opensource.cirrus.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Aug 2021 13:28:21 +0200, Vitaly Rodionov wrote: > > On 14/08/2021 7:41 am, Takashi Iwai wrote: > > On Fri, 13 Aug 2021 08:10:47 +0200, > > Takashi Iwai wrote: > >> On Thu, 12 Aug 2021 20:34:33 +0200, > >> Vitaly Rodionov wrote: > >>> From: Stefan Binding > >>> > >>> During reboot, when the CS42L42 powers down, pops and clicks > >>> may occur due to the codec not being shutdown gracefully. > >>> This can be fixed by going through the suspend sequence, > >>> which shuts down the codec cleanly inside the reboot_notify > >>> hook, which is called on reboot. > >>> > >>> Signed-off-by: Stefan Binding > >>> Signed-off-by: Vitaly Rodionov > >> I hold this one for now, as there is a fix series that deprecates the > >> reboot_notify callback of HD-audio by forcibly doing runtime-suspend > >> at shutdown. Please check the three patches in > >> https://bugzilla.kernel.org/show_bug.cgi?id=214045 > >> > >> I'm going to submit those soon in anyway. > > Hi Takashi, > > Thanks for letting us know. We have tested against for-next branch and > we have an issue. > > Loud pops on reboot. It looks like suspend have never been called on > reboot or shutdown for us. OK, we need to track down the cause. Does the noise persist if the codec has been runtime-suspended beforehand? You can check the status in sysfs. thanks, Takashi