Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp410810lqh; Tue, 7 May 2024 03:02:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1f/5AvLvMpvcdPzqaQNewkcKdAx6W4csLBYRgZZB4zKPBS31LWwEuaygfO/P4iMytafekRhDrGJN1Ff4rdAI3cUMJB2AwJzk+/LCf8A== X-Google-Smtp-Source: AGHT+IF2zjSoho0VpBYuGCK0VXuXoXRiBs4YiAB3P6md4f0a0s/sDCLZIGuS8ZAfobONKuJjjV8l X-Received: by 2002:a17:903:2282:b0:1e0:c0dd:c5eb with SMTP id b2-20020a170903228200b001e0c0ddc5ebmr14784211plh.9.1715076144805; Tue, 07 May 2024 03:02:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715076144; cv=pass; d=google.com; s=arc-20160816; b=c9NuxCV/t4/uGgtD9HeGe6f31fySdVVzc7opx4dZ+SlHI0mzpL5Gjor26LlxC4bIbW de+JLx4l7H5K248DTtIOB0qTQnEtAtCYgj1ElrOSUFr06e+si+nnL73Suml/rd5b3f7M 58M4d62ysbGz4m6d6Yha4wzZNlV7EuS6DVypoWBQk9blHWX7W4BnUR3KhE2JFh+m4nlE Qh5OgC3J1AXu7tlALIEuxqHHV8lG+ImOXvsXpL60kkasWmrEovc4YluwN2j2FyJ1e4E+ qwWo8aP4Rgahahnqiqko9Uirf4mEK7V5ryBh3NggSVnS83vEpsOAiIIO/J6VOIrX0pWN kT+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Xh7EFY8Q7bV9bAL/jh9gBCI67O6P18pHtiY/L20Df14=; fh=KzoTOOJMpBxRH4qZZ/CUTuoaNOGntdmjqHeLCcNqZFA=; b=0NEY1l+IIAlNzAfLaGM02r4YPSkzunujUP9dYl3s4hrBmLpOO3QS77jrm7XAmaPXVp pN9NKArySfCcjOXxtY/Yx6xFoolWGTS84h+slLKvd0YC8SjDhJ71q9RjRoJWtMYoUA3d qu2dRP7CtCkxTtIHw40VgfxS0UrCQUsYwtoXHIURxYBefqsxEDJZlpTLRpS7JzDNK6Gc P6RIa4JNVunr6+2yFOwlh+oz8H2QuTxoD95sOzrY9/q2Ezx/SmHG8zSFfC/j640xWeBg 7qw6ikrqDH/sEpw60dSSZyDeRGN7aiuChhpLwk3tVlD8Owcdnj18Q9/8RgCbRJZilfAg 9sug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P+9WF2m6; 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-171058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171058-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g13-20020a170902d1cd00b001eb15819f6esi9674176plb.94.2024.05.07.03.02.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:02:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P+9WF2m6; 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-171058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171058-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 65C4B2814E2 for ; Tue, 7 May 2024 10:02:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54C0B14E2F9; Tue, 7 May 2024 10:02:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="P+9WF2m6" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 EB99614D43A for ; Tue, 7 May 2024 10:02:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715076136; cv=none; b=czy5L9FAnYJbJuHwTCuMMKpr2hNF0j708z0Yj2KVeHN4Nd93VEjVhyCieQvtfUQ9iUJcya/yk3LK4cOyXI97Un04wcSdpVy6pe+UrOpt388aee5Y4UFERnFeysVvVgNlZEnqwpn8S6SM48mHy9Mx7QtLQaT/gEauR0i5ydAmMl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715076136; c=relaxed/simple; bh=jxrbP51ApwB+nB6k7droxBtoZKEplqH7fzVFkVtvoqM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lplcdfc+4uIlVR8pz7js5CW1TdVVJIKAO6H5W92jtkehPNr3hT/t4+1+ldBEnRmU+PhFVq5LbHfiu8KHIB4rDbp/2iYeWquuSXCI9YtSkgGUUjspiC2RdzatUglcco0+K8mV6Fdagk3TuzrE8dcsoXG3Xbu6xNN22xKMtq3mk0E= 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=P+9WF2m6; arc=none smtp.client-ip=209.85.218.45 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-ej1-f45.google.com with SMTP id a640c23a62f3a-a59a9d66a51so647704766b.2 for ; Tue, 07 May 2024 03:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715076133; x=1715680933; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Xh7EFY8Q7bV9bAL/jh9gBCI67O6P18pHtiY/L20Df14=; b=P+9WF2m6Emwn3JDxXyLaM8QqaHtR/Q3qWaG9wtr8+XBpY6F2Nyf/vFAZra2GRg9zwN j381UFzEGFY/E6nqKVEMm55v6rBH6s6BM2TK9R2LT5TtbdE38jVonK4sAUtscUnlHcQx xANP19lb8T8eIduQv6PS56zyuSyPJXMGwmhJEQaHq9aLFECScs3UYPUnAeep+pkFTJO/ TPN3A92qIwS7ChNl1QWciW3H4JwTmzpGfKBMUIZYUttQJbv0kcgV9v/K3DFTG8bk6T2A 5HJuqxJQxahHcfLg2awFxMwjoCZ9gmpy4Ysic9c/tvRbsYUNmmYbu/ZeY1mV9jtbf63S rI5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715076133; x=1715680933; 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=Xh7EFY8Q7bV9bAL/jh9gBCI67O6P18pHtiY/L20Df14=; b=T6VBG95/4RhZLS3cIbsuTgmUc1zC3OK4CdBAh/LLO8oJUl0dxN6DtSouS2cc+TZeq/ s6jS1T/tscm2NxjY3PH+3Ig80IktQWvoSuXtl//fZu++eRAsOYah7SaBrRJWh8imRg7g gO6SdQMJqvWw+MMgNknF1o0UwRFzQbszmHNmJoTAwMyUc66W3YCnWvS/WYlMg+uoFJ32 OPsBIb6O1wpv2FOz192RSzLyld/QUXRkarhxBQNBPawzMaKazhBrVrJ2zGmYFNRALZJZ S7GljW5yNJHOzsL3GCKEtTmLtF06SkZa/DvAX7bV0zSCrYJK65K7lziuSP+pACzE4fia WCXA== X-Forwarded-Encrypted: i=1; AJvYcCUITDTlGlkJDZ5PYO/1/bvXlFHdJ5vp27eBLOLvNuLPU7FOJOCpzZg8pr8MsX1FoK5Tc6UL7hCUhnXdhCfaARpfu1PaV5kZVl8+ba2v X-Gm-Message-State: AOJu0YyQewdiWcsC+lgKwL9aE5ZURfvYUSzile+ZmFgQWQhYjxVKVphw 7aQOy9Xz9nJsZxwqyHJfaDjLq3KhbmnVWPyDnwQZLlQhZynwwyl4mYi6TZ+5EOU= X-Received: by 2002:a17:907:1b06:b0:a59:9a68:7283 with SMTP id mp6-20020a1709071b0600b00a599a687283mr9092604ejc.12.1715076133185; Tue, 07 May 2024 03:02:13 -0700 (PDT) Received: from krzk-bin.. ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id qy29-20020a170907689d00b00a59adb12790sm3792651ejc.27.2024.05.07.03.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:02:12 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Krzysztof Kozlowski , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org Subject: [PATCH] ASoC: qcom: audioreach: Correct mapping of back speakers Date: Tue, 7 May 2024 12:02:09 +0200 Message-ID: <20240507100209.610436-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Qualcomm DSP, according to downstream sources, expects back speakers to be mapped as "back", not "surround". The surround is used only for 8+ speakers configuration. Reported-by: Srinivas Kandagatla Fixes: 3c5fcb20e07e ("ASoC: qcom: audioreach: Add 4 channel support") Cc: Signed-off-by: Krzysztof Kozlowski --- sound/soc/qcom/qdsp6/audioreach.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/qcom/qdsp6/audioreach.c b/sound/soc/qcom/qdsp6/audioreach.c index 5291deac0a0b..c655f0213723 100644 --- a/sound/soc/qcom/qdsp6/audioreach.c +++ b/sound/soc/qcom/qdsp6/audioreach.c @@ -277,8 +277,8 @@ static void audioreach_set_channel_mapping(u8 *ch_map, int num_channels) } else if (num_channels == 4) { ch_map[0] = PCM_CHANNEL_FL; ch_map[1] = PCM_CHANNEL_FR; - ch_map[2] = PCM_CHANNEL_LS; - ch_map[3] = PCM_CHANNEL_RS; + ch_map[2] = PCM_CHANNEL_LB; + ch_map[3] = PCM_CHANNEL_RB; } } @@ -851,8 +851,8 @@ static int audioreach_mfc_set_media_format(struct q6apm_graph *graph, } else if (num_channels == 4) { media_format->channel_mapping[0] = PCM_CHANNEL_FL; media_format->channel_mapping[1] = PCM_CHANNEL_FR; - media_format->channel_mapping[2] = PCM_CHANNEL_LS; - media_format->channel_mapping[3] = PCM_CHANNEL_RS; + media_format->channel_mapping[2] = PCM_CHANNEL_LB; + media_format->channel_mapping[3] = PCM_CHANNEL_RB; } rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); -- 2.43.0