From patchwork Sun Jul 12 06:56:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatol Pomozov X-Patchwork-Id: 6771771 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ED9869F2E8 for ; Sun, 12 Jul 2015 06:58:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 25F1F20374 for ; Sun, 12 Jul 2015 06:58:14 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id EAA992035D for ; Sun, 12 Jul 2015 06:58:12 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0506826067B; Sun, 12 Jul 2015 08:58:12 +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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id D27C02606DE; Sun, 12 Jul 2015 08:57:48 +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 E6E152606E0; Sun, 12 Jul 2015 08:57:47 +0200 (CEST) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by alsa0.perex.cz (Postfix) with ESMTP id 6477E260687 for ; Sun, 12 Jul 2015 08:57:18 +0200 (CEST) Received: by pactm7 with SMTP id tm7so190000188pac.2 for ; Sat, 11 Jul 2015 23:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ryO9mQQD8PZqfrGmF+YH4L4MM5/qViDS9+Ts00TTWL4=; b=mE1mL3i7hQwONyNy0qrqdkbfsPmKu3ntxXSnB+B282NOr7f2+r5TPMNJXRtgdFN24q 1lInzEkv6+0d83rcQGr8lRyjimufhQXQYPWSySjvJDPgnD+QSeZIdJ9plizgF8FKJFiD Nc0lfr9BiFyHE6HZpxnNTiIdA/BCVUhMKkd90dPwjBLv/l+sYDHDUkLss1sao2wF1jYM NplQq51Zb1XKaB3e4Ycl1carZWu+V3tPMHPjKuMloKEj+U4qlh1BZDlTlJ0Lbm0pILxO RBDeTbVxOqbxO6NtDYnDqubnURl7QGbmRx4cmxAjVAGPKXfs9yJrOLNPR6WenxoWIiX/ Vx+A== X-Received: by 10.69.0.8 with SMTP id au8mr57706140pbd.112.1436684236959; Sat, 11 Jul 2015 23:57:16 -0700 (PDT) Received: from argo.lan (76-198-28-160.lightspeed.sntcca.sbcglobal.net. [76.198.28.160]) by smtp.gmail.com with ESMTPSA id mb4sm14781012pdb.63.2015.07.11.23.57.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 11 Jul 2015 23:57:16 -0700 (PDT) From: Anatol Pomozov To: alsa-devel@alsa-project.org Date: Sat, 11 Jul 2015 23:56:41 -0700 Message-Id: <1436684202-16461-2-git-send-email-anatol.pomozov@gmail.com> X-Mailer: git-send-email 2.4.5 In-Reply-To: <1436684202-16461-1-git-send-email-anatol.pomozov@gmail.com> References: <1436684202-16461-1-git-send-email-anatol.pomozov@gmail.com> Cc: broonie@kernel.org, lars@metafoo.de, kwestfie@codeaurora.org, Anatol Pomozov Subject: [alsa-devel] [PATCH 2/3] ASoC: max98357a: Specify digital input as a dapm widget 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 Spec does not say anything about DAC called SDMode. Create a dapm path that consists of path from I2S input to Speaker output. Signed-off-by: Anatol Pomozov --- sound/soc/codecs/max98357a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c index 6d4246a..0d87d35 100644 --- a/sound/soc/codecs/max98357a.c +++ b/sound/soc/codecs/max98357a.c @@ -51,12 +51,12 @@ static int max98357a_daiops_trigger(struct snd_pcm_substream *substream, } static const struct snd_soc_dapm_widget max98357a_dapm_widgets[] = { - SND_SOC_DAPM_DAC("SDMode", NULL, SND_SOC_NOPM, 0, 0), + SND_SOC_DAPM_AIF_IN("AIFRX", "HiFi Playback", 0, SND_SOC_NOPM, 0, 0), SND_SOC_DAPM_OUTPUT("Speaker"), }; static const struct snd_soc_dapm_route max98357a_dapm_routes[] = { - {"Speaker", NULL, "SDMode"}, + {"Speaker", NULL, "AIFRX"}, }; static int max98357a_codec_probe(struct snd_soc_codec *codec)