Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5520584rwl; Tue, 11 Apr 2023 06:40:24 -0700 (PDT) X-Google-Smtp-Source: AKy350bHI4j7PDnFkbOIcAkUzgpp02MAJPOAFrnmoXzhb9xrb677KJtscAEBMCGn7u+8Mssqir85 X-Received: by 2002:a17:906:6b8d:b0:94a:75d6:64b6 with SMTP id l13-20020a1709066b8d00b0094a75d664b6mr7260655ejr.17.1681220423893; Tue, 11 Apr 2023 06:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681220423; cv=none; d=google.com; s=arc-20160816; b=0hZ6zoMrj04PFjdORKd5YAVq16qdv/6cgdyt7X/uphhnkxtRnWKgk4PRYBmo9tU1Zk jA5jgv+rvKfYkdEmqiS65yZfTnXNhS4JR7nsTb1RF7uJWrzUmL1v/Pb3ROkkLN1Bk/z3 esQctZCNqEhSWJhsfWXvXp+PPzlyuo7DwmnZtx9hfqUl8QtRILucGk+p4Tg5on0B/SpW ugeo0ojHK6tju2IztuEuZVP4BPIGLCfRCx35XfFYw/fS9aO145zXkUMy6TDDBWqKv8az M0g0KpvMrpyQaNe9Yahck/YM7gnqofk6Bkown/e9GvT8lmjDY06WOX2PisUeTHaTW/s4 GwSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IZ4Vuw9mV+goVmqsEVF4v1Yq6M23w2kxCeAuOiA1Sug=; b=rhVdQr8BagErYAmcNATNScRfDv7+uMjyS+7cVBOG/+q7A43gMYoSKXLMbjJh3H7SXi cW14TTutIse1JV6wXQFo+Udi3FNnnjKwF/wM3x7QQDNeod47KsYwPgNS0WXUVBm0S5BW o6EPA1WRI35LwYnxjV3sr3nccpeKS2+q8pKlLb6X9kDMKdrszI1jygojy0u30tPZ6J0j 5klApd9+j3SCKozck0Qvw5tvmvOgkr8gv6ODR3GvXfPjygTA5PXOnqT6CKLszVCgDQ59 o7J8PqbFHzeKiTu2seuKaB67cOHLgRgX5BCYTJPtPCdYEJGeQW4vAZNCayEBe58tDVUe 3qHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P7564HU2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a1709067c8200b00949581a4222si7103565ejo.330.2023.04.11.06.39.57; Tue, 11 Apr 2023 06:40:23 -0700 (PDT) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=P7564HU2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229887AbjDKNZI (ORCPT + 99 others); Tue, 11 Apr 2023 09:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjDKNZH (ORCPT ); Tue, 11 Apr 2023 09:25:07 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11BC11BC for ; Tue, 11 Apr 2023 06:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681219505; x=1712755505; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=P/iDhHTGwWX+IUkevSeJym7AO9IHqFOgQHaG3NtyP2I=; b=P7564HU2HO1iL5YXKGLGUcr7S5KAqI2BtYXVDLJRMFOwegvNcjpLnQNF iNIS8OQ77hh+QonNt6NnL6lG5g25hoPgIf7aOcTRx9CEuDvLb30B3DU5S kHqn0rLT1XTE3T7eW8RatzIZvkW1HdBMy/8knFtBwjT2eIRT7h7Jcj1+q aKFrm9GVC0KtgwJVGtHZRx5ssyEsVMnvokutHAWYww3FEIOpsyK04GbaH fhg+WqoF2GFMZYNaih3A4UZ5Ko+owmxzsPjPJ0J0L1ffPcMWX9KI/SpCM 8Zyzhm6meybfhcKUU8DT3BRvktu3Snc2U1Yy7p4tNelxsoCPp36v/R8A/ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="429901270" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="429901270" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2023 06:25:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="799909332" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="799909332" Received: from rpearman-mobl.amr.corp.intel.com (HELO [10.252.132.237]) ([10.252.132.237]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2023 06:25:03 -0700 Message-ID: <14976031-7d63-4069-8647-3cee41064215@linux.intel.com> Date: Tue, 11 Apr 2023 08:25:03 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.9.0 Subject: Re: [PATCH] ASoC: soc-compress: set pcm nonatomic flag from dai_link Content-Language: en-US To: Srinivas Kandagatla , broonie@kernel.org Cc: tiwai@suse.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Mohammad Rafi Shaik References: <20230411110831.813-1-srinivas.kandagatla@linaro.org> From: Pierre-Louis Bossart In-Reply-To: <20230411110831.813-1-srinivas.kandagatla@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable 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 On 4/11/23 06:08, Srinivas Kandagatla wrote: > In compress offload case we never set nonatomic flag on a new pcm. This triggers > below configuration error with DPCM on Qualcomm setup where dai_links are marked > as nonatomic. > > "FE is atomic but BE is nonatomic, invalid configuration" > > Fix this by Updating the pcm nonatomic flag correcly from the respective dai_link. > > CC: Mohammad Rafi Shaik > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/soc-compress.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c > index 554c329ec87f..a8d70274cab8 100644 > --- a/sound/soc/soc-compress.c > +++ b/sound/soc/soc-compress.c > @@ -615,6 +615,7 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) > return ret; > } > > + be_pcm->nonatomic = rtd->dai_link->nonatomic; > rtd->pcm = be_pcm; > rtd->fe_compr = 1; > if (rtd->dai_link->dpcm_playback) isn't this fixed already? Daniel Baluta sent a patch for this, already applied by Mark: https://lore.kernel.org/alsa-devel/20230324124019.30826-1-daniel.baluta@oss.nxp.com/