Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp10718lqm; Mon, 10 Jun 2024 11:01:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZlm/rzpMdLciWTJVe8eOYuxqSupQaN68cfSTgUKyRg2ftinAcMxGNmWuCMBV8yWO9oHHuy/hg6Gkn1McBa/4aC/nwfymGdSZpZeE5tw== X-Google-Smtp-Source: AGHT+IGkev5/Cgpt9DSyhpnT6lst4WGM/QnnnFeyQPxWt6R9BF/1imWhlL+ErD5QbXXnn1i4l7JU X-Received: by 2002:a25:f626:0:b0:de5:cd02:8317 with SMTP id 3f1490d57ef6-dfaf664592amr9398964276.40.1718042488511; Mon, 10 Jun 2024 11:01:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718042488; cv=pass; d=google.com; s=arc-20160816; b=oAdk+WF0RN6J/7nteF5y1WCPzXDOXn90F4ZA1++cjK4fQlqh8wzPUDRmZ88PAs+lDW hTsqcKQcYJQcC9T2q1qb512IYO1C0lur42JsCiA5+PLxlNGViVpkDgqxggBmObiqMLKw yRHxk2bxANEAq3xwM0rOKlNYPR2rLzEpjxkbgx7wDXrvBZprpB1RYR2BGpQwQLMsGg8H LwP3BibPKcI37wrixrqPUKlPrDchs7ZJfDz6Cg0Z5FE5Nekvug0lw/fLs8GKPxcxITZA ePLaIhPjvfB2rt3m1wcLLys4GidN/s5txnozsTflN/dpQUt8tu/pippSVRHF/KHFpWOF Smyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=/0KaDHM8PScqCd7K0oCuZ7GctWWLIl5bTkF49b4ZqfE=; fh=VRmggfriNTm0wDmros9yByMLd0AWaCLJkBpMfKhtKlA=; b=PsOgL8dUQMieOuPweN8XCZXkDe+SI7riGISrMouJeVPk6OhTujx5fl/vVlWe1iwSkR 2YW07GlN9+eeDmPUWHW2u9g+dDzlKxhXu8JzPddQ9n3erfzMFbsECX6Z8Fpc4rlvN4I1 YOgYRBcfYWnHIJSW0KuC8CigU9rOudqCQ2XqASgsnAaovUt3j9Obujnsn6W0kGKp3qDf tda4ytkrnvkCtk2fvEcmz92+Yh+L0bnHrad3UYm7gyPufZoQNwMp+nHfrf23sB4J5dJK WKA1tUPmfZWHbo/RvYhyG1OYL+X68hIAdnXqSAoV70C9UwTbRDPUnXNkafWEjKkJkfSD 9dlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mjz+bm43; 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-208691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208691-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 3f1490d57ef6-dfb0aed9387si2570526276.516.2024.06.10.11.01.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 11:01:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mjz+bm43; 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-208691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208691-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 2726B1C21847 for ; Mon, 10 Jun 2024 18:01:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D95691487F1; Mon, 10 Jun 2024 18:01:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Mjz+bm43" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (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 68E9911C92 for ; Mon, 10 Jun 2024 18:01:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718042478; cv=none; b=P5Cm32HHGQeQ9+N8VLicN1RhTRFb+RPIQhtsRHl3mbKOIgjoXABYOpq2Zyvn8Qi0x5qiDZ9+rDqn6WLpA45Fp2xN/MkzcwgFd+krBG/N1EsTMnQ6YhxVWuFzLWHyE0hbW2jRnXh+p7TrVVTqS1LYX1tP0EDjCM/e9u5dcPALJMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718042478; c=relaxed/simple; bh=Fa1MW02xtYNxpyq3hVxOyrhFI0x0nuzPDJiQWvaIXOM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TGpWMdUT5SF+wKGNOSX2+pObwIaGwSg7DMghQdn1i1DwJPx7vq9jSTfDtKwfEEKmbKl67flCU0Gsm+Y+gGEBhnxUhle8S+XiOW6GCYu8ldzN0dOTfxFymE0Rvqv3WtzyIK7bXMVfjwTneSmMfB2qOJ8Hvv3uzMulRooHfF7H4kE= 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=Mjz+bm43; arc=none smtp.client-ip=209.85.128.181 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-yw1-f181.google.com with SMTP id 00721157ae682-62a0849f5a8so46650617b3.2 for ; Mon, 10 Jun 2024 11:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718042475; x=1718647275; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/0KaDHM8PScqCd7K0oCuZ7GctWWLIl5bTkF49b4ZqfE=; b=Mjz+bm4399H/o7GTDQwMlmLF0NrnQIBBtqvjeDjtwB5x6zYrDe1NYVg1iltV5yfzoe 9GUVxsLSckL6vEKNMXsYcGcjWV5zn+7eDxEnuPFj2KbNuZzmEZdO6EHveItpAvYLxfJk lHp7cG4+Z3TSV4mqW0Ki17qraf/L97EstQMSYd4czvIaHp+k2IJg/PYUxslkLr372YXO N8Pm+3of736obHzLK4gxip08leS732QY5TT5CzlS39fqSUpUApfSbJgvr+ttT/aHl7W8 s/I1GEFqGPaYOkVh3qRkEzPbn1E1RstZKpl6m+NzhrU8xUjVQRdlqGfS3HuTpMksSP+f Qd8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718042475; x=1718647275; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/0KaDHM8PScqCd7K0oCuZ7GctWWLIl5bTkF49b4ZqfE=; b=u1aw9sJ0MAjmYcRsj0kDibM828V0V9yyBHt/1Gq76jX0ptnwNNrFHzPkhfEUYBkqZg N84DRARIKOOJfIDgbxfxKme77nSD7zrB992pCAUbHD22ex29G0UwITigakEXWlSismTy CdZuRQOLi0AmlCpzSN6l9Sof3VJhrglBy7UvEdnJeirwcGDBljjXjUvnplQIgTu3x2ON 3iH5f5TdNhHiZNRiXlHAg4FVVuXTcGjYQGABFcA/zgEJWcMgwGkCBOE00Iq8F9AQMeCN 1cA4cFfSZcb7D4+q0HKu6xgkGZYrbNLj6bGRWTGkJ96KMIfhAEgehAJ34ncLbCPtwJA7 Mkmw== X-Forwarded-Encrypted: i=1; AJvYcCUtxgv50TCI8GLmEaKkyyvpi+clH8yGiT5iKUvQAZdGjvfyOV1u4d4wkaDWpnAn1IXckQHrLezTY0a35VJwA/0u/CHA9K4XL9GtHbnF X-Gm-Message-State: AOJu0YzI3s3mDgz3/N7FFYoS1xlKTtWMba8mSGS1xQQ6Fan9exbWtBn0 BHOrYbHMIiMlBgMTW2hKXwhOkjnVua+CZuYlWpuF2Ldw8XNtBojSOYqLtdm/XAJBIHVrjVRmIQ4 6vZoeclmly1YporitR6ArXjkKGtsAMcOcKOqRMBuoTAfTayZH X-Received: by 2002:a81:e50e:0:b0:607:d285:4d7a with SMTP id 00721157ae682-62cd5667e5fmr87990297b3.52.1718042473872; Mon, 10 Jun 2024 11:01:13 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240606104922.114229-1-srinivas.kandagatla@linaro.org> <3ea05a12-27a8-46df-9fb3-28501404a399@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 10 Jun 2024 21:01:01 +0300 Message-ID: Subject: Re: [PATCH v3 0/4] ASoC: qcom: display port changes To: Srinivas Kandagatla 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 Content-Type: text/plain; charset="UTF-8" On Mon, 10 Jun 2024 at 18:36, Srinivas Kandagatla wrote: > > > > On 08/06/2024 15:56, Dmitry Baryshkov wrote: > > On Sat, 8 Jun 2024 at 12:12, Srinivas Kandagatla > > wrote: > >> > >> 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? > > > > Yes, I did. The pipewire properly reports 'unconnected' state, but > > nothing stops user from selecting the unconnected device / verb. > > No, the jack events should prevent that from happening. You should not > see them in output devices in settings->Sound. No. With PulseAudio and with PipeWire unconnected devices are still visible. They are annotated as (unconnected), but it's still possible to select them. Anyway, even if the sound daemon were to forbid that (or to hide these devices), it would be perfectly possible to select them via alsaucm, not to mention the amixer. > > > > > >> I have pushed changes required to > >> https://github.com/Srinivas-Kandagatla/alsa-ucm-conf/tree/topic/x13s-dp > >> > ... > > >> 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. > > > > Have you tried switching to the unconnected sink? Starting the > > pipewire when the previously selected sink is now disconnected? > > > >> > >> Can you try them? > > > > Is the changing of the JACK names the only change in the UCM? compared > > to your previous version? > > Yes. > Then consider it tested with your patches (I did fix the jack names). -- With best wishes Dmitry