From patchwork Wed Jan 12 17:00:27 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: 12711059 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 81EC7C433F5 for ; Wed, 12 Jan 2022 09:01:36 +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 7551D1904; Wed, 12 Jan 2022 10:00:44 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7551D1904 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1641978094; bh=qui2EOI7BTx4Qk6aHTNZshsKh1WcvPMH0R3UnUK75bc=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=FL43l11xNv4heeM1/d2q5bU7+aq7FaTuwSKSIHqOFjyH8jkSl0G/cisctHhw6+9aT WAJO4MB79xS2P0GfyyTQ7C+FtnL8Y+w2OjqrqXRpDGRhjvQZuvj7xC9qdCfMdG63u4 XxOq0vBhgIDHOaOhslinKURcS0l72zK2zwoxDch0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id EDE3CF8026D; Wed, 12 Jan 2022 10:00:43 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B72A1F80236; Wed, 12 Jan 2022 10:00:42 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 B4A18F80236 for ; Wed, 12 Jan 2022 10:00:39 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B4A18F80236 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iMi4KrWU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641978040; x=1673514040; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qui2EOI7BTx4Qk6aHTNZshsKh1WcvPMH0R3UnUK75bc=; b=iMi4KrWUxTomh0k0ACPAlnEYiVl13A5SiiC9NqXskTgSAJhWE+qXZs5/ YuUPJZqb5BjuP/FpvGOyyKkZfiww9Fdltl6D/jp4tsEOVjxlWPuEO8F6U zSSS2fbddrYeorlMe4S9cowiXbsjjqoUtUi1ke9MYhWfzP83Y42FVW0w0 CAOjIlxDVZMXAobNoDsTeBUFwVTXoX1RxS5gJcisB4+LL+6ToC+JsG03g x3oX6yGP0DDQh+82vZ8IdZDWXARnHZUTRcSlZJN6vuxZyjQjMKHpXvHH1 pTTwSjRU8dUMxim7QHSHwzVybsM7XbPYBkmOAB0BDhBFdNMx+nhcAJ2JS Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10224"; a="223674366" X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="223674366" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2022 01:00:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="691318348" Received: from dev2.igk.intel.com ([10.237.148.94]) by orsmga005.jf.intel.com with ESMTP; 12 Jan 2022 01:00:34 -0800 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Liam Girdwood , Mark Brown , Takashi Iwai Subject: [PATCH v2 0/3] ASoC: topology: Fixes Date: Wed, 12 Jan 2022 18:00:27 +0100 Message-Id: <20220112170030.569712-1-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: Cezary Rojewski , =?utf-8?q?Amadeusz_S=C5=82a?= =?utf-8?q?wi=C5=84ski?= , Pierre-Louis Bossart , alsa-devel@alsa-project.org 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 series performs few cleanups in topology code. First patch reduces number of prints we get from failure. Second allos TLV controls to be either read or write which should be possible as evidenced by further code in function. Last one cleanups after refactoring of memory handling. v2: - Add missing Fixes tag on second patch - Add Reviewed-by tag from Pierre Amadeusz Sławiński (3): ASoC: topology: Remove superfluous error prints ASoC: topology: Allow TLV control to be either read or write ASoC: topology: Optimize soc_tplg_dapm_graph_elems_load behavior sound/soc/soc-topology.c | 103 ++++++++++----------------------------- 1 file changed, 27 insertions(+), 76 deletions(-)