Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18938019rwd; Wed, 28 Jun 2023 02:49:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kUwDF8cvFHG1ZC9/fG3P9JPFfI8y5vwalhQW+rTkZGpC8tz2YoWlDblItqzg2jA4u6nVW X-Received: by 2002:a17:902:bb8b:b0:1b8:e41:f43f with SMTP id m11-20020a170902bb8b00b001b80e41f43fmr6074605pls.27.1687945771268; Wed, 28 Jun 2023 02:49:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687945771; cv=none; d=google.com; s=arc-20160816; b=RjkFG6FK8d6RjZ8k31WU3yLDVO4ZFGVYkqI2J4sae1b1CepeXmkWN8FSBHyJpyjljU V3KDG2hHhb9rv+cWiglZ5SODTEmybXPJnHleM39KW0ngMHbjCB2TmRatChy/T+mdIO8D +V+uSRYLGrejMM9JHtlbu6F5rstJPk8PL5dFrGL8uYLwbJyEPtEv+RdXq5zGunrrX+/0 Sia3x771QjwrNZDhfNtGZdXjKajxUWkM8yWwbvmvtWDHs/jlPEZwsuaBWHzQIW05h0vj NuXuhNp4sz/Vm3i4cJyD0l4qj8wojUWX/FDM/CJWg442y+SIAHU303U1wr7fUcP4fLvY G2MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wzKXpMccA6UrwHtXvOGSFvI/x46V/z1bpRu3rF0Fgs0=; fh=VufGKF3kvNLy7+cwiOzCSWmBed2gNejLWFhsamTIIoU=; b=ICDzBOMv/765Iaz4K4RI4g/1CycLKFtQqQYWRwY8ZbOWmBxamB5LLEdK6wHuwu5XtB 6MyfD3O/M3fyOaWP2tfJGk3iucXRa7nWLjJ3N6xd53rd+GabKSWTQpWy5ibRNNb4taTE stB6++qnf4S9emotklVTtve4fZW0WPXv0O50qRhSSRIN6fZ1lJVmSwGTa/iUCrKIRtjK SZINMtNd6lPKUDK1dKRlRyeWuBSberFz5TJITCdC1bslZajvYxGNnOjw+8OvUlZqvU+9 5M/h8F03LEsW1nSc3mKxp3q8Z7UCaYjJOs070NIb7AupvT9pDcHp9v2zC1eU5C1LP14t b0tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fueU1DUL; 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 y19-20020a1709029b9300b001b6ba4c90desi8513275plp.368.2023.06.28.02.49.18; Wed, 28 Jun 2023 02:49:31 -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=fueU1DUL; 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 S229840AbjF1JbM (ORCPT + 99 others); Wed, 28 Jun 2023 05:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231370AbjF1JYd (ORCPT ); Wed, 28 Jun 2023 05:24:33 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 159B610D8 for ; Wed, 28 Jun 2023 02:24:31 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fa99f6a482so32651615e9.0 for ; Wed, 28 Jun 2023 02:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687944269; x=1690536269; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wzKXpMccA6UrwHtXvOGSFvI/x46V/z1bpRu3rF0Fgs0=; b=fueU1DULpIywX2DaDQQk0rGXg3PtSBos/iW8JpD9Vgn8gH+xHWp/h0QRyukEI7O19n zm6aK/HjiOtVtDnYJOaFMUvOhdbBp42M8K0RL1WMTCaWgLu7TuX6X0HSUl8E5ohHg/cJ 7hOyN1YGptCx7M2Kg9BpiVSukjKpVpaQeT/dqBlFAqG01ISxfbd1sS3ab+mmme8B95r/ Fw7lYhPsitYBBrKLtJwiFm4MJV1MGMWOxKVo1KPOV6rKYvO0eq7GQgA1vRUPQ/3ZKX4I PGIgGxKgUefcJQV08RH9cHKNJP6V8+ERX2wOcQIQhtZjeSbSgLcDzuGTv91NBllPb1ss DWXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687944269; x=1690536269; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wzKXpMccA6UrwHtXvOGSFvI/x46V/z1bpRu3rF0Fgs0=; b=CK5O3UtWGpDU7PU5GWQ/XIzwBANFyjT+ThyyxU8VPtRMIqjA3PzWGMqwqH5SFLDDfh AIKCJjQx6yIZnZIyhPL6vjCpEk9xNZuZ90QPoUQVBQinGDJTEzrrIaq+6+uDArwLfyV0 h86NG9Go/dBTOTSTx5zfCmgprS3HL/YF8o1oS2I20/DuEQzcg2adA0lSem/aZ/gNua3O bejZgsGkAQ8uqN7SvjhWLlQn8CHKAdaCmVifcXqLKcIoGobc3SAUw+7mWZa3GIQK21mF Q2fdv3znDqetnghU5LPuzSmRy02nIawvDBGbgIxzkoxnpekd5l8Knka0ZfvvbY5SkNi0 fzpg== X-Gm-Message-State: AC+VfDxmzy489WuxM42IhjQ5L8vY1OrWjSpgS+8xUHSlQqaaDmdcweJH spm0MquRAC8P8c2oaGhJRwVfJQ== X-Received: by 2002:a5d:4e50:0:b0:313:eb47:b7b3 with SMTP id r16-20020a5d4e50000000b00313eb47b7b3mr9446659wrt.66.1687944269482; Wed, 28 Jun 2023 02:24:29 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id o18-20020a056000011200b00313f9085119sm5500091wrx.113.2023.06.28.02.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 02:24:28 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org 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, Srinivas Kandagatla , Stable@vger.kernel.org Subject: [PATCH] ASoC: qdsp6: q6apm: use dai link pcm id as pcm device number Date: Wed, 28 Jun 2023 10:24:04 +0100 Message-Id: <20230628092404.13927-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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) With this patch patch now the MultiMedia1 PCM ends up with device number 0 as expected. Fixes: 9b4fe0f1cd79 ("ASoC: qdsp6: audioreach: add q6apm-dai support") Cc: Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6apm-dai.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/qcom/qdsp6/q6apm-dai.c b/sound/soc/qcom/qdsp6/q6apm-dai.c index 5eb0b864c740..c90db6daabbd 100644 --- a/sound/soc/qcom/qdsp6/q6apm-dai.c +++ b/sound/soc/qcom/qdsp6/q6apm-dai.c @@ -840,6 +840,7 @@ static const struct snd_soc_component_driver q6apm_fe_dai_component = { .pointer = q6apm_dai_pointer, .trigger = q6apm_dai_trigger, .compress_ops = &q6apm_dai_compress_ops, + .use_dai_pcm_id = true, }; static int q6apm_dai_probe(struct platform_device *pdev) -- 2.21.0