Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1415317lqt; Fri, 7 Jun 2024 19:23:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVA6X4qoJWecvD5LPPS0Nt3d585yQRKjT3P4zE+DukJB4ltKkm9d/Nd+YzwOSaVD0DcgVeFkUgskjKuO8Hz13veyybn8BQKu90LSkryCw== X-Google-Smtp-Source: AGHT+IFpS8inRjc0zJqgqgM004ciMtWuR1uRsAxosShNs7KM/B0Nhev8BUrICktFWWIP3GW25BBP X-Received: by 2002:a05:6214:8e3:b0:6b0:5c53:1b76 with SMTP id 6a1803df08f44-6b05c5323famr29068006d6.27.1717813433993; Fri, 07 Jun 2024 19:23:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717813433; cv=pass; d=google.com; s=arc-20160816; b=VQO9+WF17hJ/wMLC9Dr7rjkrd/xtLnefNur4pcL50HMctJJ7QKbjYKLSLGkp0I+jfy 3Fgp3c8E3GcgYmsLNgwsOnsfC6HyPObN0m0sJO3OQO20e3s9Iye1KEoDpdesWWvH1b5B xrOPdUMAssRgxIsyRjYLLvlFABN5v0FlvK7//hWdj3SJ2DemRCq57lJAKT9NgFUsVObG ZQTnRDW0CiusNqSmd4EYwilgSfN4SwZ+7kEl8SBdP+/9VVhNNtMZs0fng3zozukvXr0/ NAWK+qZB8LarCtzWzNBtQDHLrblQx//9uRGgBW1S5n3/hFTyTFlXpy8rznG0SA+O/dDv tEPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=r9V+yvJSOPxV6HkhRzMGuSvkZwjbSgJnARuZIs0WNJg=; fh=2Cd9BmFhQqGYsngEzVgpY/OptAuIQl1ThJGkL7izVbY=; b=MTM/sQ8yK51FCaBzMovxI6k+cUI2LrAQ9kdFx4enReVe7I16SbJJogHskdLvdzL7S6 E1fCc8MmKoEE/ZT+0MOHaLPWkI7+ZQTRqKe5pLVU6TUnZt4Slglpm3H+aTnhIe6iW6NH 2c1NorU78xsU3aP+5DsAmPrZmGBKX2xYuy3H7GsYue9/UCwlMH61OxmDnbQ8+IVuqYyL 3bJ5/VkYjyUU14J9lrq7LTgvOZ3vLg4KkMbU4PfxA+Apjr4C8F3O39jyf/MehjUuF+gR 8HiFEyTegGTG4EmODFazpV0u4nkHtXu4AIv0ZUGD48vP/4OTUb5C4QIVgUWawR4/ZWXt 9nJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oXkazyhQ; 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-206883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f9d1e1csi56098356d6.387.2024.06.07.19.23.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 19:23:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oXkazyhQ; 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-206883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206883-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A61541C21125 for ; Sat, 8 Jun 2024 02:23:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7928CBE6C; Sat, 8 Jun 2024 02:23:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oXkazyhQ" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 BEDF4C14F for ; Sat, 8 Jun 2024 02:23:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717813425; cv=none; b=mLZVhfubJ8MVgibKO26ROyTG6/wziB51H3Fb7rIrpVuoutZm4oIke0cOU8G/qc17sXZshOubkh8JDepObQTc9NFzMr2dPmdPIzAVFjj+hSFR/3hJ7n8it4cZoLl44OpZAewVYRxa1hihoPLeuojr0D08hzDglTFUrry66208bkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717813425; c=relaxed/simple; bh=8jjq1gHnAInkHjlnzVHU3k3WOM8rwgC8BW9P44ujf30=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BxKLfu3k3J95vpVBk1atbTWa07Ct66LXzGnRkSP0HxiruyPTHJ0bTMAdt8JVcInmOHURfPz+4WtHT36Iz0p5SG3b6D2K/pK1lKD/JndTO26LlMHLRRoWYWH/g2TbNJjXGTRGtcN8utE7ylOUfkmuSCK8aCp9kLR2Rw72XEvF+HU= 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=oXkazyhQ; arc=none smtp.client-ip=209.85.167.42 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-f42.google.com with SMTP id 2adb3069b0e04-52b8b7b8698so3344734e87.1 for ; Fri, 07 Jun 2024 19:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717813422; x=1718418222; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=r9V+yvJSOPxV6HkhRzMGuSvkZwjbSgJnARuZIs0WNJg=; b=oXkazyhQpHN69BweMcjQDAgGEPY3kHdVKg51kwW3ykRF0GUBD5v8S2u7ksfCU8gezQ l/SrxUCsVINh7s+HvyPHIQI70IcQciuPQt6xm2rGIJRlDLcxFKKHrvDrQKiZHcoPru2a A+i8PKuhRsdzdk3Q5th5edOqLLdfzfH0qUcHPvrFj+yEsGCWTmDIPapjVSuQt7exwBze ceHTnxaCHwvhrZ77BNnRqbEiOf2qxH016udv61Drw0rilPxSo2VAorMGKbW4Fxa5hiHB 8u3kffaKaGWTJeweA7KKeYtqDEmo8UxjiuJhDRG10b2W8d1NPhPGdejl2wha7MbBrJ1y O1+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717813422; x=1718418222; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=r9V+yvJSOPxV6HkhRzMGuSvkZwjbSgJnARuZIs0WNJg=; b=Cs3l3JJI3aRBE+I4hh1IkkL8azULJ3IxY38Bc/ntWmiMBbWxJLn+204I39M8sALWGD JbtZUDgxjdvOsqZ1khCT2RGk3qJT15tqhaGkW9bNMnQt3cyHUl+2xxCF2JnNTBtf0bdp M/OiKz1zOCwiM/IePEYjh0gxR0LseRsnfBGicilanj5VHivmprpNwQWT1wrwBy5yzLiz M/cB+90wozbOh6dBcm+OZ3jasbO0FZMOkM9918Y/huXk0ZIbUa3E9a+U1IdpK6S2ml/S uzqAdsygdlp/qmSUENS+lEWGrTv0No4i0BpHoTwpJDhOWryMsF9t9FC1hhSJ0zFK2Etd I0pw== X-Forwarded-Encrypted: i=1; AJvYcCUp6YNRB6SwLb1r3BbtoIJHTlbATEtJ0iJ6aaWr4NMxqflZ9lKNbt0RZ2SeHSbIaOqXIYcdnjT02nfavF2+VQ3qPpUEpdNGcMfQskJe X-Gm-Message-State: AOJu0Yw+8EWbhEiG8WMXvY4INNbimQla5rwf7fmlnriP+lNXKZzypuCH SyZKIKFt8C+hiQwMNprJ1Ix9zPWH/5D+4bIcIlcZVFPGF9aOcZjJE24I8DMawpo= X-Received: by 2002:a05:6512:2526:b0:52c:812b:6e72 with SMTP id 2adb3069b0e04-52c812b70acmr60133e87.1.1717813421804; Fri, 07 Jun 2024 19:23:41 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52bb423cf1dsm708744e87.203.2024.06.07.19.23.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 19:23:41 -0700 (PDT) Date: Sat, 8 Jun 2024 05:23:39 +0300 From: Dmitry Baryshkov To: srinivas.kandagatla@linaro.org Cc: broonie@kernel.org, perex@perex.cz, lgirdwood@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, krzk+dt@kernel.org Subject: Re: [PATCH v3 0/4] ASoC: qcom: display port changes Message-ID: References: <20240606104922.114229-1-srinivas.kandagatla@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240606104922.114229-1-srinivas.kandagatla@linaro.org> On Thu, Jun 06, 2024 at 11:49:18AM +0100, srinivas.kandagatla@linaro.org wrote: > From: Srinivas Kandagatla > > This patchset adds support for. > 1. parse Display Port module tokens from ASoC topology > 2. add support to DP/HDMI Jack events. > 3. fixes a typo in function name in sm8250 > > Verified these patches on X13s along with changes to tplg in > https://git.codelinaro.org/linaro/qcomlt/audioreach-topology/-/tree/topic/x13s-dp?ref_type=heads > and ucm changes from https://github.com/Srinivas-Kandagatla/alsa-ucm-conf/tree/topic/x13s-dp > > x1e80100 is verified by Krzysztof with his changes in tplg > > https://git.codelinaro.org/linaro/qcomlt/audioreach-topology/-/merge_requests/7/commits > > Thanks, > Srini > I have been testing this patchset on X13s, switching between speakers, connected and disconnected DP output. - Once the DSP got into the state, where I could not further get it to work until the reboot: rohan pipewire[1749]: spa.alsa: set_hw_params: Invalid argument rohan pipewire[1749]: pw.node: (alsa_output.platform-sound.HiFi__hw_SC8280XPLENOVOX_1__sink-48) suspended -> error (Start error: Invalid argument) rohan kernel: qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001006 cmd rohan kernel: qcom-apm gprsvc:service:2:1: DSP returned error[1001006] 1 rohan kernel: qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001006 cmd rohan kernel: qcom-apm gprsvc:service:2:1: DSP returned error[1001006] 1 rohan kernel: qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001001 cmd rohan kernel: qcom-apm gprsvc:service:2:1: DSP returned error[1001001] 1 rohan kernel: q6apm-lpass-dais 3000000.remoteproc:glink-edge:gpr:service@1:bedais: Failed to prepare Graph -22 rohan kernel: q6apm-lpass-dais 3000000.remoteproc:glink-edge:gpr:service@1:bedais: ASoC: error at snd_soc_pcm_dai_prepare on WSA_CODEC_DMA_RX_0: -22 rohan pipewire[1749]: spa.alsa: set_hw_params: Invalid argument rohan kernel: qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001006 cmd rohan kernel: qcom-apm gprsvc:service:2:1: DSP returned error[1001006] 1 rohan kernel: qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001006 cmd rohan kernel: qcom-apm gprsvc:service:2:1: DSP returned error[1001006] 1 rohan kernel: qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001001 cmd rohan kernel: qcom-apm gprsvc:service:2:1: DSP returned error[1001001] 1 rohan kernel: q6apm-lpass-dais 3000000.remoteproc:glink-edge:gpr:service@1:bedais: Failed to prepare Graph -22 rohan kernel: q6apm-lpass-dais 3000000.remoteproc:glink-edge:gpr:service@1:bedais: ASoC: error at snd_soc_pcm_dai_prepare on WSA_CODEC_DMA_RX_0: -22 rohan kernel: qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001006 cmd rohan kernel: qcom-apm gprsvc:service:2:1: DSP returned error[1001006] 1 rohan kernel: qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001006 cmd rohan kernel: qcom-apm gprsvc:service:2:1: DSP returned error[1001006] 1 rohan kernel: qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001001 cmd rohan kernel: qcom-apm gprsvc:service:2:1: DSP returned error[1001001] 1 - Once in a while during startup PipeWire will try opening the incorrect DAI and then fail with: rohan kernel: hdmi-audio-codec hdmi-audio-codec.8.auto: ASoC: error at snd_soc_dai_hw_params on i2s-hifi: -22 rohan kernel: hdmi-audio-codec hdmi-audio-codec.8.auto: ASoC: error at snd_soc_dai_hw_params on i2s-hifi: -22 I think this happens if previously I have selected DP as an output, then closed gnome session, unplugged the cable and tried logging in again. Generally, it looks like even though the Jack is reporting 'unplugged', sound daemon still can switch to to the disabled output (or the audio card can be left in the stale state). In case of DP this frequently results in audio daemon or DSP failures. So, the DP implementation needs to be made more robust, so that if DP output gets selected when the cable is unplugged, the driver will not attempt to configure the DSP. -- With best wishes Dmitry