From patchwork Mon Apr 18 11:20:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhengxing X-Patchwork-Id: 8871191 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 811FCBF29F for ; Mon, 18 Apr 2016 11:21:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8A7D20328 for ; Mon, 18 Apr 2016 11:21:06 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 78EA3200FE for ; Mon, 18 Apr 2016 11:21:05 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C3A652657D2; Mon, 18 Apr 2016 13:21:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 40728265112; Mon, 18 Apr 2016 13:20:33 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A1163265357; Mon, 18 Apr 2016 13:20:31 +0200 (CEST) Received: from regular1.263xmail.com (regular1.263xmail.com [211.150.99.130]) by alsa0.perex.cz (Postfix) with ESMTP id 520B2265132 for ; Mon, 18 Apr 2016 13:20:23 +0200 (CEST) Received: from zhengxing?rock-chips.com (unknown [192.168.167.225]) by regular1.263xmail.com (Postfix) with SMTP id D2DC5B448; Mon, 18 Apr 2016 19:20:19 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 X-KSVirus-check: 0 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id 2A3C72A0A; Mon, 18 Apr 2016 19:20:19 +0800 (CST) X-RL-SENDER: zhengxing@rock-chips.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: zhengxing@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: zhengxing@rock-chips.com X-DNS-TYPE: 0 Received: from unknown (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith SMTP id 11846BW4ORN; Mon, 18 Apr 2016 19:20:20 +0800 (CST) From: Xing Zheng To: linux-rockchip@lists.infradead.org Date: Mon, 18 Apr 2016 19:20:03 +0800 Message-Id: <1460978403-4754-4-git-send-email-zhengxing@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1460978403-4754-1-git-send-email-zhengxing@rock-chips.com> References: <1460978403-4754-1-git-send-email-zhengxing@rock-chips.com> Cc: alsa-devel@alsa-project.org, heiko@sntech.de, Xing Zheng , linux-kernel@vger.kernel.org, Takashi Iwai , dianders@chromium.org, Liam Girdwood , sugar.zhang@rock-chips.com, Adam.Thomson@diasemi.com, broonie@kernel.org, jay.xu@rock-chips.com, Support Opensource Subject: [alsa-devel] [PATCH v2 3/3] ASoC: da7219: Add detect_jack callback in the snd_soc_codec_driver X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This patch tell soc-jack that this codec supports jack detection. Signed-off-by: Xing Zheng --- Changes in v1: None sound/soc/codecs/da7219.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index 81c0708..5a8ff1e 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -1767,6 +1767,8 @@ static struct snd_soc_codec_driver soc_codec_dev_da7219 = { .num_dapm_widgets = ARRAY_SIZE(da7219_dapm_widgets), .dapm_routes = da7219_audio_map, .num_dapm_routes = ARRAY_SIZE(da7219_audio_map), + + .detect_jack = da7219_aad_jack_det, };