Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3004161lqt; Tue, 23 Apr 2024 07:59:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSxziGMpaLfUiW/CE2aUHy7lvelReuWG8vjDcTe8LRmLdsaMFctKdSePF5giWcN9SVZ1b+UPt0rnK+vJvJIYwM2U/Q8QaDpiJpXFAH4g== X-Google-Smtp-Source: AGHT+IHiEJqtOrWswKSrxp4cW+JHDw/rJZscGYpu8MsnEz3kqhgIlYdoLajCIV4wxEUAdmP8Bvqt X-Received: by 2002:a17:903:1248:b0:1e8:5dc6:4060 with SMTP id u8-20020a170903124800b001e85dc64060mr18438637plh.33.1713884379599; Tue, 23 Apr 2024 07:59:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713884379; cv=pass; d=google.com; s=arc-20160816; b=G0GB5J66zEOe4MDd6OGcurs98tflqgG84Fh3nuHQzJUBlYGdAcnYrrpCt5RR9nWBlt neXdtynojUbaW/drBBrfzDEi7C7UirvQt4DHIi6ejnCt+DtoKxvHuIzNyEd+lG6KCFCY Qxgh+CLXg7fImUTv5G7vmKIm+WWm6FKxIEULZWBFsvTZpAkwu0IyqMe0hWwoNX7hN42g MAwQ91bQjeplHiNHfliPpRFntLz2sh/2WNfs//DHmxCv/RWFe+n+Xx8wRntJMklhoS1T I2Yc8A1JgCNMe5CmrYdM6qinYjZG1KoCBJd5opRdGP4mFFCEidQG1XbyehTo5CdkgBs4 PmFA== 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=cO9vHh2N2yZ0xHRd2veqP/fqvBKRztlCsGnsUOru06g=; fh=mwpT/+5dellVSlc0uXRi9LmytlfDPnA6Q9xYd9IATmg=; b=VaHb+x4BFnR+zqBK6Wjf3iwp650ujB9/n60wv6gVHrYd9uor89liPr0UCufEsdylWO 6xDvUJmuiZ4RN/uqt0xilqTZhd5+1scfE1LHiHV+oex8zrE+hsGkRJyc6+hVN+G+xjas iBHMkfc5jrDEU23oHiF0Ylg23uVjg8OYae33ceYGXZ19QMA5v3FsIMHf5UlgK/X/3Hxu jqyyh+FpqkWO7ElKAio8HYM37YL3vi7LiKlDdubg9zQoQvabEdW2eNFdQYNN9t4AFYwd 6FFDl7xHNloW/ZMi9fRSTMIUxADQBEERJr2VDN3fCaMKoJcCcqsCoN3ABnQJ22tBwEBh im0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lavk+HSl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 u16-20020a17090341d000b001ddbde8f59bsi9795365ple.582.2024.04.23.07.59.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 07:59:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155405-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=@kernel.org header.s=k20201202 header.b=Lavk+HSl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155405-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3569D288B55 for ; Tue, 23 Apr 2024 14:58:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6ED1513B58D; Tue, 23 Apr 2024 14:58:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Lavk+HSl" 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 9B6B519BBA for ; Tue, 23 Apr 2024 14:58:31 +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=1713884312; cv=none; b=jvbBQq8JaANDgTM8+eIe/81ByAHOXpexfDhTZDFzx1V/tghUhX2+XlT553Qez4wM6cUt88L5aP4+/66w2yiZrNjEC7P2+jhmgtgaBB5j7y2HvgEgr5YnK4YU6wsahu1BAY8Yevvc+pZLX0YSnISerdwTKl5abXl2JfORRHCMyow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713884312; c=relaxed/simple; bh=1YHO87gpuA4GWmgj2Um/hut9wEBNIU7DZW6ecVbdQog=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S5oXs2S8xBHzWnLv97AZr7OMeFH8q97Bl4WXik9uaQIrAVJxgcYm5s4pAK2gjLwLXHvd5ri96m3YB+I57cUKivfSS4j7Ze2cv0D2O9R/UKgwUZCWD05W+/NykzeHXVWhhUsi6lcUdEBLtnNTtzY5axwJdWr22IeKiRUpcuVoAIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Lavk+HSl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23513C116B1; Tue, 23 Apr 2024 14:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713884311; bh=1YHO87gpuA4GWmgj2Um/hut9wEBNIU7DZW6ecVbdQog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lavk+HSlkvCpvWHOmB/TRotL7IHCxCKW0b2IhHibrA+Y11LllPj7SumxIUl+BAtUl x0Wn4ntm5NdIfBQ3kQRItM+vrb1U4IqGNr0ZsJ/t1abxEjfEh4lhsIltm/s8Aouw7c RkT9s5MSw1Q8zp65Dcdf7bEVqVlGuAoyuVh7dROOGhV0PxW60PEPIl8jOFfn0SlVkD 3TdYDtV21DgzEFowxzeviKHhQnZ9eIlLGLeyjZ1QfW1sUNY1TGnZTr4CEsKRkGGPHT NrqKPxTDm/H0cHAfUv8v1auQMVEhEoSc6CXD/jz0w43X58sRq9B6t/OP0NXCKroCq4 fO0bVZD6FVGxg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rzHbJ-000000002ag-1MYj; Tue, 23 Apr 2024 16:58:29 +0200 Date: Tue, 23 Apr 2024 16:58:29 +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: <92b02fd3-5eba-42a7-a166-21b14724b10c@linaro.org> On Tue, Apr 23, 2024 at 01:38:18PM +0100, Srinivas Kandagatla wrote: > On 23/04/2024 12:59, Johan Hovold wrote: > > 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? I can imagine streaming audio and video to a TV (or audio to a soundbar) over DP while playing systems sounds and doing video conferencing using the internal speakers (or the other DP port). > How do you test it? I never tested anything like that on a full desktop > setup. You can select the sink per application in pavucontrol. Just verified that playing audio over the 3.5 mm jack while playing system sounds using the internal speakers works just fine. > > 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. 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. > > 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. Thanks for confirming. Johan