Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21103318rwd; Thu, 29 Jun 2023 11:00:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlGop9GoEUKjduqIbL9Y6xzMg534zL9txERvE7b+HpN3mNydDCKvNdK3wDvU7f5CrSajKUCA X-Received: by 2002:a05:6a00:1391:b0:67b:d2e4:6bd2 with SMTP id t17-20020a056a00139100b0067bd2e46bd2mr688228pfg.17.1688061617448; Thu, 29 Jun 2023 11:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688061617; cv=none; d=google.com; s=arc-20160816; b=qWjOhRNpQnTFvrEqGqPmqPf1vcQd37UbL4UwdNa28P61PB9dBm4aCRUNNqvk3mPLRL ZXS9UZx00lR27rNYhCnpkZBxzgiOR5kB/mFhbgTuwOD6/zdnooVVRKkEfaqFK5GWXeSp 87X5Vne4yhmRbXCWeQ4bUuYmtExuwY4aoGKLHY2tjgu25LONw8daQQQRlRZW0uztYg9l IZJ7sUfe4uh4FIV543JlWPyNiYIzUVSqIJ3GY/oD2bf7AKfMNcnsSzC3IXpu+EWt0NNz j5QUjcFyyJ3CPm32yacjmvzDrNOHxtXYaE0SkSHmGEyMT0yPQ3cBp9ypMQsg6QslOOai KvPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MjSmklL5QSISa6zkA7SPRYUjxr0V7AEDN1ZbKquZIDk=; fh=ClYxNA8RPpYIcf4/7t5fWaa2niuCLzTw7fWY3yGnnZk=; b=eQPY1TgSTxvvdj8uxnfA1n+i7ybQuGVr1SB+ii7qpKUNPss5AWCC14KoNnm8RNK6ym xCg1y09epvYXuLUZM+KuMr1Ez/wuwnKWDVkrbXdLsOlp6XtXOSjMKwjL9oBprYARJNh7 Tliyql4y1rpCZ8LMj4d42pERV0aO8dS4H5cq5spkM9dCnG4U3u5tGY6YK6WVZF3k6U4f zrGzWgJFn4eXFFwTJ/8fMEJWZNs5sL5u1DjN9FOpouqTgWB0YfFAssr+Q7aoNAmnsFW7 M7S1EdpQPEUr7H1oE7bXZ3RDbZPCT0sYrx7U/yFtf4nB6Id5M+oNMbftd4kqmOLp1laW bzeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YuNoCsqM; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a056a00158b00b006797c2c00besi7635137pfk.144.2023.06.29.11.00.02; Thu, 29 Jun 2023 11:00:17 -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=@kernel.org header.s=k20201202 header.b=YuNoCsqM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230446AbjF2RnH (ORCPT + 99 others); Thu, 29 Jun 2023 13:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbjF2RnG (ORCPT ); Thu, 29 Jun 2023 13:43:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B2F61B1; Thu, 29 Jun 2023 10:43:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1842C615A0; Thu, 29 Jun 2023 17:43:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 260B1C433C8; Thu, 29 Jun 2023 17:43:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688060583; bh=V0qOlSWOHFdUJBrnvcm/PQeKhRzaF57NyRNow0c11k8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YuNoCsqM9ReRiaGyA5ytN3QwAUueul5O8O1wCoDJaNq7G9gSCsPX0mznPtslOkyp+ n8mGu0EjvWTL/7nRV3lFwez4OukXd3QdNLSUJYc30EiwhKa7qg8326oIKkztYra7EZ kHtKbLvJS4UVKlrnqovbCdSmX8HtWEzrha3UWjIQraS94YBEguubq1dM0AJFnzB8Vg 5gxMgMJ8qC/sVjVMeixuAuDjbVpojZXdQuJS/Yqeu2T1u8Kc2woeZhRQRH9PqkscRd Bn6XO+DQ4feXXo+Kx1TvvipEafsdo1b1R+6R7H02PRhXX8Gpuakhys3DADnXLDfR7x sGs91kfTKENxg== Date: Thu, 29 Jun 2023 18:42:57 +0100 From: Mark Brown To: Srinivas Kandagatla Cc: johan+linaro@kernel.org, perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, ckeepax@opensource.cirrus.com, kuninori.morimoto.gx@renesas.com, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, Stable@vger.kernel.org Subject: Re: [PATCH] ASoC: qdsp6: q6apm: use dai link pcm id as pcm device number Message-ID: <8c3be94e-56c0-4820-853d-669e90969c24@sirena.org.uk> References: <20230628092404.13927-1-srinivas.kandagatla@linaro.org> <77b348f7-0475-5e16-95e1-0e5831408d2b@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bypcLNqvoaiunsId" Content-Disposition: inline In-Reply-To: <77b348f7-0475-5e16-95e1-0e5831408d2b@linaro.org> X-Cookie: Surprise due today. Also the rent. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --bypcLNqvoaiunsId Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 29, 2023 at 06:33:09PM +0100, Srinivas Kandagatla wrote: > On 29/06/2023 16:43, Mark Brown wrote: > > On Wed, Jun 28, 2023 at 10:24:04AM +0100, Srinivas Kandagatla wrote: > > > For some reason we ended up with a setup without this flag. > > > This resulted in inconsistent sound card devices numbers which > > > are also not starting as expected at dai_link->id. > > > (Ex: MultiMedia1 pcm ended up with device number 4 instead of 0) > > Why is this a problem? > In existing Qualcomm setup the backend pcm are added first, which results= in > frontend pcms getting pcm numbers after this. > For example: with 3 backend dailinks in DT we have frontend pcm start at = 3. > Now if we add new backend dai-link in DT we now have frontend pcm start at > 4. > This is a bug in qualcomm driver. Why is this an actual problem rather than just being a bit ugly? What is the negative consequence of having a PCM with this number? > > > With this patch patch now the MultiMedia1 PCM ends up with device num= ber 0 > > > as expected. > > >=20 > > > Fixes: 9b4fe0f1cd79 ("ASoC: qdsp6: audioreach: add q6apm-dai support") > > > Cc: > >=20 > > Won't this be an ABI change? That seems like it'd disrupt things in > > stable. > Yes, but this is a real bug. without fixing this also results in abi(pcm > number) change when we add new backend dai-link. I have also sent fix for > UCM to handle this. I'm still not clear why you believe this to be a bug. --bypcLNqvoaiunsId Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSdwqAACgkQJNaLcl1U h9BKfQf+JaDl48bnioUDhQMuI6KqIfybuy9qh+7M+gWOmuwGSdFJwByoifsnUGPL 9KOh0gRw6dNjOwFtQ2CKSdedM+9+gUDhm3dLe9JNt7SC3x2Cf9e6RVPZVZdwVKLi N9bG7Ci9yGDg1OlNpE0tdu5ocoui2v3HAQyaKlTCBUskQPP1urHgNgz73L5pfXsp +mJR5GtZMwxnYejkE/IKc0gJP/IgPwqcxwb929ppfxx2mH4wFS2lMx0YwtrG1i1N LEg/sMGXl0mnileFhSpDedb5hViiGOckQr+Gs7IPSiMVjwAKsp/NluD4p9uSTTsl CdSgGlutumZ4wOhHt21s5hq4iqrrqw== =Ygv3 -----END PGP SIGNATURE----- --bypcLNqvoaiunsId--