Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3321249pxj; Mon, 24 May 2021 04:09:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUju8vpO79gHMABPC0brXqsXd97XEeZnhHw4VRSx5ySi826nCVnATU+atPNROSadTPjiTB X-Received: by 2002:a17:906:ae10:: with SMTP id le16mr22586553ejb.296.1621854549540; Mon, 24 May 2021 04:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621854549; cv=none; d=google.com; s=arc-20160816; b=p6Ue2Nr5LRev00CxRnUX5XDc4DHUOK0/BLh2Rrw30xA3z0iBVOI3lckv0HLs3sQtUk lnIjTjYmj7PPWBgxHObOgviKtgZ/hbN8/M0rIv9BA9wl0KApXX7bjjJ63fZ20UAZlSFn ub2Gw9SMdo6REnUmHMix92GtafoGe7kD/zarVWhw5VJTUtyHN3YFH8AOxoUmCQ6OcqIi 0/Cl2G0+e5J8vwMxrwnrz2RBO8uNtRunSbERGmlabgYEYVx/L+HJk8u2OXr3VR/CC9qH FKz+JRx1CQQKBDnjUIQP3cHRH10WfJEIMEb0OnLxyf3hMNtbakajG3vGeiwNc1SQ8ZHh x5AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1RUP68I3HwNhuXkqx8NfMcQ+Gf4uaCrCeHBt2iSVUE0=; b=fPkeKjToKJiQw+5xKac7/9ink+EUnYVjPh/BXgNbCaEcBJvMUX0jeM6qgQtVbKDPMk v5q23HlLCz5gX4+wp1l8DvQ1T2NijLY3msSb3rZ/aYjNYGnJ3XHwZE0SaSKwGNEsLY+n PZdmgcWwWiwJrWbYQHaiM2YSgwDmb4BOq8UxcvdfkGl9IZxOBUbKk/wPyNtZn3TqFxSs L+uVMgupt8RtyvU7NrPNci8Flyavg1vqjjJSa+1a3v5I9zuQZPJ/MMUwXCwVJyrG/HR3 LH2zJRqRZp4YYcFoP/sb4h7tS+FdNSc0Vsc/urVD7aHtoWB+1axptn0JN8Z0iVzj6jLO omJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e0P9PDID; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si12171863edx.149.2021.05.24.04.08.46; Mon, 24 May 2021 04:09:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e0P9PDID; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232693AbhEXLIu (ORCPT + 99 others); Mon, 24 May 2021 07:08:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232661AbhEXLIq (ORCPT ); Mon, 24 May 2021 07:08:46 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE459C06138F for ; Mon, 24 May 2021 04:07:18 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id j14so26350137wrq.5 for ; Mon, 24 May 2021 04:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1RUP68I3HwNhuXkqx8NfMcQ+Gf4uaCrCeHBt2iSVUE0=; b=e0P9PDIDn59yFnHeDut/LBVMSKTB+WulaHlndXolRHicxhZ3f9Qk0xoRkiXowaNubX 8PP4jIbq2eo4TfxpoK1Ua1Uc1vYNRi6GBhXl8ImK4K8uF4yPn4fCIsZ+I+fURcsFXHfo hYqLJip34CignAkIoGkCWMlXrvT7kKVbqfzadC+MBKr7z4fOf90Vxw7P6+SVH/QpjX36 JYOvW6NpUEo29tYON124o+Az8Mqv1Yr2v1TVWcvfvbqNECAyCnfw1lxUXOPqeDzw5GR6 MLhdSk0XxwNY8guO8PA+yQTZuiIK8fE9TO6YhN4k/AE6wf/+ci9G1xPbcPfLSU/w12vM TJlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1RUP68I3HwNhuXkqx8NfMcQ+Gf4uaCrCeHBt2iSVUE0=; b=Ch3mr2PA2wrN+fWWdrmyHzmC+PwCyrQdP6jxe12VHkTO2p1hLrXdDn3cE0pQPsmQ56 AT4FIYg/FuE+neK9Wu4HqfFHNnMsSKordemWUILATHBtiE8mZADuFXUmLSfCGyE+AuVw 9jvF6sYTRdeZBFymOsTfprn2WCjxGrPzeHbnykKAKM+WeZpXk0Qv1rc3FIs1LoiH/KOa 1RgRzDE4q896p2tVXR+TLwBS1HQu9KmCde2Dt1ETDg/luW59viGQVyGxa9aKCCKyS2kd nFv70r1v9HQXP8H1T18AWNEZ3sMGvnqN9xQXS0aPpLBQNeb8EMGumr0UJo0Q44LEY1kS 7xpQ== X-Gm-Message-State: AOAM532OismMd3Rif+7ScMZ8yrE6D7WXE1BSISa4Lhc/Qq92Kqs01cW+ o7kfI4JyWDeDKGUerHHmjqk2cQ== X-Received: by 2002:a05:6000:50d:: with SMTP id a13mr20798928wrf.130.1621854437515; Mon, 24 May 2021 04:07:17 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id x4sm7590978wmj.17.2021.05.24.04.07.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 04:07:17 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Cc: robh@kernel.org, devicetree@vger.kernel.org, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, Srinivas Kandagatla Subject: [PATCH v2 4/4] ASoC: qcom: sdm845: add jack support for WCD934x Date: Mon, 24 May 2021 12:07:00 +0100 Message-Id: <20210524110700.27077-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210524110700.27077-1-srinivas.kandagatla@linaro.org> References: <20210524110700.27077-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/sdm845.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c index 153e9b2de0b5..0adfc5708949 100644 --- a/sound/soc/qcom/sdm845.c +++ b/sound/soc/qcom/sdm845.c @@ -288,6 +288,14 @@ static int sdm845_dai_init(struct snd_soc_pcm_runtime *rtd) snd_soc_dai_set_sysclk(codec_dai, 0, WCD934X_DEFAULT_MCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK); + + rval = snd_soc_component_set_jack(codec_dai->component, + &pdata->jack, NULL); + if (rval != 0 && rval != -ENOTSUPP) { + dev_warn(card->dev, "Failed to set jack: %d\n", rval); + return rval; + } + } break; default: -- 2.21.0