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 9BCC0C433EF for ; Thu, 16 Jun 2022 21:56: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 AABCE1B0A; Thu, 16 Jun 2022 23:55:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AABCE1B0A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1655416594; bh=+Ahk1FAL6LM5rG4/z+zitxJ+orNi45HOrJ8irNwRGnU=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ufixaO5R/UOnSEoTeRYE0H5QAfZ7DyNVWwRxbfYcDrs9GU1Ge7F8M1PZ6eUT8UvBE 5QjR5AQtQf8vR1blklqFErxrwWNY8k+/ouktH+dHNcuK/BGUUBXcrfzB3tb1uY8Bhg ut6v1uAPjIHwr6uU084sqx4rTb8FEovkjX2vEuZ0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2E205F80537; Thu, 16 Jun 2022 23:54:51 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3AC4EF8052D; Thu, 16 Jun 2022 23:54:47 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 A1A0AF800D3 for ; Thu, 16 Jun 2022 23:54:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A1A0AF800D3 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UwhINMvT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655416480; x=1686952480; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+Ahk1FAL6LM5rG4/z+zitxJ+orNi45HOrJ8irNwRGnU=; b=UwhINMvTidA5KqsLfQbCyjA1Fu9pNJOmwaUusCvX49nYvXsUih/yDYVt xur8ZS+rmGFdzxyzeeSNZMIpirhPUf6XG4a+WmgT9iEnrVmK3WGQldZGJ OTXewJm51sr+77HbGR+YUIpvYiNe7tEnnyQ07ZgwAKbeNyQpElxjJJhHD yF0k07hZZbPi9j5AINV1UVfrVo2sgGK6jaK2Y8Mvh6RRqvqSqHYQlM6B7 1ZxbX7E7UE4x+Td6QLvf9ErX3xyRDWaOXLUo9oUGX7WAtnAz1S5cNOAe8 nCGhTG+/MR0PESyeDMpm5a0KcDYitzVdc3UAfxTKpkfjq07uBEzBMecSv A==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="268047797" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="268047797" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 14:54:16 -0700 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="675212645" Received: from buckkenx-mobl.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.212.52.70]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 14:54:15 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Subject: [PATCH 02/13] ASoC: SOF: Intel: hda-stream: report error on stream not opened Date: Thu, 16 Jun 2022 16:53:40 -0500 Message-Id: <20220616215351.135643-3-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220616215351.135643-1-pierre-louis.bossart@linux.intel.com> References: <20220616215351.135643-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Cezary Rojewski , Bard Liao , tiwai@suse.de, Greg Kroah-Hartman , Pierre-Louis Bossart , Ranjani Sridharan , broonie@kernel.org, =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , =?UTF-8?q?P=C3=A9ter=20Ujfalusi?= 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" We report -ENODEV but only use dev_dbg, this is inconsistent. dev_err() makes sense here. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Péter Ujfalusi Reviewed-by: Bard Liao --- sound/soc/sof/intel/hda-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c index d95ae17e81cc4..fad871966de83 100644 --- a/sound/soc/sof/intel/hda-stream.c +++ b/sound/soc/sof/intel/hda-stream.c @@ -271,7 +271,7 @@ int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag) HDA_VS_INTEL_EM2_L1SEN, HDA_VS_INTEL_EM2_L1SEN); if (!found) { - dev_dbg(sdev->dev, "%s: stream_tag %d not opened!\n", + dev_err(sdev->dev, "%s: stream_tag %d not opened!\n", __func__, stream_tag); return -ENODEV; } -- 2.34.1