From: Takashi Iwai Subject: Re: [PATCH 1/2] ALSA: hda - Don't trigger jackpoll_work in azx_resume Date: Tue, 19 Mar 2019 06:56:24 +0100 Message-ID: References: <20190319012844.6543-1-hui.wang@canonical.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EB01EF80791 for ; Tue, 19 Mar 2019 06:56:26 +0100 (CET) In-Reply-To: <20190319012844.6543-1-hui.wang@canonical.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Hui Wang Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Tue, 19 Mar 2019 02:28:43 +0100, Hui Wang wrote: > > The commit 3baffc4a84d7 (ALSA: hda/intel: Refactoring PM code) changed > the behaviour of azx_resume(), it triggers the jackpoll_work after > applying this commit. > > This change introduced a new issue, all codecs are runtime active > after S3, and will not call runtime_suspend() automatically. > > The root cause is the jackpoll_work calls snd_hda_power_up/down_pm, > and it calls up_pm before snd_hdac_enter_pm is called, while calls > the down_pm in the middle of enter_pm and leave_pm is called. This > makes the dev->power.usage_count unbalanced after S3. > > To fix it, let azx_resume() don't trigger jackpoll_work as before > it did. > > Fixes: 3baffc4a84d7 (ALSA: hda/intel: Refactoring PM code) > Signed-off-by: Hui Wang Applied, thanks. Takashi