Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10482415rwd; Thu, 22 Jun 2023 00:06:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hadXHc8CBqBBFvRTJOCXK+LqXU9RYz65JtjCoz3ds1+WUybepSEuwp2ilsNNzD0el7EA+ X-Received: by 2002:a17:902:bd48:b0:1b3:696f:b83 with SMTP id b8-20020a170902bd4800b001b3696f0b83mr6474039plx.45.1687417566037; Thu, 22 Jun 2023 00:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687417566; cv=none; d=google.com; s=arc-20160816; b=Fwv9icyKxQMX+iq2oDHTeT8pcfve1FnpwY5flbQo4PH7EY508+N+ut9x+UxjlMtanP ivUmB/Ez1apO5J9IlzKlbGehS00mcR6+6Q0CVPQgDfaGUPI+8tvDT9ccKOlkfzWHd8SZ 554IvBIN8uyyywvuyk6POGxyaQLCbgszXlITRCjDn5zqck8nHtRpfD7Ob6Qeu7frWmsY yfN2LtVKIs73rLKwg81HY8s4RIAZdHsuzXq94p8Si2Ki9YqaWuROxNY9kXJOg5y7mGJu MvhDxHgfXFmRA8FV0I62HnwOdHj2FBs40HDzhNg0vTuYHRpZD8I2rcsqXvhjVvQDhpEt KPSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=agW24+R0HhFBOHYNTo4Fa7IeDqEbxWWsQqxBgUjuVA8=; b=VqYL7EHd3im+KsC8Mw/wIzTy32WwBXcRpxo0qozRaaZumfTHQuJSbGs5PgAaGp+Yuf hY2fSX7qoStdE7v4Xd8vlTFlz3TomtwYHfLMu+6qK1IUxVg2rCYgOLWlOco4YvbMKlf/ Kw9curdKz2kd4Om8nt0JyXP3W7npsvSnTRSKUv61/38VX8y2ollvnyYydfU9ik6dNmQu X56SGsmliGxCF0MahmToereCzjNQps6Cu4yQXSaCdtTIMlqVqoa3PwCGnto2R0xv0MgQ TjjWW3zPOJgX6XyypOQyYVofMiSyWhoRxScJ29s6VWJLHolqtsQvBsKh6REiRpJLvg/m FNxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D5YUQb9k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a170902848100b001b3dd46d4fesi5770075plo.66.2023.06.22.00.05.54; Thu, 22 Jun 2023 00:06:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D5YUQb9k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbjFVGwd (ORCPT + 99 others); Thu, 22 Jun 2023 02:52:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjFVGwc (ORCPT ); Thu, 22 Jun 2023 02:52:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C31D7171C for ; Wed, 21 Jun 2023 23:52:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2F29561772 for ; Thu, 22 Jun 2023 06:52:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82197C433C0; Thu, 22 Jun 2023 06:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687416750; bh=Y1Co0eUEY/1VztSjV/SOSKw0BAZFidboJOL7RFsEII8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D5YUQb9kpPtpyQndQqKrrS4y0MpSEWhL4A67w53SKPOVFrst5UzoEEZ9WsbMxgKq4 9lbRQv0Da/irkSbwwGdphZMfr4TPz0HE0hMyyv15CPzinaQb9SD/OSPw4mGoG9gwe1 jN0yyR7b5aNYnZ20MwdK42YwZGfEivgq8FDjt3VpbEuVfiTijHerZddqdle2ysMfl5 ayRFoWFtVf7bZCf6NxALcL9pU+3gvGuyS0LGMNyXINFnG8bo1yuLgHB0hC6DzrEE2v dnosDx8VQVclAJiJzusdXITTmSmHZFUyqa4ks8V5bCkhAl1gte1L7XQEWOVRIK5pdz lJSlLZn/XKGVA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1qCEBH-00073T-Mw; Thu, 22 Jun 2023 08:52:35 +0200 Date: Thu, 22 Jun 2023 08:52:35 +0200 From: Johan Hovold To: Srinivas Kandagatla , Mark Brown Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, steev@kali.org, johan+linaro@kernel.org, quic_bjorande@quicinc.com Subject: Re: [PATCH] ASoC: qcom: common: add default jack dapm pins Message-ID: References: <20230302120327.10823-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230302120327.10823-1-srinivas.kandagatla@linaro.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 02, 2023 at 12:03:27PM +0000, Srinivas Kandagatla wrote: > If the soundcard does not specify the dapm pins, let the common > code add these pins for jack. > > Signed-off-by: Srinivas Kandagatla > --- Looks like this one was lost somewhere. Any chance we can get this into 6.5 as it's needed for audio on the Lenovo ThinkPad X13s? Tested-by: Johan Hovold Johan > sound/soc/qcom/common.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c > index c1f24af17506..555feb845c41 100644 > --- a/sound/soc/qcom/common.c > +++ b/sound/soc/qcom/common.c > @@ -8,6 +8,11 @@ > #include "qdsp6/q6afe.h" > #include "common.h" > > +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), > +}; > + > int qcom_snd_parse_of(struct snd_soc_card *card) > { > struct device_node *np; > @@ -169,6 +174,11 @@ int qcom_snd_parse_of(struct snd_soc_card *card) > of_node_put(platform); > } > > + if (!card->dapm_widgets) { > + card->dapm_widgets = qcom_jack_snd_widgets; > + card->num_dapm_widgets = ARRAY_SIZE(qcom_jack_snd_widgets); > + } > + > return 0; > err: > of_node_put(cpu);