Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DEA7DC32771 for ; Mon, 26 Sep 2022 13:59:51 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0F2E73E8; Mon, 26 Sep 2022 15:59:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0F2E73E8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664200790; bh=NOB/MCZWNj2JcIjDbdPeViJesgKS5NR1w8ApORJmXQg=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Abv9bxcTrtuoW4r8MNz70njiI/PID58Tl2d6bMr8SCxfAFM+732I9RfYLpx4AuXL6 5uDBhrLSN9WaCsxaROarPlgtbTorplVyALYaB6MS3uaRC1gUC7e8BYO6TpoW7IU9+C VYAb6Qf0AEkZQdutu3PXeT9xAI9eRh71CCr7V8Y8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2E556F8058C; Mon, 26 Sep 2022 15:56:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2CA78F8057B; Mon, 26 Sep 2022 15:56:30 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1BFF4F802BE for ; Mon, 26 Sep 2022 15:56:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1BFF4F802BE Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="EZ8+gIZo"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="tVKIa5C6" Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DB14E1F899; Mon, 26 Sep 2022 13:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1664200575; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ou4bbyc5Yql+zMv1xBg8JqK7tMR/DQKYql2Z5cSzFW8=; b=EZ8+gIZogKs7WKDfPMCWrvwiGkwxOk+77Ns9vCWvfiZ9plvpe+J/R6UmBfC7DznYFtfvIj KARdwi9ZY4DuYjI5EcujyAb2Ce1Gx2S2Ta3mtH5fc+Go68AN2PiG0Emti4PjP3c7ghcVCR mGcN+x8ZtACN8LWt2KdzYSZD7Ug2ycc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1664200575; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ou4bbyc5Yql+zMv1xBg8JqK7tMR/DQKYql2Z5cSzFW8=; b=tVKIa5C60XzPwu7PQXWKb57BvmGDkTDHKZ0q10PghBTu80Tnj2C8Pe9lY4AAxcHBldxKNJ HWHsofNEHm+Xq7AQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A421D139BD; Mon, 26 Sep 2022 13:56:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id UN1fJ3+vMWPxegAAMHmgww (envelope-from ); Mon, 26 Sep 2022 13:56:15 +0000 From: Takashi Iwai To: alsa-devel@alsa-project.org Subject: [PATCH 09/11] ASoC: intel: Replace runtime->status->state reference to runtime->state Date: Mon, 26 Sep 2022 15:55:56 +0200 Message-Id: <20220926135558.26580-10-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220926135558.26580-1-tiwai@suse.de> References: <20220926135558.26580-1-tiwai@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Cezary Rojewski , Kai Vehmanen , Takashi Iwai , Bard Liao , Pierre-Louis Bossart , Ranjani Sridharan , Liam Girdwood , Mark Brown , Peter Ujfalusi X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The recent change in ALSA core allows drivers to get the current PCM state directly from runtime object. Replace the calls accordingly. Cc: Cezary Rojewski Cc: Pierre-Louis Bossart Cc: Liam Girdwood Cc: Peter Ujfalusi Cc: Bard Liao Cc: Ranjani Sridharan Cc: Kai Vehmanen Cc: Mark Brown Signed-off-by: Takashi Iwai --- I'm going to merge this through my sound git tree as it requires ALSA core changes. sound/soc/intel/skylake/skl-pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c index 9d72ebd812af..1015716f9336 100644 --- a/sound/soc/intel/skylake/skl-pcm.c +++ b/sound/soc/intel/skylake/skl-pcm.c @@ -275,7 +275,7 @@ static int skl_pcm_prepare(struct snd_pcm_substream *substream, * calls prepare another time, reset the FW pipe to clean state */ if (mconfig && - (substream->runtime->status->state == SNDRV_PCM_STATE_XRUN || + (substream->runtime->state == SNDRV_PCM_STATE_XRUN || mconfig->pipe->state == SKL_PIPE_CREATED || mconfig->pipe->state == SKL_PIPE_PAUSED)) { @@ -593,7 +593,7 @@ static int skl_link_pcm_prepare(struct snd_pcm_substream *substream, /* In case of XRUN recovery, reset the FW pipe to clean state */ mconfig = skl_tplg_be_get_cpr_module(dai, substream->stream); if (mconfig && !mconfig->pipe->passthru && - (substream->runtime->status->state == SNDRV_PCM_STATE_XRUN)) + (substream->runtime->state == SNDRV_PCM_STATE_XRUN)) skl_reset_pipe(skl, mconfig->pipe); return 0; -- 2.35.3