From patchwork Tue Sep 6 09:57:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 75488 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp459904qgf; Tue, 6 Sep 2016 02:58:13 -0700 (PDT) X-Received: by 10.66.2.168 with SMTP id 8mr607774pav.87.1473155890735; Tue, 06 Sep 2016 02:58:10 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si34676952pfb.247.2016.09.06.02.58.06; Tue, 06 Sep 2016 02:58:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933866AbcIFJ6F (ORCPT + 8 others); Tue, 6 Sep 2016 05:58:05 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:38504 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933724AbcIFJ6C (ORCPT ); Tue, 6 Sep 2016 05:58:02 -0400 Received: by mail-wm0-f54.google.com with SMTP id 1so179523924wmz.1 for ; Tue, 06 Sep 2016 02:58:02 -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; bh=vP3DbUNZ9Sdmyu1iFoDmUMsn7kmdM0RZ8aMFlYqvYTg=; b=IOgLRd7h9oJHQJdByug0NP3dacY399pKY2te2ydPK8Y0rq5z6am2jZ4iBG8b8zjshE MBBHy9Uiz3vNBzzdT5BwSits6bzYKzRijH3En5OXZ0Gj5JQhmtHM/zYFawFWMwZAqzLT PdLwXlerSVm0sqToxESO8S/2EMMRwtiQ9HpAk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vP3DbUNZ9Sdmyu1iFoDmUMsn7kmdM0RZ8aMFlYqvYTg=; b=il/NGUFIHsGOggklg9LSmAxKdkMxxPFVMSagannVBjSOewwdFb4DvX0NPJSgim34iM QFsd+rd+pOn4I2TXUjmcKcuoTIVv98PncqLue6WzaUc1pK7lKQHo7KSIhNf2QgixBCeF dhbhhMi4/l1OKG33GN1NIpBREJdF2mL0TjEf/TuPWRDaTsA89cR7TlZe2ejF/GrmNXRq pq5zpUoqCl61/rKTJP9qvBnRyfoBlpgjpRgUA+aeAReITjK/yO2uZSR6ouJbotxX063I hWig7igkAjiC78YK0Q5mLf8MVV8ceP2NhWrQNnkNbYz6oF6GJo7ME4uDhgLHOVF9/P+y BOUg== X-Gm-Message-State: AE9vXwPatCe8/eFood8Y9vMwaTBP/z/joEBYpivx3zcVVCv2EIx5w9OoKdFBd5Wh0z0NY4XR X-Received: by 10.28.215.67 with SMTP id o64mr4965257wmg.98.1473155881198; Tue, 06 Sep 2016 02:58:01 -0700 (PDT) Received: from localhost.localdomain (host-2-103-180-164.as13285.net. [2.103.180.164]) by smtp.gmail.com with ESMTPSA id pm1sm32415679wjb.40.2016.09.06.02.58.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Sep 2016 02:58:00 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, alsa-devel@alsa-project.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, tiwai@suse.com, devicetree@vger.kernel.org, kwestfie@codeaurora.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v4 3/6] ASoC: qcom: apq8016-sbc: add board specific dapm mic widgets Date: Tue, 6 Sep 2016 10:57:42 +0100 Message-Id: <1473155865-13361-4-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473155865-13361-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1473155865-13361-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds support to board specific dapm mic widgets so that these can be used to specify proper connections of various micbias supported by the board and SOC. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/apq8016_sbc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c index 1289543..5c3ccf3 100644 --- a/sound/soc/qcom/apq8016_sbc.c +++ b/sound/soc/qcom/apq8016_sbc.c @@ -147,6 +147,15 @@ static struct apq8016_sbc_data *apq8016_sbc_parse_of(struct snd_soc_card *card) return data; } +static const struct snd_soc_dapm_widget apq8016_sbc_dapm_widgets[] = { + + SND_SOC_DAPM_MIC("Handset Mic", NULL), + SND_SOC_DAPM_MIC("Headset Mic", NULL), + SND_SOC_DAPM_MIC("Secondary Mic", NULL), + SND_SOC_DAPM_MIC("Digital Mic1", NULL), + SND_SOC_DAPM_MIC("Digital Mic2", NULL), +}; + static int apq8016_sbc_platform_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -159,6 +168,8 @@ static int apq8016_sbc_platform_probe(struct platform_device *pdev) return -ENOMEM; card->dev = dev; + card->dapm_widgets = apq8016_sbc_dapm_widgets; + card->num_dapm_widgets = ARRAY_SIZE(apq8016_sbc_dapm_widgets); data = apq8016_sbc_parse_of(card); if (IS_ERR(data)) { dev_err(&pdev->dev, "Error resolving dai links: %ld\n",