Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1417931lqa; Mon, 29 Apr 2024 08:01:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUX9kCRiJOpAqL91IC8iMp9jGmtbOAfEZ1+f0J+hz4mdy0yL6SlPQfPCbf1wtme4Q1pQre4j6Muvk/zLc5j7L0UzJXPh9C3zyGcKpLnnw== X-Google-Smtp-Source: AGHT+IEeOwHSok5ZCyy8ZO/7TQhx9bbxhwKb6YkwtxH4nxGJxbvDzEkfPFXomAyNoNSYAsDGUvZ3 X-Received: by 2002:ac8:5e4f:0:b0:43a:ead8:710f with SMTP id i15-20020ac85e4f000000b0043aead8710fmr3773584qtx.61.1714402860614; Mon, 29 Apr 2024 08:01:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714402860; cv=pass; d=google.com; s=arc-20160816; b=fHuwUMc5NI6j7kJ0XNbh5KJ2cVMOKnbrYUbNCHSrwJOmbmv0UaiJxXNHnCwvIjvI23 /6EVx6Z3JHAQ1LcOilsXCQZSuEp7X0P98ts5v37oRD+geJneN4ixuHUp975EGW/1yQX1 +fVKN6xs3ZA372ydRodbAJ7yMQ51GdHMaehNWN2MTesrBlIIdBzQa6OUX5sNKByHCD2g itdnqceMkPcJIQvDglszR5HyCD8gYV30GGH6RuTxSQlfjxuwb/ZovoFRvaAyvWpShm+h fQJkzHIe+CwSCgzGs4IySmgVTlW1YL8YHMIpMYlhpYyKopxYtWqVm2f870kFjb/5ANtd norg== 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=M5vzqbT13yee8pX5qSwOtnWcKuCi/C0/sObiu4FTjNY=; fh=mwpT/+5dellVSlc0uXRi9LmytlfDPnA6Q9xYd9IATmg=; b=A701hBtKOS3mpXjajK1TfS8BxqFC2WVrIzAW6tLbPj2f4PCOTmvNnt3W4acy/SgxvY CdVgS1RN4/ZIurTq8gAmBvSr9jOjmAFmtJktIT4KLyekY1LaBEFlYLo47R3h4M300NLU 2sxoecvNGO34IdU2HQUUgHMyGxvPjIJmkvCxD2M0isc5bOg6SwFVbRdrAYzmbYAYAPzd 1qqYrZl8PNqlhSxuOGVdwMTc5WI/dHzv4BPPIlVKJmoByGRqgxx9VYmlvw2p3pIZJ85E diKiKDpCL/LGMCRDBU79zf8t27ljU43Vpfq6ztIJA9aB8MqFCBYYyZPzSf9VGQbftIJt amLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vy+Ua44h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 en5-20020a05622a540500b00434e7090a7fsi23770624qtb.563.2024.04.29.08.01.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:01:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162507-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=@kernel.org header.s=k20201202 header.b=Vy+Ua44h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 56AA11C215E2 for ; Mon, 29 Apr 2024 15:01:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 045DB8120C; Mon, 29 Apr 2024 15:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vy+Ua44h" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31B7C80630 for ; Mon, 29 Apr 2024 15:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714402842; cv=none; b=GdbHt9SA8G2EBXxSDb2xViOurCoJmUIb8HhLcD45WR1ZgtQ5hmx7ith3acZ9zMmk0oDdhcUSG8KEDHtSu/mL8YOba55u0+upJtUp7dUHcKoI1+gIIM4CQJnbLPcMtoDscvx3+Gp90gRxT1oKIve8sNSsaTs+0RIC+mwgn/MOYSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714402842; c=relaxed/simple; bh=1EwieA7QUF9rLJWyLDX+qUl7U2/uRBK3RtLbBgX3Hww=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e80rmFDpPwelUaIo+scuwM/oefPCz9KQgxnAS5F+Y3XLSD+r16muhqRrbX6Psl/m2hynHy/dHyE0uXiglSh8Qni/IefdDR00v0oHrJ3oZmD0YNyGQskPnh2UH1g+7nU35GeYJI/t2bxqUKtuDM88VoU1OFsOsvPzrZDELjVQzH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vy+Ua44h; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F4025C113CD; Mon, 29 Apr 2024 15:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714402842; bh=1EwieA7QUF9rLJWyLDX+qUl7U2/uRBK3RtLbBgX3Hww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vy+Ua44hajpgT2+BhYXGsME5V8NCe8v21/S768xNPsTQnz2zGWqtiIGDYg0cem1IQ 2kpWL9AIxmhHYNFt7U7OHCFKPdGhP1npPJgRH0zsZG6q9oaBsTHX1wwB72vpN6W2pV w6a8zfnUHIEPeQpTDBZslcLWfx4q7rFU6Bn7Er53CI1Iko6CsACOHrjUy0KQ7GAib+ s753iW4wcAVzxKby6OaK3OraQdvZBcQN0Rng1G64S4XQQ+yCol/sejf7DOa07FQROy MdqXkWq+8b54M+1rEYed0DhZ+DYt2Km/dWs7WTNWvxe/Kwusp4eKT3cdGZ5VQxO3qN xL6KBfcREkVaQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s1SUj-000000005LT-3cUe; Mon, 29 Apr 2024 17:00:41 +0200 Date: Mon, 29 Apr 2024 17:00:41 +0200 From: Johan Hovold To: Srinivas Kandagatla 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 Subject: Re: [PATCH v2 0/4] ASoC: qcom: display port changes Message-ID: References: <20240422134354.89291-1-srinivas.kandagatla@linaro.org> <92b02fd3-5eba-42a7-a166-21b14724b10c@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: On Tue, Apr 23, 2024 at 04:59:56PM +0100, Srinivas Kandagatla wrote: > On 23/04/2024 15:58, Johan Hovold wrote: > >> 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. > > This bit sounds like it can and should be worked around by the driver to > > avoid hard-coding policy which would prevent use cases such as the ones > > mentioned above. > This is not simple as you say. We have to fit these into a proper DPCM. > Either we have a dummy Backend connected for each of these pcm > sub-devices when DP port is not connected and then switch back to DP > when its connected. I don't know how best to implement it, but we shouldn't necessarily let that determine the user experience. > Or somehow find a way to not let the pipewire talk to devices which are > not connected. Yes, perhaps it requires a change in user space. But it seems the kernel should be able to fake whatever probing user space currently does to determine if the there is a DP jack (even when there is nothing connected). Johan