From patchwork Fri Apr 1 12:01:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 12798220 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 176E0C433FE for ; Fri, 1 Apr 2022 12:03:18 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2E6641A4C; Fri, 1 Apr 2022 14:02:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2E6641A4C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1648814596; bh=xC2bSe82xYgP6abQYkmv+fmYKvztykr5uHYJHO5N3l4=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=UTCPVqKlN1FoonSQiVwPCXLDe+nPD7yB0bQ8GezswfNNCafm0w2WWCAJJWm4JXQ7X AmWvB1Nk5wqi1gTwGGnUm9ACIGz5WSCeazjK43H1kfaiPH2ISun/tIzOogykpOGCtO ybjiWsEsE/cMhsttR6a7ns+P5Dk4rK/DXN2QBy5Y= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 76FD6F804C1; Fri, 1 Apr 2022 14:02:19 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E04D7F804B2; Fri, 1 Apr 2022 14:02:17 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 88754F80279 for ; Fri, 1 Apr 2022 14:02:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 88754F80279 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="j9eqjvwj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648814535; x=1680350535; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xC2bSe82xYgP6abQYkmv+fmYKvztykr5uHYJHO5N3l4=; b=j9eqjvwjY0n7fO/HXxCtANP2ArZbgLApJrSHA+1USeCWpTxmAyxPkxgy Cv/uv5R/vb/S7HG1QzmdA6FvQ8ZxqpG/lbV+CP6dgLqgEAhB9ZQeO1PZS gAI9KXv/NjPyJnSFae1F6XlT3+v+PWYijFYPJe5XkZJuZkjiU0M2JrS6m KjSxbrGVVZ0P/8ym0VwLLE4RA02NqFl+vOi6fSPy1jLj163S3gSeOlfGR NpGQ8FPKEwOew1IJF08QUGX6PlrfVmAwxPADl8XFODsH113sIgpxuRqu1 oZeDZq61EO9rDLOfpGyLmSNhfpvLj9zZM3ssdRURvpbC1qdVKSj7p2MR1 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10303"; a="258945831" X-IronPort-AV: E=Sophos;i="5.90,227,1643702400"; d="scan'208";a="258945831" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2022 05:02:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,227,1643702400"; d="scan'208";a="567431951" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orsmga008.jf.intel.com with ESMTP; 01 Apr 2022 05:02:04 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Liam Girdwood , Mark Brown Subject: [PATCH 0/6] ASoC: topology: Cleanup patches Date: Fri, 1 Apr 2022 14:01:54 +0200 Message-Id: <20220401120200.4047867-1-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: Pierre-Louis Bossart , Cezary Rojewski , alsa-devel@alsa-project.org, Takashi Iwai , =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Following patches contain minor changes, cleaning up code to be easier to read. Clean up few loops, to be simpler or altogether remove them. Rename some things to make code easier to understand. Amadeusz Sławiński (6): ASoC: topology: Use for loop instead of while ASoC: topology: Remove unnecessary looping ASoC: topology: Return bool instead of int ASoC: topology: Rename SOC_TPLG_PASS_MIXER to _CONTROL ASoC: topology: Correct error message ASoC: topology: Rename soc_tplg_init_kcontrol() function sound/soc/soc-topology.c | 455 ++++++++++++++++++--------------------- 1 file changed, 208 insertions(+), 247 deletions(-) Reviewed-by: Cezary Rojewski Reviewed-by: Ranjani Sridharan