Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp35028lqo; Tue, 7 May 2024 11:17:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWVHMKgBETYM6/7/I1SaHPVmBhnZGFyJZMgwgLAYnYqXN/xou+WY2Q0jfHy61EbN0Kfjlf7LSItce9JSLGL5KlH2mNTT/NthmsHb5MOw== X-Google-Smtp-Source: AGHT+IGfNIENRfl7Km04mHGhKrcnRauZpez2HUvc6QwgNVG3woUnb4G03KbdqU43QHt3GN++jfFn X-Received: by 2002:a05:6a00:10:b0:6f3:e6e0:d9f3 with SMTP id d2e1a72fcca58-6f49c2aebe0mr467113b3a.31.1715105869211; Tue, 07 May 2024 11:17:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715105869; cv=pass; d=google.com; s=arc-20160816; b=C8zqjrNRNSLqElmtICsCgHSO2/WqX1LuNBuL9VsIxsWn3Dj7VQ64LyTXO0Puot0OqY w3ZksptsbYs8Tzo/Uh2hCFDaNglx0pJBXP0SOe5wKoTdGREuUiAacmUxBEFrGIQe9fu3 UBa6S6EssjQT/X+kWpTn6GOoeb1OwY06/VRqEGT8R88Q0B3PtB4gJjtlS5wQSprEk4jB GpwTX/GYz7wHQmLWQ9ICMCWWZH8Af5NR82bmB/1ObqAU9/KJ+zAmwq/9iJYukGjikLqt BJ0Xerryfe4tI8MYivmo9nls2cQkstOapNOX4ZGOA4iGXihsrJIm+nNnxCN7TqKoY2p2 GE+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=FtF0ji+6sky/klPDr1qbiHk0/IYbyBDqkgtl3xUgr1E=; fh=6oiOXFO9OFoHU20Xl1oRWmK6tN0aQPWyAqheG06Aer0=; b=l7Tma0eNTWF5nhXzPaI/qdvd4gtLzOdQKuWpAvZrakQBq9+353OL1ay9TdMyCGSzVD fKW3LX+x8y+0p+8YiRGtV3S3Lc32WBPFg+sZRiinYROJmWcZ4pNribjyZcMrSLwc6wyw aJU0C6gmbev1R/wrJubsx7CfS/78SVnDnBMg+OHNBewLSw69iX4RdwYRQJTKFuDATSuJ UAn9otDve0IC+Lz+on5xIQN1Y3U6UElB6p5urvegVWmA5NVamNJ5WYXlKz+rhYsJ+P48 WypRtuBjuu+jfObGFuPPu6oOI58XRqeaBGrKdavdwtK7kzTRKPLO2+GwnWRZUkIKcSN8 STtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uUPaU451; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-171974-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b185-20020a6334c2000000b0061eacd308dbsi8613002pga.301.2024.05.07.11.17.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 11:17:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171974-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uUPaU451; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-171974-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 10EBD2825B8 for ; Tue, 7 May 2024 18:16:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1513316D32A; Tue, 7 May 2024 18:16:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uUPaU451" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77F7E16D307 for ; Tue, 7 May 2024 18:16:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715105776; cv=none; b=pKDskZO41f9JOpHe6VZig0b0wVBuwRtLpkC5aJ0EPgY0BmW1/PD2/TUjV+y9CyD6gFsDgzvLEzlSFoz/LBvAFcze+76JJoQQGkggCZ63v24kSpMtXrUNSxNhmBFUStfqbwRu9SVLdhlACp7K8jfezyel1TCP3/xQ4/eWeesiVcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715105776; c=relaxed/simple; bh=z56DW4uwWXSfy2S2WxG5hWfb4HBVtScM8Dx6WGp0vzQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lkwrvn8hSONx3WPgzFpb9X/nJHQk1g+Wz7Fh14eYTkJHPHldIebX25hShgNWEFKnAdb0xO0VaRf/yT2JF+v9W1IUMYzWhnhB6sDk912Qqm8J9ihkbr2mTkTZTpzTjSF28N7TVZKqf4yRZ10REBFZWlmh6FVxi06+h1a7Hc/Nxl0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uUPaU451; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-51f300b318cso4134500e87.3 for ; Tue, 07 May 2024 11:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715105773; x=1715710573; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=FtF0ji+6sky/klPDr1qbiHk0/IYbyBDqkgtl3xUgr1E=; b=uUPaU451gBRCru7K58KlFwbPu0GSW6LXsrl7rS8JaZcggCUa55tzMN0o18DTPqtDE1 5BjLzmFg8Qbfmjl2lNjqy1fQRqfe2FsGgPkrAKT9L3dgSJlPYyPBtR3jOwwWP8FAeQDE 1EWkXd+W6WJb5Om3ylSWXVGwk3ZNb9nKDMWLIFxYm1vgccrTww0wm58+a7dUmGjzw0ht Q4DpUUFJwHF7eGaJl99IWD8ZXlMh7jXXFZjTKeHfcKVl8S4cfZoLAOa6Ej8ZC+oIEfZ6 2fNmU+MikG4SyWdzN1MzjIjj6+HrZRbUOxI4o+/rqv0Eh5J3U55L7Bb3ck8IFK0Lx3KF 9ZCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715105773; x=1715710573; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FtF0ji+6sky/klPDr1qbiHk0/IYbyBDqkgtl3xUgr1E=; b=hLiy6GvJj7p+XwPLnTD67lZPcsVcJ5zXen19hDLv0NvI9hYe03Iq1RLZZciVIdFlEl HMcXv84ReCg1TdBl1uwD/mPIf9Qj5tNIW+HajdgONDpYLygnGEoT5br0hubYVBC7uJ1f Ds70juWN7lG1v7KP5MonyQDKQX32h/hYdVBB+VIeh+k61VmERa3HYXmWQKzk7W/PgDPo JIh+bWDMc8Q7uzIZeSaNhPsyRn5ptpnfVObnuaHE8ufJArNducCkdRMD1GhZ5qDgw//c TXfimPeErLy+Pvw9x4KECSepSe0p7HzRfNihz2JlHZ1Qq2IITdGdi+KYKRDwEPpd/76B BxBQ== X-Forwarded-Encrypted: i=1; AJvYcCUsIthrt4gMeMm6cWRuI1V955zMHz2gxjDp/i1YfaPtwjcXzg9RrFpxSW7BRzZPtdPvEyO9NFTAMG8E/mumqvqPCKYP3Ympe8pHSUVr X-Gm-Message-State: AOJu0YwnKqImqwWBejN8ShjcdEpe1mDOJQGqCOcR77surViJL/NaODpR DrWDdL8QETfCZ30Y1nDRD65zvjyKaIOJEuX6P6zb2O2x105rp3ldM5ZYvOvJyUY= X-Received: by 2002:ac2:4c0b:0:b0:51f:5d1a:7838 with SMTP id 2adb3069b0e04-5217c566a27mr187547e87.25.1715105772565; Tue, 07 May 2024 11:16:12 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a26-20020a50ff1a000000b005728a272753sm6516812edu.67.2024.05.07.11.16.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 May 2024 11:16:11 -0700 (PDT) Message-ID: Date: Tue, 7 May 2024 20:16:09 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] ASoC: qcom: q6dsp: Implement proper channel mapping in Audioreach To: Srinivas Kandagatla , James Schulman , David Rhodes , Richard Fitzgerald , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Lars-Peter Clausen , =?UTF-8?Q?Nuno_S=C3=A1?= , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240507-asoc-x1e80100-4-channel-mapping-v1-0-b12c13e0a55d@linaro.org> <20240507-asoc-x1e80100-4-channel-mapping-v1-2-b12c13e0a55d@linaro.org> <89cf75d8-1f85-43d8-9c33-377a04b36121@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy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HFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <89cf75d8-1f85-43d8-9c33-377a04b36121@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/05/2024 15:25, Srinivas Kandagatla wrote: > > > On 07/05/2024 11:27, Krzysztof Kozlowski wrote: >> Instead of relying on default channel mapping in all Audioreach >> platforms, implement set_channel_map() callback to allow sound cards >> customize the mapping depending on needs. >> >> The channel mapping is set on frontend DAIs coming from the topology, >> not DTS, thus need to add DAI ops in topology dai_load() callback. >> >> Signed-off-by: Krzysztof Kozlowski >> --- >> sound/soc/qcom/qdsp6/audioreach.c | 2 +- >> sound/soc/qcom/qdsp6/audioreach.h | 1 + >> sound/soc/qcom/qdsp6/q6apm.c | 28 +++++++++++++++++++++++++++- >> sound/soc/qcom/qdsp6/q6apm.h | 8 ++++++++ >> sound/soc/qcom/qdsp6/topology.c | 12 ++++++++++++ >> 5 files changed, 49 insertions(+), 2 deletions(-) > Please use the existing q6dma_set_channel_map() and set the channel map > for the backend dai from machine driver, this should work. > > setting channels on FE is not a scalable one. > > Please take a look at some of the patches that I shared privately. > Ack Best regards, Krzysztof