Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2911329lqt; Tue, 23 Apr 2024 05:40:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUrAylwvFC+mLYxsdiz2UcXsGB/SThRb+yackCYlQYJEjDHx0BKY+2i1dAbFHdSeTUxJUQI0XReBPLYwCkce3hyiIgUK3/4+RtfFIGVQ== X-Google-Smtp-Source: AGHT+IEKk5ryLw3xsNCOB5HeLj8knjV/M3EdDxfeg7oAMboR+M2YRL4oT6IAuXjKrkFRsI6mF0mR X-Received: by 2002:a0c:bf04:0:b0:6a0:7ecc:3592 with SMTP id m4-20020a0cbf04000000b006a07ecc3592mr6893611qvi.38.1713876018421; Tue, 23 Apr 2024 05:40:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713876018; cv=pass; d=google.com; s=arc-20160816; b=aSgx9Ta5RkDM/TmvD/eHobvzatg/4tlg2fylrqF9eyqDJ4QPqdK6Mk0d2sYQVfjUW+ vs+V0/zpumQ8rc10oPXRG2TTrD2QsmHPMBcXGBOuKlSwat3vLgChofEizJFqb6Jzp1Tq Im5pGw6VDwDDi/1WzbOahTdhBgu1UDyqbafIQGGpdkCzpQ5+wSVUgxO2FjrPLhYPVByq 7mEjloTfw1RaOwH8ARP9MhMhG0+c3c7xKzOz7me+UR9THR9DVqt/h9JeIllHlOD9uNg8 u18tWE7x6KPVN07RSuXS21TB6piL+bXXjuHmL6JcHCdKBx/UtVeKgsh5xnoBh2W2CtUe RoGA== 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=TIW/4kaIcgQ3dsiNOn7qNP3zsB635HzMYPtbd1p9/VE=; fh=iJ3Vcd7AjpOIjqDrQBPpgDzb2bQuJRqsNBdNoayIhS4=; b=RKehN+HtJ9Q6dXvNwI+MOvK6UnUJ6EoUecPrxwXUAKxh+310KWuk7bwb7VEmsppk+0 fGXjKuyKyV1xWuSj7tEa3KeDLhEIQUfNhymsuyuFRrNBTfp3LAM5gCnAFlQdS1kx53LJ /fqj0cJFAUYQliWozJu8p0GlOv1ZFXIXA+sIj2v7860+A4Lq3UmA8kD+rkvfTAs2dq00 gytuyZ/v39P4JXa2UxFTpX08oONqI3vxqRkTgIrXU5LcA1fV4ufw350pQTnNRo9glY2X FsBWCEws4nCCNOSD2WDl+S6YC6wSIm7aXqAYnGh9iNqc5LWwfJm4aBnFI8HcOSMhZeqP WYlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VVXlHu9C; 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-155183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155183-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 iu8-20020ad45cc8000000b0069b4115a0d1si13134416qvb.15.2024.04.23.05.40.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:40:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155183-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=VVXlHu9C; 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-155183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155183-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 1ACF01C22079 for ; Tue, 23 Apr 2024 12:40:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B073B12EBE7; Tue, 23 Apr 2024 12:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VVXlHu9C" 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 2590F85631 for ; Tue, 23 Apr 2024 12:38:20 +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=1713875902; cv=none; b=oTSQdLMTELh0M0cwTIqmOTvL8LIGYfh7x+CDoHIZy2BKH9Spcnil8NEbFtP71qWHsJBkGChMJH9HQN9MwLB7MUy+M/KHMHaS/MaKC/RrZvXeWFdWO2lgQnn4RVVdna5A7K54QrGsWYruz/pWt9qXCXaSRJNLbuWUT4nk7ZpiDX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713875902; c=relaxed/simple; bh=J/tw8yRBYo/0EgSy+tQkCdevIsk8fSb0kvRYZM3GDFs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mLeHKXeHemwjw/HWH4P9m+Aov0sqAz3xwuosWwhOdWe/BoMJKFpYE37BCfqLku30jWBdmM0JrG4qhH+CigxwgXCLcoYtZ1zu/g1s/zZG43hyydH3tOB1aqjA4QHjLOKlvFQbDD33vCBTVYdqv03KqES4MQXGIvuzHYUQNbgt7ow= 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=VVXlHu9C; 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-41adf3580dbso452915e9.0 for ; Tue, 23 Apr 2024 05:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713875899; x=1714480699; 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=TIW/4kaIcgQ3dsiNOn7qNP3zsB635HzMYPtbd1p9/VE=; b=VVXlHu9CXZqoztQocy6u8DU5OvlCWLqmddqPlIx+wpHX0wTpPj8TCfe1ERm+EZTO+o utS5D1h7KdnNUnrUnr7rpmKNGKsZWxUHpy0SIFDfQMahqUEyNi5+lGKdB2dAmHzDH/0q AvZJFyQobDhudPsyBZ/W09TGyWFa8J33WLZ5EcH8P5Zfnd1IfjsegCdp43iNT2WXhwAn G8y+aXANy1u3/xF/iYtdCZTv+IqYMjVdw4JkaClOSoswtPA5/S/aAiTWf2lrBE+w4vdt Fpjpq8jO9IFXs5PFQ58PXuP7T+Gzi3fLjci1+n9M889k7pysCdhzVYOei//ClqVAAJ07 /n5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713875899; x=1714480699; 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=TIW/4kaIcgQ3dsiNOn7qNP3zsB635HzMYPtbd1p9/VE=; b=Ziyn1GcNzL97gaShsbd8Ba4SNdgl3eq9tskTLUnbcJvQPa3TfeDJfhA+Frp9VdqgZQ GSIYxZOJ28MeATyjaLjxEIgulfRa7U73gAOcND3TSY4GGsFEljJSEoecb6cLkvZWLvMH Mm/N4Wrr7Q3rRBqnqJpAWLYP+ldsnSjo3TG3p06z8tvBFmJKfU4X4MOY11aCqIYsQhqp sOXRele9VYIMAfWAJrTPi25yxE6XFZJ0vy4zziCSVOm17euiv3z43A1d2cESqL85/rRd mSnrlPCKCZ3Lzej8C9kmlEqqWgDNQx03DcTN3sxBmU2iVPWxLUQ77aJXBd/k/7g4B9eU dGJQ== X-Forwarded-Encrypted: i=1; AJvYcCXCd+jcoeuEuf+i9b0ymdccn9XMbf3hQBiyLO3CVnvuG/UuosephCCG6fhh9q/aN6doG1z4TUscZPDaVv35BnQrYhrm1Wgm0yMg2o6c X-Gm-Message-State: AOJu0Ywqv3d/C2sOHq0vFyF4MfDHR3yERhWtzRp3UBR+FlFKTUoDYU3E 3YqUkRqhUbqWTQXih6UaguKfEjrrHW2qhx6k3mOSYpkydhczpIxrHlUvKy2IOrM= X-Received: by 2002:a05:600c:3b9c:b0:418:7ec1:7bdb with SMTP id n28-20020a05600c3b9c00b004187ec17bdbmr1874101wms.5.1713875899466; Tue, 23 Apr 2024 05:38:19 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id s7-20020a05600c45c700b0041aa570bcd3sm3029800wmo.35.2024.04.23.05.38.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Apr 2024 05:38:18 -0700 (PDT) Message-ID: <92b02fd3-5eba-42a7-a166-21b14724b10c@linaro.org> Date: Tue, 23 Apr 2024 13:38:18 +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 v2 0/4] ASoC: qcom: display port changes To: Johan Hovold Cc: broonie@kernel.org, perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Bjorn Andersson References: <20240422134354.89291-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 On 23/04/2024 12:59, Johan Hovold wrote: > On Mon, Apr 22, 2024 at 02:43:50PM +0100, Srinivas Kandagatla 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 > > It looks like your UCM changes are still muxing the speaker and *each* > displayport output so that you can only use one device at a time (i.e. > only Speaker or DP1 or DP2 can be used). that is true. What is the use-case to use more than one audio sink devices at the same time for a laptops? How do you test it? I never tested anything like that on a full desktop setup. May be some manual setup in Wireplumber, but not 100% sure about multiple stream handling. > > As we discussed off list last week, this seems unnecessarily limited and > as far as I understood is mostly needed to work around some > implementation details (not sure why DP1 and DP2 can't be used in > parallel either). It is absolutely possible to run all the streams in parallel from the Audio hardware and DSP point of view. One thing to note is, On Qualcomm DP IP, we can not read/write registers if the DP port is not connected, which means that we can not send data in such cases. This makes it challenging to work with sound-servers like pipewire or pulseaudio as they tend to send silence data at very early stages in the full system boot up, ignoring state of the Jack events. > > Can you please describe the problem here so that we can discuss this > before merging an unnecessarily restricted solution which may later be > harder to change (e.g. as kernel, topology and ucm may again need to be > updated in lock step). > > From what I could tell after a quick look, this series does not > necessarily depend on muxing things this way, but please confirm that > too. These patches have nothing to do with how we model the muxing in UCM or in tplg. so these can go as it is irrespective of how we want to model the DP sinks in the UCM or tplg. --srini > > Johan