From patchwork Sun Jul 12 15:14:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatol Pomozov X-Patchwork-Id: 6772761 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 79DE5C05AC for ; Sun, 12 Jul 2015 15:15:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B01482063A for ; Sun, 12 Jul 2015 15:15:23 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 73FB2205F4 for ; Sun, 12 Jul 2015 15:15:22 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5FA742612C7; Sun, 12 Jul 2015 17:15:21 +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 86992260660; Sun, 12 Jul 2015 17:14: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 4CD07260687; Sun, 12 Jul 2015 17:14:47 +0200 (CEST) Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by alsa0.perex.cz (Postfix) with ESMTP id 4B6042605E4 for ; Sun, 12 Jul 2015 17:14:41 +0200 (CEST) Received: by pdbep18 with SMTP id ep18so210618164pdb.1 for ; Sun, 12 Jul 2015 08:14:40 -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=whW+E58tx9YcHjftQY1l1kszVkyvWWHq3vw/ZusNtw4=; b=ZU3kFbNf+5mYC90HgK3n4rO9h+RcU3pIJpQrr+ttKWPyDSHk34oQP6PMfdEm7Qog0j 3MX+JArChp93ZPgQdpjuTi9yTWaJ4Bl5WkuUURUG9eDDuO0Q9jImcmH/jPX2Z8UcvqkE JfGtkPpHXtWj7nQsE4fFSbayNZAFnFMWxzcFkKPV1/mmOIFjWh06VArNY0L62gntH/2z nF9QNc9Ru5i+vcXzJR3Zm2Sz8n6LECYNyzRXn2xQa5AIUI508RTfOl66zoaUmkxr0GJ0 vDFtx963Ci7ENssO6GaPG/yVnANvgSRwVJNQPw2PBLou1IW+AmKtHmPGMmp6/W77ucK3 xhpA== X-Received: by 10.68.57.229 with SMTP id l5mr59666562pbq.91.1436714080013; Sun, 12 Jul 2015 08:14:40 -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 c6sm15956838pas.39.2015.07.12.08.14.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Jul 2015 08:14:39 -0700 (PDT) From: Anatol Pomozov To: alsa-devel@alsa-project.org Date: Sun, 12 Jul 2015 08:14:20 -0700 Message-Id: <1436714061-18618-2-git-send-email-anatol.pomozov@gmail.com> X-Mailer: git-send-email 2.4.5 In-Reply-To: <1436714061-18618-1-git-send-email-anatol.pomozov@gmail.com> References: <1436714061-18618-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: Use DAI 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. It makes more sense to use DAI input that created automatically by DAPM and route it to Speaker output. Signed-off-by: Anatol Pomozov --- sound/soc/codecs/max98357a.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c index fa1b793..b9e1131 100644 --- a/sound/soc/codecs/max98357a.c +++ b/sound/soc/codecs/max98357a.c @@ -51,12 +51,11 @@ 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_OUTPUT("Speaker"), }; static const struct snd_soc_dapm_route max98357a_dapm_routes[] = { - {"Speaker", NULL, "SDMode"}, + {"Speaker", NULL, "HiFi Playback"}, }; static int max98357a_codec_probe(struct snd_soc_codec *codec)