From patchwork Wed Nov 1 12:26:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liam Girdwood X-Patchwork-Id: 10036315 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DEAA7603B5 for ; Wed, 1 Nov 2017 12:27:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0C6D289BB for ; Wed, 1 Nov 2017 12:27:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C592528B63; Wed, 1 Nov 2017 12:27:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AE6928B0D for ; Wed, 1 Nov 2017 12:27:32 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 831C426732A; Wed, 1 Nov 2017 13:27:28 +0100 (CET) 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 B823926732C; Wed, 1 Nov 2017 13:27:26 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by alsa0.perex.cz (Postfix) with ESMTP id 0713126709F for ; Wed, 1 Nov 2017 13:27:20 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Nov 2017 05:26:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.44,327,1505804400"; d="scan'208"; a="1238160748" Received: from pdmead-mobl.ger.corp.intel.com (HELO loki.ger.corp.intel.com) ([10.252.13.240]) by fmsmga002.fm.intel.com with ESMTP; 01 Nov 2017 05:26:31 -0700 From: Liam Girdwood To: Date: Wed, 1 Nov 2017 12:26:24 +0000 Message-Id: <1509539184-16560-1-git-send-email-liam.r.girdwood@linux.intel.com> X-Mailer: git-send-email 1.9.1 Cc: Takashi Iwai , Liam Girdwood Subject: [alsa-devel] [PATCH] alsa-lib: topology: fix DSP_B mode string 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 Use the correct string for DSP_B mode. Signed-off-by: Liam Girdwood --- src/topology/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topology/pcm.c b/src/topology/pcm.c index 0f4deb4f..c5e8d465 100644 --- a/src/topology/pcm.c +++ b/src/topology/pcm.c @@ -997,7 +997,7 @@ static int get_audio_hw_format(const char *val) if (!strcmp(val, "DSP_A")) return SND_SOC_DAI_FORMAT_DSP_A; - if (!strcmp(val, "LEFT_B")) + if (!strcmp(val, "DSP_B")) return SND_SOC_DAI_FORMAT_DSP_B; if (!strcmp(val, "AC97"))