From patchwork Mon May 24 11:07:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 446444 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp3241262jac; Mon, 24 May 2021 04:07:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhguBiu3AWtehdebke+lmr1qvJNAMqaVqoeVvA9ZO8b5qOV25dkFRJdkZgKUxrdJ6dvnjk X-Received: by 2002:a5d:9a97:: with SMTP id c23mr15446394iom.38.1621854441599; Mon, 24 May 2021 04:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621854441; cv=none; d=google.com; s=arc-20160816; b=m/khjggR1jNUiw2D985oG3ZZWqwn3WTNigptqKk/XC1aSiI/Uwxwzz5aOxVc+bIsld 1Q5OY9QiBwY/NYGVXKDeScktBNOSBVKw5JEGDdOLpeM12yiejovuAsYgBpJQ0oFZ89Xa XK7iPozOhhOxEBWyOVfMU84L90ZBrzmomfj4h9GJXZvz1JNSm2/UuEXpKiIRyX/N8nrP /jXCSCovuG+aSAW5ocreJly6uP7l+TPtqAjlfxhKqPA1HT/xZVlz9agVOcp2LOTLSNaq 9x/D3hlg12oIbqhLogAHAtcqLEn+0aoL1y3uXmmzz97bU5cyoGThp3FdIRuj2gjngDKG ILdA== 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=Xg2oZl0RkwXAo4I+E/JYre2d9Qnup8/WdsSIXkJ8+ZeiOoySjgeBDsltnv/ovUGSmA s4hBEAJjePRL1KqHUlD5nXB2gKNEJNgyUULhPJG70KMCzslsNqNNS+BOERAbYNuIhBuu 7Bv4USwIIQKbpVD8mB2dKrxZ5KgMeMSSJcXexnamiKuyMsp7ypBOKud1gKAnt8ZK4aCE UgxmJokQ85ADvngkV5n2/DKh4F3wVjbIut5HJyZ03FgJOQXcs0GpAYVVGpbEbFeTM8aM zRguNEVZ+s1nsbSMkbLFO7+d108J7oZ1C+FJSseVS9manPnvjegEP7GbAuoHRTMLUukD YHSA== 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 j18si13648478jaq.76.2021.05.24.04.07.21; Mon, 24 May 2021 04:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S232676AbhEXLIs (ORCPT + 7 others); Mon, 24 May 2021 07:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232643AbhEXLIq (ORCPT ); Mon, 24 May 2021 07:08:46 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E48F1C06138E for ; Mon, 24 May 2021 04:07:18 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id r12so28099006wrp.1 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=YN9qeZuPoB0IRXqQocIfc8wb8LjyhT8DzyVfsz50xPxOwYWO16tURwMFeDjzeaBsXe EUmn1b5M6Xx1vJTPlFPIrTexQeyzVq21Q1RX26diW2eU0jZq3hGtM0OwHp8/R0/6lrjT nG/gPD8u3AwoOVhKKXz6p+3PrJXbj7WR/O5QwKOx3RaF9um/pc5NYyG+IFlLsC42529k yw4WvZ0ankLhDETuBlyPMfJCLO1/9sFUIpNMk5whndri8dpO+Mpy/HBeVakfcWJEGLME 5r54oznBCqaOpw/m2YANm/vmI9OjX3EOOqrYPvAuc78aGT2yqlShXfJEsi0cRIu9KP78 APMg== X-Gm-Message-State: AOAM531XDj0K2L6ruWMV82sfgg8rvyMmMpLvpdFd+kv97UihPBcXsR9Z QZJX+oHUZnT8QdlO53PPISxH1bZAThh39A== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/sdm845.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.21.0 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: