Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp470915imu; Tue, 27 Nov 2018 01:18:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/UzN1jzeWhuDOiEUKbuWzheWy42s0lHgMHGQzF80SbiXv53BIwO9kTdpJHeDcFoRqJO4CLX X-Received: by 2002:a63:d005:: with SMTP id z5mr28328367pgf.64.1543310303200; Tue, 27 Nov 2018 01:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543310303; cv=none; d=google.com; s=arc-20160816; b=ux47ppXdcryOJuau7GFz9Z8NHyOX7kfnvBMPWHpvsB1QSo8o/9gIk7X/LwccZAbgFZ dNJcwgZXaoiHOePeSXg1y3RubOR6jkP/ICbXRRRrft0qudaxa2sEhhKeSirClIej8G3M kZuW5+PMe11o9efVpu2n02XRfjW+J3KzsCd1mRyoYH4i52QG1NqtBEEEmXYUDzBpO3SA 7n4llPyShWeOc8DQyCnsOBJJp+QWzncRdbb9i4beXZ3EMUeXC0deJeY6UVDAg+U5jOML 54kf43KSARbuVmK6wH7zphdGxnZGOYpQibaK9+FB7UgJwd8THUm0BK/MKLgGQW/A5ppY noog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=3x428OLtnA404GOOHS4/xsYooaXLBHBw70xe8PUCobg=; b=E++AHGUnz+gOin583i7FwMPh1XF0BeMZTkpzxUQn2mHJlowen7q5sZ2veCtxqa5ak/ +6hWrf/NAJB9axinbgekFvYklaEPYp7nzP+2fRddsaMzdYeoIUWaQzd9pqV+HlrCvHXj U+x+HaxDU+p8FGCdvca+PVvZswKhZV+W1R/X9qUKqByhgg5Ee1cbaARH+QFVv8fIWGvx 8yYADPa2l6DP+7Pp/0AM2Pbz8qOq7IERBaKTGXg8yyC/h8qEOP+4dfwxIG9uVNtNgMdv pTsTZ/tZxgp+htFao0JQfZbvqbq0YXkZjmdM3I+IHHvqO/RVGwNedhRJH5TeXIivzY+3 Z2/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XRSgI53a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 20si3475685pft.177.2018.11.27.01.18.08; Tue, 27 Nov 2018 01:18:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XRSgI53a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730110AbeK0UOV (ORCPT + 99 others); Tue, 27 Nov 2018 15:14:21 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38000 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729656AbeK0UOV (ORCPT ); Tue, 27 Nov 2018 15:14:21 -0500 Received: by mail-wm1-f66.google.com with SMTP id k198so21420255wmd.3 for ; Tue, 27 Nov 2018 01:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3x428OLtnA404GOOHS4/xsYooaXLBHBw70xe8PUCobg=; b=XRSgI53aNg0bW2CSxMvZ22Zx9uY3Viax7YgbqKvwmsuPJEmyrUh7eDb6syy+4lWdob V80zrgcMUM8UMY4DBxMn9jKxUjsubH4D9HSL9m4U8TSpkxjkNkgBuQFZLD0b29D5BQBH Mta3Kd45iE34TKo2kF+HBVaIpGK8JdXaSAFGQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3x428OLtnA404GOOHS4/xsYooaXLBHBw70xe8PUCobg=; b=CE+UFgeKoGqJVi7qCQ6+tBMQngoNLbdV/sCnbB1qkfJf7x2pekVZOZmqEDFcjCEaoH UWsNuXcUOK3wiqXRTI/ZHgmN9RT59VPjcYBm57me2kt88RPng9YxGqx3MdagyopTlFkX bpuzZJ3K0yFFy+3a45UnUyYLtczf+I4nEHGc+W9lxKFNjr9L+HCy4tDOGsOodPpLfaxb yWTyZSaOKGEAekJLZQO1i8DKFDyVahSOLNh/yxf5aP49pDEC78qgjsZMuSYiGEcNbz3T 47kzsA+8J6XCm59PgVUMA0gOOfbYuzkcnPPdZ2gXXVItCPuHmZ//1PNk3g5NesZae9bu 7X8A== X-Gm-Message-State: AGRZ1gICxVqXrjfaL+ipESc1Hnhz/NIzKiz9UpNMN/pvyUea61GN87Qp wol/R0YUyKzmly3eLY16i0z3HXHHs/M= X-Received: by 2002:a1c:a6cd:: with SMTP id p196mr26905440wme.142.1543310224461; Tue, 27 Nov 2018 01:17:04 -0800 (PST) Received: from [192.168.86.29] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id f15sm4239375wrt.10.2018.11.27.01.17.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 01:17:03 -0800 (PST) Subject: Re: [alsa-devel] [PATCH 1/4] ASoC: qcom: sdm845: Add board specific dapm widgets To: Cheng-Yi Chiang , linux-kernel@vger.kernel.org Cc: oder_chiou@realtek.com, alsa-devel@alsa-project.org, tzungbi@chromium.org, Mark Brown , Rohit kumar , dgreid@chromium.org References: <20181124110948.209019-1-cychiang@chromium.org> From: Srinivas Kandagatla Message-ID: Date: Tue, 27 Nov 2018 09:17:00 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20181124110948.209019-1-cychiang@chromium.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/11/18 11:09, Cheng-Yi Chiang wrote: > Add board specific dapm widgets so these widgets can be used > in the route. > > Signed-off-by: Rohit kumar > Signed-off-by: Cheng-Yi Chiang Acked-by: Srinivas Kandagatla > --- > sound/soc/qcom/sdm845.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c > index 58593db2ab151..95d8d4422dae0 100644 > --- a/sound/soc/qcom/sdm845.c > +++ b/sound/soc/qcom/sdm845.c > @@ -212,6 +212,14 @@ static int sdm845_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, > return 0; > } > > +static const struct snd_soc_dapm_widget sdm845_snd_widgets[] = { > + SND_SOC_DAPM_HP("Headphone Jack", NULL), > + SND_SOC_DAPM_MIC("Headset Mic", NULL), > + SND_SOC_DAPM_SPK("Left Spk", NULL), > + SND_SOC_DAPM_SPK("Right Spk", NULL), > + SND_SOC_DAPM_MIC("Int Mic", NULL), > +}; > + > static void sdm845_add_be_ops(struct snd_soc_card *card) > { > struct snd_soc_dai_link *link; > @@ -243,6 +251,8 @@ static int sdm845_snd_platform_probe(struct platform_device *pdev) > goto data_alloc_fail; > } > > + card->dapm_widgets = sdm845_snd_widgets; > + card->num_dapm_widgets = ARRAY_SIZE(sdm845_snd_widgets); > card->dev = dev; > dev_set_drvdata(dev, card); > ret = qcom_snd_parse_of(card); >