Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2898251lqt; Tue, 23 Apr 2024 05:16:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0BJP+6K8fB18coSNyrQdc48x7h+OBYhx1Wsh9XCRfvJE26wKOMxRVlnUrfOTdnufpbqlV62B2MlDHB4MKOUC+HMDEzLEEeHjJVcrDAw== X-Google-Smtp-Source: AGHT+IH56dnV0uiGCDoDvNZZ5W/Rs03QJWzVBGRJthurjsuy6iw92sCrJbOY3nIyy6WZ8nVlwSpc X-Received: by 2002:a17:90b:4a8c:b0:2aa:cadb:d290 with SMTP id lp12-20020a17090b4a8c00b002aacadbd290mr3328324pjb.13.1713874605874; Tue, 23 Apr 2024 05:16:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713874605; cv=pass; d=google.com; s=arc-20160816; b=c9k9iVhV8EfR4ygvM3iei+r9pHfsXhhmk9/nGYy9R/aZRaEtSSi42v5M8qt6RFSKUB yvjhQjxvfBC/w4wSCCB46NiB6OfetRG0mTWTL29UvM+t3KdDj0h4pTyiaSltH6mTB7Fh U6sd9P0nUm34hGjL5eZAdmcF1xqgw9zQTFr/Lmqck6reDi+8c2g/mielKozpDUUwyimC k/0iAIP7qU7b+kz5DjuXrVG7r932YVVdNOcPPxnEwZKlaGqSrTKzT/WkG03HBtfg/cEp 3UjaIGfZje7RNh4hL8GZFNVBM+AojIu1kasZ0MB24JAAUYrc3Pi+QSI8EWdVSDhIIDx1 +Aow== 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=TITGhQO5OIX7ID1mP9hp1f/HpkXBnxP9BY7VM/4rM7g=; fh=2K150xkP8a89i67Cv8gZZsPhL98zBSA0n2x0Eh/gGUA=; b=lHlvrHpzgyujo+5O6Qh1ZOfu11KasbwCp415SoKhF5JmjuJ17YRWbE1Re0ekGlBc8m kgHSCXV6DL6PjcAzx+6lAIy3vLli99E1dbOLSe2AH7PrxiBI2E8Dc7jOlwBcjF8/BnRv xAnWMQdmCiR4+c3/oISW38RrY/86sqx19LSafcZEZRhvYtshP/feKNbRoaEhchoBMUaj +U1MpQCOuh+rQUMRQIP3ZL7cxzoNayoMgH5pR1a0kpmTxTPSzo+Qla6gJaMFdQ9iyqDv /6fI+D0OZeMjC1fs6W3taMhZPf6/r1+c/D3Iroplt8gjCTm0S9tL6z6i34894PvOhBpV 8eYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QpNvhbis; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155089-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155089-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g10-20020a17090a128a00b002abf2247a04si1805711pja.75.2024.04.23.05.16.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:16:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155089-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QpNvhbis; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155089-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155089-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0C5C6B272E3 for ; Tue, 23 Apr 2024 11:59:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2692134751; Tue, 23 Apr 2024 11:44:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QpNvhbis" 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 CB06B13443C for ; Tue, 23 Apr 2024 11:44:24 +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=1713872664; cv=none; b=RS1DS5S1CuktWtetxbN4Y5NRqgpf8X+0TEtUe2OezNDggPguK5f2VLOEJB2obkdEMCFr1E0+CEfj9uabaZN+929lZ2qxvo7u0Bpuinu9NyMNovSe1qDcqLBWmxDV4cBWwzFblJs8zMIjoC64DaSe/PV9lbzG9lrXHJkptrwQ0e0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872664; c=relaxed/simple; bh=qpvfUNzdiSw3PwDeKZ/yg/FJx0XxI/U3wt8Hpfs5xQk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kNJJPHecsItb42uXgdpxuAR+8oEAlSim94dfVtqSd5iwL//saonUJepcE+UJVBYpNq2iD8UUht6qXF26FA8BWxWN1XPkaaxVALojTkRVl7elDuBNH5/CvVW+By4bLNEB4SblkRIvvAAjjwIA1QZqDh5U3yC5R1KIAAvqegk6c6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QpNvhbis; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6064DC116B1; Tue, 23 Apr 2024 11:44:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713872664; bh=qpvfUNzdiSw3PwDeKZ/yg/FJx0XxI/U3wt8Hpfs5xQk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QpNvhbisLI4AoWrmVir/ATpl7NxglXF6cVVihy0Fwq2p6ViLz1O72IOi0y8A5UKzC 0ZsIUWwx/hw+GEad/HA5JMn8rkJ2Iky0yY66yNjrNaNMvip09Yl+JerBVv7NUbCK2F Z7UgJT+sZJKuX0qcEFxkcNO8kNONb9OXPlFAjV10kBLBUtW5yNcaJDDFDRIjBOZ8Vl rI8OHCJy0svv4Nx0swjE1iKlqkJNkl6X5+9W6PX2+Q6zNW5kjCtXCZUTnvz6rLmLYG VKgSnPLI92xy7fRt2bUP/EzEQhYYgt5H5siEfbWY+MFE7E2tIAKGMeDKaOwCqETxUu BIdKDbas+unWw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rzEZS-0000000058y-12fi; Tue, 23 Apr 2024 13:44:22 +0200 Date: Tue, 23 Apr 2024 13:44:22 +0200 From: Johan Hovold To: srinivas.kandagatla@linaro.org 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: <20240422134354.89291-3-srinivas.kandagatla@linaro.org> On Mon, Apr 22, 2024 at 02:43:52PM +0100, Srinivas Kandagatla wrote: > From: Srinivas Kandagatla > > Add a common function to add Display port jack, this can be used by > multiple board files and avoid any code duplication. > > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/common.c | 29 +++++++++++++++++++++++++++++ > sound/soc/qcom/common.h | 3 +++ > 2 files changed, 32 insertions(+) > > diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c > index 747041fa7866..3bfe618e7bd7 100644 > --- a/sound/soc/qcom/common.c > +++ b/sound/soc/qcom/common.c > @@ -7,10 +7,14 @@ > #include > #include > #include "common.h" Missing newline. > +#define NAME_SIZE 32 > > 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), > }; > > int qcom_snd_parse_of(struct snd_soc_card *card) > @@ -239,4 +243,29 @@ int qcom_snd_wcd_jack_setup(struct snd_soc_pcm_runtime *rtd, > return 0; > } > EXPORT_SYMBOL_GPL(qcom_snd_wcd_jack_setup); > + > +int qcom_snd_dp_jack_setup(struct snd_soc_pcm_runtime *rtd, > + struct snd_soc_jack *hdmi_jack, int hdmi_pcm_id) The function is called dp_jack_setup() so shouldn't the parameters reflect that and be called dp_jack etc. for consistency (i.e. even if you plan on using this interface also for hdmi)? Johan