Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1413618lqa; Mon, 29 Apr 2024 07:54:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9AR+h5MtVEs1FJJdWvfibIarHFOyye+AiB/y5t2+t7vCzHZVCWT+7Ysij3UxeQTnNIgk+/LhNIzPzxqWHhmJclvhkvq5x3YTB1mTbMA== X-Google-Smtp-Source: AGHT+IHI3+LPfk93Mp8QR2qXVLx8BwLVy0ys+h/D8q0fyrS3pMWCNthtxyzTpOIoR25gIPGU7U5w X-Received: by 2002:a05:620a:4089:b0:78e:fd3c:b6 with SMTP id f9-20020a05620a408900b0078efd3c00b6mr13065772qko.40.1714402458012; Mon, 29 Apr 2024 07:54:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714402458; cv=pass; d=google.com; s=arc-20160816; b=c5bMBGp4nPmVlJSKi4U9G4lNUSfQdIMbyQcQGVefOzAemyTqd4gtH8kL7HgXox7wvk 7wtbc9Qk8PQsaEjIPQrruL/mWn+QT5vuVz/U8kvSuqiSeUsm2VzzIq6aaUjWtxHiExrG JyigoSiTsII92kFwseZbK2XYcKSur/chPY6NQ8naIGGNL5fB2h2WXbCVnjtpnSJqEaR1 YR0yOc5sd9/XsgUWR/uflnBLWTzNa5vlLcmJz0/OBR5+1xTwd/L7v9D/HLuWbnCO82IU QbHdBCVtUby/4momjdITPYf1kMZ4TAtRKKubF42xa4ikwQTlu6RHPgxQUUARfDl0f4Jx iMWA== 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=zbM8g620HYIUIhTB3BDg/F1eREXQB0ibG/yAPrGqPy8=; fh=OgseP7JiZEcVuuvCzzNQreAIc4hbovUPWof6tgg7NqA=; b=MHzz8SkhGzTr1lW5AWj3l8/vyJiKDakuEPWa3k2XhJxnQedDAoSppGPj+TZEaPCsZS T+hhoQv49ObzFgWHDBfkfrU05hdPAxakBFXaQp7IgAu49bjQw1XPtm6goBobXk1mvKxu gZXXUgZkLgoo39prkw0P2SH1oPTCrzoMRsUMpQNQ4vOqfO/7CdNUsSPiPWDuNQgWm2bd nY/jjWXmpSh1Iscz843mLKGPG1CBJfHP8jU+wX8cZALc3V/Nlm47L4bBXh58ct8J//Ms noYysQYUqxUMJ5zrQ5E7VEAftuiQTLJWfnMieQqIw3SGRFjl28ErZ9F7e+F7m72eVD+k bpiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XXPPQqCn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162494-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. [147.75.199.223]) by mx.google.com with ESMTPS id g25-20020a37e219000000b00790f8c84f58si1745137qki.769.2024.04.29.07.54.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 07:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XXPPQqCn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162494-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 BC95A1C2171B for ; Mon, 29 Apr 2024 14:54:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DE2580023; Mon, 29 Apr 2024 14:54:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XXPPQqCn" 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 4AF907F484 for ; Mon, 29 Apr 2024 14:54:09 +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=1714402451; cv=none; b=BUdD8W2SrwZUXjD09JaRaDoqaiTspowIXd0C5sdKepW681avHcK/YRHU38gdtEogjm0UKbOeKUldDr09J63uThTQnEWcxp2JWJWtFNAbJbCUJlD0ZcEX58LeOc+ieMPfWfCZ2YzYjOlLwmuwJHTSQ6tneCOlCF9cd2SxJwJkGJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714402451; c=relaxed/simple; bh=XREl17CHloVH9LS2iww9neF4mNAICGbwb3N+eWBXfvk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WMRIHz6z59Tyycixfs2v2UWj3wLGczTZfPiJD1XDIa9EtB81nefzkEesP0ahc5HX6YFZJFlFzn8Eq8flGLXFMg2eSxlCOZWwIM3TIgDqBSPtPkH2CYNfoYPRa1OoUZfATgFAX2gZVtltGvq8Pwkcs7g6v629CKJzvCzIMugGqbw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XXPPQqCn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD231C113CD; Mon, 29 Apr 2024 14:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714402449; bh=XREl17CHloVH9LS2iww9neF4mNAICGbwb3N+eWBXfvk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XXPPQqCntLwoiOXb9YO5bMX4zMDr/YgPfkLPH/CeWkd4WQp19+6iP9ASUkdN+fcbl ONk91QPa68V0YBAdAAX5GsV4fxcm1coYso4AP2MFTfthCIn9/V7jsuVdKnIheTDICp duOJVahxniXuCzTa1CXXC1pV1kx69bsrQ9cPTOK8pC2/Xj7hepPyF0ksF6kcaRkw3O G1ilwJOwpKRwIsCGuSJAVpsRmXikTIM1i2k4k7TnSIRjuPs+aeUlgRUiqORS6gyx7A FmcZmvAnukW03FMqKCYdktLntOiIVndXDEpbU+XpXHbDp0wG4ByQtWwoRAdcz0ONrb zV1/GjDNwyCMA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s1SOP-000000005GI-05vD; Mon, 29 Apr 2024 16:54:09 +0200 Date: Mon, 29 Apr 2024 16:54:09 +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 Subject: Re: [PATCH v2 2/4] ASoC: qcom: common: add Display port Jack function Message-ID: References: <20240422134354.89291-1-srinivas.kandagatla@linaro.org> <20240422134354.89291-3-srinivas.kandagatla@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:55:32PM +0100, Srinivas Kandagatla wrote: > On 23/04/2024 13:02, Johan Hovold wrote: > > On Mon, Apr 22, 2024 at 02:43:52PM +0100, Srinivas Kandagatla wrote: > > > >> static const struct snd_soc_dapm_widget qcom_jack_snd_widgets[] = { > >> SND_SOC_DAPM_HP("Headphone Jack", NULL), > >> SND_SOC_DAPM_MIC("Mic Jack", NULL), > >> + SND_SOC_DAPM_SPK("HDMI/DP0 Jack", NULL), > >> + SND_SOC_DAPM_SPK("HDMI/DP1 Jack", NULL), > >> + SND_SOC_DAPM_SPK("HDMI/DP2 Jack", NULL), > > > > Shouldn't these be split in dedicated HDMI and DP jacks too? What if you > > have a machine with HDMI and DP jacks which would otherwise both claim > > "HDMI/DP0"? > > These map to the Jack's added as part of qcom_snd_dp_jack_setup and > belong to DISPLAY_PORT_RX_0, DISPLAY_PORT_RX_1, DISPLAY_PORT_RX_2. > > If its going via USB-C DP controller it will be either DP or an HDMI ? It will always be DP out of the machine even if an adapter can convert to HDMI internally. The DRM ports are called "DP-1" and "DP-2" so it seems we should match that. > This is the most common naming for the USB-C DP/HDMI jack events. It looks like some Intel machines use names like "HDMI/DP, pcm=%d Jack" (with a pcm device number), but we also have "DP Jack". Not sure which are are used with USB-C, though. (Or if the former actually support HDMI altmode.) > Qualcomm LPASS in some older SoCs had a dedicated HDMI interface which > is different to this one. > > Usual Other ways to connect HDMI is via external HDMI Bridge using I2S > interface which totally different to this DP interface. Sure, but if there's ever a design with such a port then it will be called "HDMI Jack" and then the "HDMI in "HDMI/DP0 Jack" is unnecessary and confusing when it is always DP out. Johan