Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21792390rwd; Thu, 29 Jun 2023 23:05:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlHn+eF8ty+Z7Litylq50qV5BtlgskUCqovRWodwSuMB+tn3PJxiipIis6eYka9lx8Gy9RVi X-Received: by 2002:a17:90a:5a4c:b0:263:70d1:ba84 with SMTP id m12-20020a17090a5a4c00b0026370d1ba84mr2594192pji.18.1688105121369; Thu, 29 Jun 2023 23:05:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688105121; cv=none; d=google.com; s=arc-20160816; b=pmREEHCKwt1y+3DDdz2aDC+Qt+EylqGOxNBuL1dKJ8DlJwU52vu6OG+X8tE9LBJype qQP6FM5W552B6l6R4+aFAi8VCFe4x9WiKZ52lEHl90eTeDzZhyKDbjugnXO61gUmfXMI q2UKyQGWV0I6DsdmmPMQRaN1hnONutizr+4xCTsF35sIVTWpasQeXTmi7DaJu1eQolF/ LSZJpwgO42vWf9wafbVphLchcf9VzI6DAC1sL9E03xkWwjsRlE5UV31upuvRKeoQRhHz dx2lNcZdrOzQG51M1Rll+WWRVeC4hRm3AfHTc/saGM8FBrefpYjW2GicApj5V5ZrGY0P spUg== 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=6H3Wh/u4h8U2hzhBkBZKlb9dLwPhiKplGCFao13VLdY=; fh=WNjO4rOJW6rSijx8cq2D7F7gHXJan52Zl9o3gE6Q6lE=; b=tf4rng7tGDavmuu3kYHu5cqvyREWEyrq6wT6drPS5L0GNp3WewNHZxopR+jX7W970H PZWo3CFtzDNYB+Ewgc57QKuQI7m39t8/vepSum2308Q2CLZBpBain2/TNsVp7Phzpgzt RaXGznsusN4eUV8dnlAOm0cdB+L9xhgmX7OhbgyPY0CW581VJgHF9eQEn8v1TOV5w6pc NHNb2U3HWBhX4pJOaJC7a8ytQg2d/m8AO7JcgcVfK/DlEjptBLOg2/TRy4pHHF6R3Qea Yg6N1Jqt7DYspnFtdo2Gv0Fo72qRyihj5809xTUoTuBUub4I73Q+ec/jlXMFD7x/L2vt px+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ShY6QgMY; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a631553000000b00553bda8042fsi11614426pgv.822.2023.06.29.23.05.06; Thu, 29 Jun 2023 23:05:21 -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=@linaro.org header.s=google header.b=ShY6QgMY; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231974AbjF3Fnp (ORCPT + 99 others); Fri, 30 Jun 2023 01:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232346AbjF3FnW (ORCPT ); Fri, 30 Jun 2023 01:43:22 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D76A73C38 for ; Thu, 29 Jun 2023 22:42:46 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fbab0d0b88so12421125e9.0 for ; Thu, 29 Jun 2023 22:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688103764; x=1690695764; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6H3Wh/u4h8U2hzhBkBZKlb9dLwPhiKplGCFao13VLdY=; b=ShY6QgMY+8oJf4I7rAttvpNGVQ1KvQO/4cKxqAcCdPX3+c5ECpQdewFuLRgXapjvu8 khi9gPU2b6GQ9lg2FxW7pZxFaXzO62pXVGV541qdVr5jZ6kraRVWjEWNWXHAnxoXzQuE L10OL4rxncrXQV+MzzZz/NTA4XFLPq+YbEUzF7ZppyhlwnM2vyTxjzbVFIrEyPkcJh4i ja+KoAhJZ0vxv/ExTeb845+K9nmBAjJJ3+F7q37dNFdAEApf9IQELKQXJf7XupzAALUG UHirCJ8jbV4CAFd6eTJi0pHjTitwx88z0yC+/JhDVkE6r+pFZjijQ8sUgawvXl4zcJdg ZRQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688103764; x=1690695764; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6H3Wh/u4h8U2hzhBkBZKlb9dLwPhiKplGCFao13VLdY=; b=WbkkubdpnECvemYJPPjrjffB1AxWbhkZRy2BlHloOvuteVAdKozsQtHPkfJQ9nceYf DR9VdnkTF+BNoE9GN619ZWpP+mV3il00aslpmk4CFNY/Mb1sDCDGou+nob32mS9DyQx/ M++ywtTjwmebuDutVlPLfJn64zAMYriIuy2J2QjSiTeLUleBb+UEn+29POSBv9sxGZ2+ HUpPIfCfiGPKaKdNnnvcb2LF+K/D+9qA6nob/YCf32RBh3aMlwfnPTBKu2I5k2OyoPlq mfaEn/jDd/DQwWmqOs6GBHbPXlIMLaMpxXhApi8scqYvB+VFQbTZU4LHU7tp9jc0VzSN K+GA== X-Gm-Message-State: AC+VfDxlDWXXPnqHSG2yIrn0MvwVkmGws0TsGMRU6bJyqzRuyPyEMh8M jjD5JlXm5PGyH77iEB1aPHKjWQ== X-Received: by 2002:a7b:c7cf:0:b0:3fa:9741:5b73 with SMTP id z15-20020a7bc7cf000000b003fa97415b73mr1581327wmk.10.1688103764148; Thu, 29 Jun 2023 22:42:44 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id z2-20020a5d6542000000b00313eee8c080sm13821824wrv.98.2023.06.29.22.42.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jun 2023 22:42:43 -0700 (PDT) Message-ID: <5fe3cbfe-645a-185b-9c88-5da56cfd7114@linaro.org> Date: Fri, 30 Jun 2023 06:42:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] ASoC: qdsp6: q6apm: use dai link pcm id as pcm device number Content-Language: en-US To: Mark Brown 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 References: <20230628092404.13927-1-srinivas.kandagatla@linaro.org> <77b348f7-0475-5e16-95e1-0e5831408d2b@linaro.org> <8c3be94e-56c0-4820-853d-669e90969c24@sirena.org.uk> From: Srinivas Kandagatla In-Reply-To: <8c3be94e-56c0-4820-853d-669e90969c24@sirena.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 29/06/2023 18:42, Mark Brown wrote: > 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? Yes, it is ugly but also breaks the existing UCM as the pcm device numbers keep changing. Which is why I refereed it as bug in the driver. --srini