Message ID | 20240125154531.417098-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-38839-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp63619dyb; Thu, 25 Jan 2024 07:45:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHY35O2t1GKDZUR0ocBVEbgdcFU14fGJgvQuugnMnSLY0ReiU6Uo1mRWtMB0Mxui1SoVOUX X-Received: by 2002:a17:902:ec86:b0:1d7:4044:81e4 with SMTP id x6-20020a170902ec8600b001d7404481e4mr1309841plg.112.1706197558723; Thu, 25 Jan 2024 07:45:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706197558; cv=pass; d=google.com; s=arc-20160816; b=TrlhIsJSGJKvvoQG0vtTgflSgK5mWFHJRZaf2eV8dIWmp9k+uw4rkOpQfi+luAFcft SQBdlDXTdl5BoWLgChG204xG3qW0dchjfLxFJwUOk7VOiZ/RdFCd1VxhZFDQRVMJFI5A 5NxpEgBoEtEeWQ8VOByi7GP23I9i4J2W27qTgPRKSB0orEpWygtiTAu8+iZPJvM98o/f aUFS4cidTimRs87icLy8RA0CJz4LZsAHasQABWa9L5hAuhzcU6Rfq2O8FOFMZFxeCLod w4pHN4haoCB4effBqd22O49KhOdDMku9m9cp/iFvAEP/VrOj2BOx2ED2lMmMD1WMd2WO Ui6Q== 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=/ZKp3uqQYAmq1YVDENjbc/8chIdFJnXVp5TeqqADjso=; fh=y7aDl440HjCFeyzYS6CoRxMf7OrdXCqr8Sme8LrT7/s=; b=aioTGnQ+SRrsDTtHvJOR4gXn3fFq+GnfAzTCzf1KAyUy99uyeEnzK2yDq3yrIjytNA b4QXj522LQqYVDABtaWCNR1Vu3r2Q3OfLCyriQllfsVPoU5Wp5HgG5TC49v1IGeEI926 Nch33VcXXZIxbsGKxZh65EzJ/d/mndrj0c9em/NSEnafrCgRmYV0Cefr11k1b14he04g vEILqJ0E6fEwBgCFQYSoPXgM8toPN42XxLZn8k0YaJIHkVQhKzzZTeJcdAotaLQfhSmE UfNl0rzOxYnZq45D6wcdJIBLW0Q5Wj3Nk3xP8wjWmdztZJNt9DByYfJjWFIRHun+iWRe uTPw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FkZxV+zU; 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-38839-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38839-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y11-20020a17090322cb00b001d40ca98b6esi294781plg.8.2024.01.25.07.45.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 07:45:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38839-ouuuleilei=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=FkZxV+zU; 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-38839-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38839-ouuuleilei=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 6B1A028F947 for <ouuuleilei@gmail.com>; Thu, 25 Jan 2024 15:45:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1157E745E4; Thu, 25 Jan 2024 15:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FkZxV+zU" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 BB19C6E2C9 for <linux-kernel@vger.kernel.org>; Thu, 25 Jan 2024 15:45:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706197538; cv=none; b=BAHBUS2vuNRQIPAgHa5NIGj5vRkXMEq60p5gwp+ndt5HIc9WQrr+Oe23ozIAVUake0pQVqz7opVL8V8nZizUgUU6LiTnCXAnL3Wk8phkcJEel3f37kB7qIB72+/0DTGdB5aLt0ruQGHecxn5Pa1kJI/lPZlj8KYI1nAhPoIIhHY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706197538; c=relaxed/simple; bh=q1qkIXtslpnOwyKogLlXnCMaPNppQH6HlI4rFEyb7Bg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=M0Qdg+vm7NKUOT449WMdJmfrE5KppypYmKTAaE6lqR+ptNjp44Wmnxd84IjWAMmmWxqzoWqR8zx/f5LugY5LJEkzL6bB2aQNF+4wuKfrZTI8JX1RGFgk2aKGx5fFGUmnMLyaJkbRL+dk+KVj7PL4wT58kqRg9mZPJBsxzcG5dO0= 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=FkZxV+zU; arc=none smtp.client-ip=209.85.128.41 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-wm1-f41.google.com with SMTP id 5b1f17b1804b1-40e8fec0968so88320375e9.1 for <linux-kernel@vger.kernel.org>; Thu, 25 Jan 2024 07:45:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706197535; x=1706802335; 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=/ZKp3uqQYAmq1YVDENjbc/8chIdFJnXVp5TeqqADjso=; b=FkZxV+zUVnyuTCuXiMSYx561hRcu9OrmwxksFuutHP6M8iqftS86fp5FkFT5NhmdHE FE6EoOTZiQkfyCYR63rNZEM7pVp2N3L58vGawFBw/WetCS1CB3i1YkAP11FKBm5zPOER EoSAxE8dgrEm7LujSJ6DcASMPSZqWfkYnBcWEQmruyuTUVAx0MuOgkbPezstfPRkcQ1C MsYZ8yEr23jIZX+6O2+V9ccgkCZVAVEWYY80Yq4fHWnQ2MPJYRVZsgFYb/bVyBb//zB6 bW4pBis+2V0P3TvfQYzNHi0ZF5vwzB0bqd9eZTz8FFNAMws3zcJQrp+/w1Y8zelAk5eK t45g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706197535; x=1706802335; 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=/ZKp3uqQYAmq1YVDENjbc/8chIdFJnXVp5TeqqADjso=; b=QSDf1nB3yOg3fu40JOmvyzH5c1kkAoivRVnGPZmUhrZoBi/IzBfnoiErj3fJ3LDkr4 wVdDpPTHZ3z2FaTabJPCMN9x1U3x8FwbJTNJfbCM5gyPnDfp2a9p5f5YMQmneAYVGLmy gq3dgK1IMSSaJTIiOcwV4dGKFPrqsG8SL31WVdJFrpzz9Key0Ubst9RbtPaJooVwCNWr JBY8QTKow/tMPtzkubiiGVEtlykEoiWexZFcAJ6IQocoxlb+SPZZiHmLh0m0MFn7+2mh eFNwgKgy4JwjyAflD2OT5LIo4q3Y6pewJmw2F7MZhZw6dFVN4R9XuXa1FK+Pop1aW1QO /bzA== X-Gm-Message-State: AOJu0YwHvj/3m7OxVwAcGcgDSl0BObNqJEeU1gzYxFGqRVwhZA8JUjP/ G0SngBVt1w6UHHFUTyLZ14Tro9haVCUHEFvIt7c8onLMVNCtp2vIlHyceHSEuYE= X-Received: by 2002:a05:600c:4e88:b0:40e:b95b:e482 with SMTP id f8-20020a05600c4e8800b0040eb95be482mr672975wmq.115.1706197534905; Thu, 25 Jan 2024 07:45:34 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id v17-20020a05600c471100b0040ec7fcaea6sm2986552wmo.37.2024.01.25.07.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 07:45:34 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH] arm64: dts: qcom: sc8280xp-x13s: correct analogue microphone route Date: Thu, 25 Jan 2024 16:45:31 +0100 Message-Id: <20240125154531.417098-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789077811151615145 X-GMAIL-MSGID: 1789077811151615145 |
Series |
arm64: dts: qcom: sc8280xp-x13s: correct analogue microphone route
|
|
Commit Message
Krzysztof Kozlowski
Jan. 25, 2024, 3:45 p.m. UTC
Starting with Qualcomm SM8350 SoC, so Low Power Audio SubSystem (LPASS)
block version v9.2, the register responsible for TX SMIC MUXn muxes is
different. The LPASS TX macro codec driver is being fixed to handle
that difference, so the DTS must be updated as well for new widget name.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
This unfortunately depends on:
https://lore.kernel.org/alsa-devel/20240125153110.410295-1-krzysztof.kozlowski@linaro.org/T/#m62da29e6b80fa419e6339d3c27439894cb04cecb
and my tries to make it backwards compatible failed.
---
arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Thanks Krzystof, On 25/01/2024 15:45, Krzysztof Kozlowski wrote: > Starting with Qualcomm SM8350 SoC, so Low Power Audio SubSystem (LPASS) > block version v9.2, the register responsible for TX SMIC MUXn muxes is > different. The LPASS TX macro codec driver is being fixed to handle > that difference, so the DTS must be updated as well for new widget name. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > --- > Unfortunately this is breaking mic on X13s. --srini > This unfortunately depends on: > https://lore.kernel.org/alsa-devel/20240125153110.410295-1-krzysztof.kozlowski@linaro.org/T/#m62da29e6b80fa419e6339d3c27439894cb04cecb > > and my tries to make it backwards compatible failed. > --- > arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > index def3976bd5bb..0165492e4e11 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > @@ -986,7 +986,7 @@ &sound { > "VA DMIC0", "VA MIC BIAS1", > "VA DMIC1", "VA MIC BIAS1", > "VA DMIC2", "VA MIC BIAS3", > - "TX SWR_ADC1", "ADC2_OUTPUT"; > + "TX SWR_INPUT1", "ADC2_OUTPUT"; > > wcd-playback-dai-link { > link-name = "WCD Playback";
On 26/01/2024 14:21, Srinivas Kandagatla wrote: > Thanks Krzystof, > > On 25/01/2024 15:45, Krzysztof Kozlowski wrote: >> Starting with Qualcomm SM8350 SoC, so Low Power Audio SubSystem (LPASS) >> block version v9.2, the register responsible for TX SMIC MUXn muxes is >> different. The LPASS TX macro codec driver is being fixed to handle >> that difference, so the DTS must be updated as well for new widget name. >> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> >> --- >> > Unfortunately this is breaking mic on X13s. This alone? Of course, there is dependency... Or you meant something else? Best regards, Krzysztof
On 26/01/2024 14:22, Krzysztof Kozlowski wrote: > On 26/01/2024 14:21, Srinivas Kandagatla wrote: >> Thanks Krzystof, >> >> On 25/01/2024 15:45, Krzysztof Kozlowski wrote: >>> Starting with Qualcomm SM8350 SoC, so Low Power Audio SubSystem (LPASS) >>> block version v9.2, the register responsible for TX SMIC MUXn muxes is >>> different. The LPASS TX macro codec driver is being fixed to handle >>> that difference, so the DTS must be updated as well for new widget name. >>> >>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>> >>> --- >>> >> Unfortunately this is breaking mic on X13s. > > This alone? Of course, there is dependency... Or you meant something else? There was no further comments on my proposal to skip touching sc8280xp: https://lore.kernel.org/alsa-devel/20240125153110.410295-1-krzysztof.kozlowski@linaro.org/T/#mc45e487f25a2d6388b5c478b1b7827b113640f4f so I will go with that approach. Please ignore this DTS patch. I will send ASoC changes which won't affect sc8280xp. Best regards, Krzysztof
On Mon, Jan 29, 2024 at 8:27 AM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 26/01/2024 14:22, Krzysztof Kozlowski wrote: > > On 26/01/2024 14:21, Srinivas Kandagatla wrote: > >> Thanks Krzystof, > >> > >> On 25/01/2024 15:45, Krzysztof Kozlowski wrote: > >>> Starting with Qualcomm SM8350 SoC, so Low Power Audio SubSystem (LPASS) > >>> block version v9.2, the register responsible for TX SMIC MUXn muxes is > >>> different. The LPASS TX macro codec driver is being fixed to handle > >>> that difference, so the DTS must be updated as well for new widget name. > >>> > >>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > >>> > >>> --- > >>> > >> Unfortunately this is breaking mic on X13s. > > > > This alone? Of course, there is dependency... Or you meant something else? > > There was no further comments on my proposal to skip touching sc8280xp: > https://lore.kernel.org/alsa-devel/20240125153110.410295-1-krzysztof.kozlowski@linaro.org/T/#mc45e487f25a2d6388b5c478b1b7827b113640f4f > > so I will go with that approach. Please ignore this DTS patch. I will > send ASoC changes which won't affect sc8280xp. > > Best regards, > Krzysztof > > I somehow missed that patchset or conversation; As an owner of an X13s, which is sc8280xp, I can say, neither pre-dts patch, nor post, seem to do much good. When I attempt to do a voice chat in armcord, the responses I get to how I sound when using the mic on the X13s itself range from "You sound like hot trash" to "You sound like a robot with hiccups". -- steev
On Sun, Feb 04, 2024 at 11:30:54PM -0600, Steev Klimaszewski wrote: > On Mon, Jan 29, 2024 at 8:27 AM Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: > > so I will go with that approach. Please ignore this DTS patch. I will > > send ASoC changes which won't affect sc8280xp. > I somehow missed that patchset or conversation; As an owner of an > X13s, which is sc8280xp, I can say, neither pre-dts patch, nor post, > seem to do much good. When I attempt to do a voice chat in armcord, > the responses I get to how I sound when using the mic on the X13s > itself range from "You sound like hot trash" to "You sound like a > robot with hiccups". That's a separate issue entirely. Both the digital and analog microphone (jack) is working on the X13s as long as you use pulseaudio. As I've mentioned before, there are problems with both playback and capture when you use pipewire however ("robot with hiccups" one could indeed describe it as). That suggests a more general problem with the Qualcomm audio drivers, but that has nothing to do with the audio routing. Johan
Thanks Steev, On 05/02/2024 08:09, Johan Hovold wrote: > On Sun, Feb 04, 2024 at 11:30:54PM -0600, Steev Klimaszewski wrote: >> On Mon, Jan 29, 2024 at 8:27 AM Krzysztof Kozlowski >> <krzysztof.kozlowski@linaro.org> wrote: > >>> so I will go with that approach. Please ignore this DTS patch. I will >>> send ASoC changes which won't affect sc8280xp. > >> I somehow missed that patchset or conversation; As an owner of an >> X13s, which is sc8280xp, I can say, neither pre-dts patch, nor post, >> seem to do much good. When I attempt to do a voice chat in armcord, >> the responses I get to how I sound when using the mic on the X13s >> itself range from "You sound like hot trash" to "You sound like a >> robot with hiccups". does arecord exhibit same issue? What is your setup looking like? I would like to reproduce this on my x13s. thanks, Srini > > That's a separate issue entirely. Both the digital and analog microphone > (jack) is working on the X13s as long as you use pulseaudio. > > As I've mentioned before, there are problems with both playback and > capture when you use pipewire however ("robot with hiccups" one could > indeed describe it as). > > That suggests a more general problem with the Qualcomm audio drivers, > but that has nothing to do with the audio routing. > > Johan
On Wed, Feb 07, 2024 at 11:05:02AM +0000, Srinivas Kandagatla wrote: > On 05/02/2024 08:09, Johan Hovold wrote: > > On Sun, Feb 04, 2024 at 11:30:54PM -0600, Steev Klimaszewski wrote: > >> I somehow missed that patchset or conversation; As an owner of an > >> X13s, which is sc8280xp, I can say, neither pre-dts patch, nor post, > >> seem to do much good. When I attempt to do a voice chat in armcord, > >> the responses I get to how I sound when using the mic on the X13s > >> itself range from "You sound like hot trash" to "You sound like a > >> robot with hiccups". > > does arecord exhibit same issue? I only did a quick test by switching from pulseaudio to pipewire and running parecord. Recording is corrupted (robot with hiccups), while it works fine with pulseaudio proper. You can also notice that something is off by looking at the pavucontrol volume meters which were quite active. > What is your setup looking like? I would like to reproduce this on my x13s. I know that Steve is using pipewire (on Kali Linux I assume). > > That's a separate issue entirely. Both the digital and analog microphone > > (jack) is working on the X13s as long as you use pulseaudio. > > > > As I've mentioned before, there are problems with both playback and > > capture when you use pipewire however ("robot with hiccups" one could > > indeed describe it as). Johan
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index def3976bd5bb..0165492e4e11 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -986,7 +986,7 @@ &sound { "VA DMIC0", "VA MIC BIAS1", "VA DMIC1", "VA MIC BIAS1", "VA DMIC2", "VA MIC BIAS3", - "TX SWR_ADC1", "ADC2_OUTPUT"; + "TX SWR_INPUT1", "ADC2_OUTPUT"; wcd-playback-dai-link { link-name = "WCD Playback";