Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1534091lqt; Sat, 8 Jun 2024 02:12:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJwlK5jT4WQ0z3SBDexZTPi06E/+9fI2tQoyDmzi5lRnseYcirBzCgocd6iSabUulhV9Q5GUl5orTP/+AkY5+XO/WLn5DNlP/RjlmpYw== X-Google-Smtp-Source: AGHT+IFGagpH5mDnrrOX+C1DBBP2F7yPbSs2l1eRsPZ84jITHyx7gLhRtwzHIQWxVBMcCLuB6MJg X-Received: by 2002:a05:6358:4195:b0:19e:e48f:939c with SMTP id e5c5f4694b2df-19f1fd1698fmr474732555d.10.1717837938252; Sat, 08 Jun 2024 02:12:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717837938; cv=pass; d=google.com; s=arc-20160816; b=Qv3xMD4s0nbWKexYCSfVpsM74brzm/W6nbGlKybYuGfi+JaW2j9yXRZFSR8p27GDMX SWCDqSSTU0FZWeRfffl5iuuG8tgWfnloUM/+WTFHxW+G599R0Rd45aUX+ERgmQIyx/Gd vKxqmJ8a+tesSDJ8/+m//YIFeahSX4RQGjtV63txTcMo5GKXrESiqqi24PKDZDJROvIV Ul2qlrewii++EjxThSfYXG5IzXRFjhAj/d5E1dEyYhwz1dy/i6bZ5cS6bKMQYLwE9Bfp FcwZL1UjfTkar1dAJVurYythoaOS5zPsDPxSpLUgNMlFBtj72+CgbaVcXQtwDeQfS9Hy T2Uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=B0UpUKnkWpc6C7/avXDFr5uyhktb5SegGLRIL+r2gqA=; fh=Jd59P1HILlroEJvH4WHnAxd5Z7Qqoh3LW5NPRVjxK6g=; b=ZJfs16XuojL3vszB/3be7phQ6TKSG7dIAt48WT4HfbBSXRPkfhfMoreLfVBz1NSqkf AOOGmttEMlrnOgZNXo2x5VAlMVl/JxtdCLmrvXSkTj8VkXL7tM6ZY2pSG6UHpGd26tWn +B5tor81J2wwZ2RuJ1m4D1pKbkg8iM//OSHLU6aYzztTTVmYE2MjD7gzRFfLuf0Bk6GP Nrwu+cIV4zATLqEyiO0DMi9KvKqDVBfJ6ihpu9Cha2c92/QM5pCkV+FbrlvAwNonS/fj FdBJmOSXCP8Po5ihHuQvOjsWDlfJg6oVJVD1QW72SGgTHJcqzaC9K2Of2WpF1CysZ0L5 NycA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T7O3r78z; 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-206984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206984-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 41be03b00d2f7-6e80cdcb47bsi732606a12.699.2024.06.08.02.12.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 02:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206984-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=T7O3r78z; 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-206984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206984-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 CEC92282F2B for ; Sat, 8 Jun 2024 09:12:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFAFF176FAC; Sat, 8 Jun 2024 09:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T7O3r78z" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.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 CFA931B813 for ; Sat, 8 Jun 2024 09:12:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717837926; cv=none; b=DMdJSwR7NuQG15cfP+iwhv273KN0t1/ojrCB1KVVMG/061gIwjKUSNpcFLl5sz59aauLP0Do4rvNLBnR6n2iKEzSFUv/BX02O6uAbdHD8rtjeF1PiHhlYc6frheGiyObb1pLHgWbR3rtTQVgWwUmW4NQ8tUIfxlqqKcHknNY8dE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717837926; c=relaxed/simple; bh=eVab9dY4pSAIshPG2LfxmqFFlszomKgU2u38kNf82Fc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Bf5AasljKd2zOJZa27AEBpGVv6WlRGKboer1o5AY/fSNpAGZqeB91KOUhnrLH6rppIThIn1EWI/AVJijfc9sqFl169acYufz6FFjHevxzsgK5PwUFVSm8+a92amyaTct4o+2qVncEKHDECzb91huWGmsN0lAybWLk8kmgaNgK3k= 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=T7O3r78z; arc=none smtp.client-ip=209.85.208.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-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-57a30dbdb7fso3870398a12.3 for ; Sat, 08 Jun 2024 02:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717837923; x=1718442723; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=B0UpUKnkWpc6C7/avXDFr5uyhktb5SegGLRIL+r2gqA=; b=T7O3r78zAc8j9TgX6xtD1GOnGZwtCSnXibSVUXWkCsPKKq2o/0z5Yvm4UZf5jsysi8 vU0XKPhd8T7SK3MEUHrqlmrdE++ua1posch4Hnm/oTwavEXu+QCBd5z3kLl+Kn/dfpVx Ok1byU0gT4Xw5nxMvEb7A5jE17+PLx2g+bGt8Xo/D4mqJWSUnuLPwHQ2Dqkk+qJmxSWy ZhzXjuF2Ls8qYWRTG6aiwVuB9FcdbllilY96QClBOgcq4Z615Bd+jNEwYyP1fkHo+7ni jE7MMdXTzKeM0anQ1Vup9ll9rQDYGoQnEXb3c8BnrLe3JNxV9gj0oRw6vPKfoJgLpJJO X6qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717837923; x=1718442723; h=content-transfer-encoding:in-reply-to: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=B0UpUKnkWpc6C7/avXDFr5uyhktb5SegGLRIL+r2gqA=; b=edVqTRV5jqsF0lz1WjBpkgyZQ6AzYv4h5OdUmtz41MwDizE+ykoBtwXxDN60ONmLNq 3pTacWisluPrjTiYy2Of96AIItnMN9y1FmnPpHsWzLjT7Ho9KAlGSlE1mBl6usOnLFpV xjVG4gXnvSW8dEVbBbF+yOWfZxJC3j869N1gcuSPKBUVE5+W1b/2QmA9JrpSwRl0nX+r aV2QS55sLxISBujajrOHBz4MhhY5Ta1CPcF6DEO/DdidNv7dPtEKDYIJ1Zk/Ui2H5zBZ xRz8DOGJYOHh57A4A16ehvHG0oorJaTd7P2fq6V8zaOdShy0ZAhW3ms3I0iSfUjGQAC9 vXwg== X-Forwarded-Encrypted: i=1; AJvYcCWhnkSg7O+PFproVnSFlI3lj/HpkCSOFf6m3MDNEKksyZaILHCEQOgBS3ZyTyb8UYzdwpryreXViDhSLPFneZqflQvZmBsrJLPVOG1K X-Gm-Message-State: AOJu0YwbqTZ3I6hjotie8OdbZ4quAtUEgEyf1lc1LsP9D94ZP2/EjoK2 8ZYSgvLVT3bUSUMfB8S1sPzgaXJ8eED/iqME5hFozaLliqR+ecAHXhS0d4CgRWM= X-Received: by 2002:a50:8714:0:b0:57c:6c98:b622 with SMTP id 4fb4d7f45d1cf-57c6c98b85amr620690a12.38.1717837922899; Sat, 08 Jun 2024 02:12:02 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-57aae20238asm3998372a12.73.2024.06.08.02.12.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Jun 2024 02:12:02 -0700 (PDT) Message-ID: <3ea05a12-27a8-46df-9fb3-28501404a399@linaro.org> Date: Sat, 8 Jun 2024 10:12:01 +0100 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 v3 0/4] ASoC: qcom: display port changes To: Dmitry Baryshkov 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 References: <20240606104922.114229-1-srinivas.kandagatla@linaro.org> Content-Language: en-US From: Srinivas Kandagatla In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks Dmitry for testing this out. On 08/06/2024 03:23, Dmitry Baryshkov wrote: > 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. > This series changed the Jack event names by removing HDMI string from it as suggested, did you update the UCM to reflect this? I have pushed changes required to https://github.com/Srinivas-Kandagatla/alsa-ucm-conf/tree/topic/x13s-dp Can you also try to clean the asound.state restart the pipewire. > - 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 I think this is to do with ucm changes requried for new jack name. > (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. I have tested this with kernel: https://git.codelinaro.org/srinivas.kandagatla/linux/-/tree/dp/sc8280xp-6.10-rc1?ref_type=heads ucm: https://github.com/Srinivas-Kandagatla/alsa-ucm-conf/tree/topic/x13s-dp tplg: https://git.codelinaro.org/linaro/qcomlt/audioreach-topology/-/tree/topic/x13s-dp?ref_type=heads with the above on my x13s, I can properly do switching between dp0,dp1 and speakers with no issues. Can you try them? thanks, Srini >