From patchwork Wed May 10 08:16:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Subhransu S. Prusty" X-Patchwork-Id: 9719437 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 CA28D60236 for ; Wed, 10 May 2017 08:30:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA511284E3 for ; Wed, 10 May 2017 08:30:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD84F28557; Wed, 10 May 2017 08:30:44 +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 8949E284E3 for ; Wed, 10 May 2017 08:30:43 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A5DB9266DE4; Wed, 10 May 2017 10:30:41 +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 A9210266DE5; Wed, 10 May 2017 10:30:40 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by alsa0.perex.cz (Postfix) with ESMTP id 2A1E82667E7 for ; Wed, 10 May 2017 10:30:32 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2017 01:30:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,318,1491289200"; d="scan'208";a="99662607" Received: from subhransu-desktop.iind.intel.com ([10.223.96.135]) by fmsmga005.fm.intel.com with ESMTP; 10 May 2017 01:30:29 -0700 From: "Subhransu S. Prusty" To: alsa-devel@alsa-project.org Date: Wed, 10 May 2017 13:46:53 +0530 Message-Id: <1494404213-2086-1-git-send-email-subhransu.s.prusty@intel.com> X-Mailer: git-send-email 1.9.1 Cc: tiwai@suse.de, patches.audio@intel.com, broonie@kernel.org, "Subhransu S. Prusty" , lgirdwood@gmail.com Subject: [alsa-devel] [PATCH] conf: topology: Fix index mismatch for skl and bxt 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 The topology index in the conf is set to 1, where the driver expects index set to 0. Fix the inconsistency. Signed-off-by: Subhransu S. Prusty --- src/conf/topology/bxtrt298/bxt_i2s.conf | 62 ++++++++++++++++----------------- src/conf/topology/sklrt286/skl_i2s.conf | 56 ++++++++++++++--------------- 2 files changed, 59 insertions(+), 59 deletions(-) diff --git a/src/conf/topology/bxtrt298/bxt_i2s.conf b/src/conf/topology/bxtrt298/bxt_i2s.conf index 3b7a54e3a323..6b38f4f3c5ae 100644 --- a/src/conf/topology/bxtrt298/bxt_i2s.conf +++ b/src/conf/topology/bxtrt298/bxt_i2s.conf @@ -2924,7 +2924,7 @@ SectionData."lib_data" { SectionControlMixer."media0_in mi Switch" { - index"1" + index"0" invert "false" max "1" min"0" @@ -2944,7 +2944,7 @@ SectionControlMixer."media0_in mi Switch" { } } SectionControlMixer."dmic01_hifi_in mi Switch" { - index"1" + index"0" invert "false" max "1" min"0" @@ -2964,7 +2964,7 @@ SectionControlMixer."dmic01_hifi_in mi Switch" { } } SectionControlMixer."codec0_in mi Switch" { - index"1" + index"0" invert "false" max "1" min"0" @@ -2986,7 +2986,7 @@ SectionControlMixer."codec0_in mi Switch" { SectionWidget."media0_in cpr 0" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -2998,7 +2998,7 @@ SectionWidget."media0_in cpr 0" { ] } SectionWidget."media0_in mi" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3011,7 +3011,7 @@ SectionWidget."media0_in mi" { ] } SectionWidget."codec0_in cpr 1" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -3023,7 +3023,7 @@ SectionWidget."codec0_in cpr 1" { ] } SectionWidget."codec0_in mi" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3036,12 +3036,12 @@ SectionWidget."codec0_in mi" { ] } SectionWidget."codec0_in" { - index"1" + index"0" type"aif_in" no_pm "true" } SectionWidget."codec0_out mo" { - index"1" + index"0" type"mixer" no_pm "true" event_type "1" @@ -3059,7 +3059,7 @@ SectionWidget."codec0_out mo" { ] } SectionWidget."codec0_out cpr 2" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3070,12 +3070,12 @@ SectionWidget."codec0_out cpr 2" { ] } SectionWidget."codec0_out" { - index"1" + index"0" type"aif_out" no_pm "true" } SectionWidget."media0_out mo" { - index"1" + index"0" type"mixer" no_pm "true" event_type "1" @@ -3093,7 +3093,7 @@ SectionWidget."media0_out mo" { ] } SectionWidget."media0_out cpr 3" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3104,7 +3104,7 @@ SectionWidget."media0_out cpr 3" { ] } SectionWidget."dmic01_hifi_in cpr 4" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -3116,7 +3116,7 @@ SectionWidget."dmic01_hifi_in cpr 4" { ] } SectionWidget."dmic01_hifi_in mi" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3129,12 +3129,12 @@ SectionWidget."dmic01_hifi_in mi" { ] } SectionWidget."dmic01_hifi" { - index"1" + index"0" type"aif_in" no_pm "true" } SectionWidget."codec1_out mo" { - index"1" + index"0" type"mixer" no_pm "true" event_type "1" @@ -3152,7 +3152,7 @@ SectionWidget."codec1_out mo" { ] } SectionWidget."codec1_out cpr 5" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3163,12 +3163,12 @@ SectionWidget."codec1_out cpr 5" { ] } SectionWidget."codec1_out" { - index"1" + index"0" type"aif_out" no_pm "true" } SectionWidget."hdmi1_pt_out cpr 6" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -3180,7 +3180,7 @@ SectionWidget."hdmi1_pt_out cpr 6" { ] } SectionWidget."hdmi1_pt_out cpr 7" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3191,12 +3191,12 @@ SectionWidget."hdmi1_pt_out cpr 7" { ] } SectionWidget."iDisp1_out" { - index"1" + index"0" type"aif_out" no_pm "true" } SectionWidget."hdmi2_pt_out cpr 8" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -3208,7 +3208,7 @@ SectionWidget."hdmi2_pt_out cpr 8" { ] } SectionWidget."hdmi2_pt_out cpr 9" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3219,12 +3219,12 @@ SectionWidget."hdmi2_pt_out cpr 9" { ] } SectionWidget."iDisp2_out" { - index"1" + index"0" type"aif_out" no_pm "true" } SectionWidget."hdmi3_pt_out cpr 10" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -3236,7 +3236,7 @@ SectionWidget."hdmi3_pt_out cpr 10" { ] } SectionWidget."hdmi3_pt_out cpr 11" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3247,12 +3247,12 @@ SectionWidget."hdmi3_pt_out cpr 11" { ] } SectionWidget."iDisp3_out" { - index"1" + index"0" type"aif_out" no_pm "true" } SectionWidget."mch_cap_in cpr 12" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -3264,7 +3264,7 @@ SectionWidget."mch_cap_in cpr 12" { ] } SectionWidget."mch_cap_in cpr 13" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -3283,7 +3283,7 @@ SectionManifest."lib_data" { } SectionGraph."Pipeline 1 Graph" { - index"1" + index"0" lines [ "media0_in mi, , media0_in cpr 0" "media0_in cpr 0, , System Playback" diff --git a/src/conf/topology/sklrt286/skl_i2s.conf b/src/conf/topology/sklrt286/skl_i2s.conf index bb1fe4f8435f..fbf041bfd0cf 100644 --- a/src/conf/topology/sklrt286/skl_i2s.conf +++ b/src/conf/topology/sklrt286/skl_i2s.conf @@ -2604,7 +2604,7 @@ SectionData."hdmi3_pt_out cpr 12" { SectionControlMixer."media0_in mi Switch" { - index"1" + index"0" invert "false" max "1" min"0" @@ -2624,7 +2624,7 @@ SectionControlMixer."media0_in mi Switch" { } } SectionControlMixer."codec0_in mi Switch" { - index"1" + index"0" invert "false" max "1" min"0" @@ -2644,7 +2644,7 @@ SectionControlMixer."codec0_in mi Switch" { } } SectionControlMixer."dmic01_hifi_in mi Switch" { - index"1" + index"0" invert "false" max "1" min"0" @@ -2666,7 +2666,7 @@ SectionControlMixer."dmic01_hifi_in mi Switch" { SectionWidget."media0_in cpr 0" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -2678,7 +2678,7 @@ SectionWidget."media0_in cpr 0" { ] } SectionWidget."media0_in mi" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -2691,7 +2691,7 @@ SectionWidget."media0_in mi" { ] } SectionWidget."media0_out mo" { - index"1" + index"0" type"mixer" no_pm "true" event_type "1" @@ -2709,7 +2709,7 @@ SectionWidget."media0_out mo" { ] } SectionWidget."media0_out cpr 6" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -2720,7 +2720,7 @@ SectionWidget."media0_out cpr 6" { ] } SectionWidget."codec0_out mo" { - index"1" + index"0" type"mixer" no_pm "true" event_type "1" @@ -2738,7 +2738,7 @@ SectionWidget."codec0_out mo" { ] } SectionWidget."codec0_out cpr 4" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -2749,12 +2749,12 @@ SectionWidget."codec0_out cpr 4" { ] } SectionWidget."codec0_out" { - index"1" + index"0" type"aif_out" no_pm "true" } SectionWidget."codec1_out mo" { - index"1" + index"0" type"mixer" no_pm "true" event_type "1" @@ -2772,7 +2772,7 @@ SectionWidget."codec1_out mo" { ] } SectionWidget."codec1_out cpr 5" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -2783,12 +2783,12 @@ SectionWidget."codec1_out cpr 5" { ] } SectionWidget."codec1_out" { - index"1" + index"0" type"aif_out" no_pm "true" } SectionWidget."codec0_in cpr 1" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -2800,7 +2800,7 @@ SectionWidget."codec0_in cpr 1" { ] } SectionWidget."codec0_in mi" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -2813,12 +2813,12 @@ SectionWidget."codec0_in mi" { ] } SectionWidget."codec0_in" { - index"1" + index"0" type"aif_in" no_pm "true" } SectionWidget."dmic01_hifi_in cpr 3" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -2830,7 +2830,7 @@ SectionWidget."dmic01_hifi_in cpr 3" { ] } SectionWidget."dmic01_hifi_in mi" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -2843,12 +2843,12 @@ SectionWidget."dmic01_hifi_in mi" { ] } SectionWidget."dmic01_hifi" { - index"1" + index"0" type"aif_in" no_pm "true" } SectionWidget."hdmi1_pt_out cpr 7" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -2860,7 +2860,7 @@ SectionWidget."hdmi1_pt_out cpr 7" { ] } SectionWidget."hdmi1_pt_out cpr 8" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -2871,12 +2871,12 @@ SectionWidget."hdmi1_pt_out cpr 8" { ] } SectionWidget."iDisp1_out" { - index"1" + index"0" type"aif_out" no_pm "true" } SectionWidget."hdmi2_pt_out cpr 9" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -2888,7 +2888,7 @@ SectionWidget."hdmi2_pt_out cpr 9" { ] } SectionWidget."hdmi2_pt_out cpr 10" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -2899,12 +2899,12 @@ SectionWidget."hdmi2_pt_out cpr 10" { ] } SectionWidget."iDisp2_out" { - index"1" + index"0" type"aif_out" no_pm "true" } SectionWidget."hdmi3_pt_out cpr 11" { - index"1" + index"0" type"mixer" no_pm "true" event_type "3" @@ -2916,7 +2916,7 @@ SectionWidget."hdmi3_pt_out cpr 11" { ] } SectionWidget."hdmi3_pt_out cpr 12" { - index"1" + index"0" type"pga" no_pm "true" event_type "4" @@ -2927,7 +2927,7 @@ SectionWidget."hdmi3_pt_out cpr 12" { ] } SectionGraph."Pipeline 1 Graph" { - index"1" + index"0" lines [ "media0_in mi, , media0_in cpr 0" "media0_in cpr 0, , System Playback"