From patchwork Fri Sep 15 11:40:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 723970 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 66197EE6459 for ; Fri, 15 Sep 2023 11:42:08 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 64930E0F; Fri, 15 Sep 2023 13:41:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 64930E0F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1694778126; bh=fzwV/T0maemLA7MVq31L1kjyp9Rd6TsIqqrA7Rr1nCc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=V50VQuYn2vJcBzR+EzkIlqJsibegXW7FR1+SL+BmZNbpUbUKptIh9EtwNm4PFJ4ym m2KOYVNjtGJrTK7YleqxTqsQrWi9UYORsiPcZjbEyoY6ouI2uk8A9CMjD6QnDoXouN gSBuhjRTWxQH8VzjtWW3hgW38iHRzSuuPo3g2e2Q= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 01E9EF805AD; Fri, 15 Sep 2023 13:40:30 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 7EC9EF805B1; Fri, 15 Sep 2023 13:40:30 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C7F67F8047D; Fri, 15 Sep 2023 13:40:26 +0200 (CEST) Received: from mgamail.intel.com (mgamail.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 82EE9F80246 for ; Fri, 15 Sep 2023 13:40:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 82EE9F80246 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ViXcWyPe DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694778025; x=1726314025; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fzwV/T0maemLA7MVq31L1kjyp9Rd6TsIqqrA7Rr1nCc=; b=ViXcWyPelqRPBAPtouIDtLuk1KPv+bP8hwhvzu8k9NbvSy+XgHucBwbK NlqVL/Kjg/7M+8aIRZpXE0QgEkIuTnUur8GbHiXuysc4PnGImqVzycyiM WuOpuwKWG7rkbjNrZpkh3yTMxUqPk4slzdr5txqKTYoOksujGUPVmtE0C Cerclet+C5LJbPGSzz57q6gZFEoc14BdTDGKuaVoTvXOH/9AfkEXcZw2m cQVVTOlY4EZrlHyKa1mpg/fE6rpc0PXVl3jbYzEJKzPznPXQF77+gO/r7 szVbvtg0jw4QEi9WODknUlG53UtttBzzWcx2IwzH+nFfID7gmep5liJQZ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="358642914" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="358642914" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 04:40:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="721652883" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="721652883" Received: from brhacker-mobl26.amr.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.252.48.34]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 04:40:15 -0700 From: Peter Ujfalusi To: lgirdwood@gmail.com, broonie@kernel.org Cc: alsa-devel@alsa-project.org, pierre-louis.bossart@linux.intel.com, ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com, guennadi.liakhovetski@linux.intel.com, chao.song@linux.intel.com Subject: [PATCH 1/4] ASoC: SOF: ipc4: Convert status code 2 and 15 to -EOPNOTSUPP Date: Fri, 15 Sep 2023 14:40:15 +0300 Message-ID: <20230915114018.1701-2-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230915114018.1701-1-peter.ujfalusi@linux.intel.com> References: <20230915114018.1701-1-peter.ujfalusi@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: Z32N6VNKUD7647BAMTVENH746VFS5QWG X-Message-ID-Hash: Z32N6VNKUD7647BAMTVENH746VFS5QWG X-MailFrom: peter.ujfalusi@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The status code 2 and 15 can be translated to -EOPNOTSUPP, so convert them to a meaningful error number. Signed-off-by: Peter Ujfalusi Reviewed-by: Pierre-Louis Bossart Reviewed-by: Guennadi Liakhovetski Reviewed-by: Ranjani Sridharan Reviewed-by: Chao Song --- sound/soc/sof/ipc4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/sof/ipc4.c b/sound/soc/sof/ipc4.c index ab6eddd91bb7..24e9c29f3579 100644 --- a/sound/soc/sof/ipc4.c +++ b/sound/soc/sof/ipc4.c @@ -99,6 +99,10 @@ static int sof_ipc4_check_reply_status(struct snd_sof_dev *sdev, u32 status) to_errno: switch (status) { + case 2: + case 15: + ret = -EOPNOTSUPP; + break; case 8: case 11: case 105 ... 109: