From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C7A5223302; Thu, 12 Dec 2024 15:42:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734018127; cv=none; b=PIH5k7y2hhKxEZdoDh9UMEvZEbKm71pAu0RUuB5CmaRqG54KPrpmJr8h6kKIsYcNyi+oGzE6m8fK2jV6eVE0nz2SbN81hdkBuYWayh/v/eZTrF+zik4yr5kOYwbUechjf5x914pwOCCtnKQdY55zcjTsJ7zoNR/EeNPa9rt1Kk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734018127; c=relaxed/simple; bh=awywcxmg/L+dMXcNDryO8QvpgOhax+C5m6Cqy0pL0ao=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UE18lAnFIiHuwKyCGU864lRjfmgW5Wtfz4yXYmU1qoCndB13MxkN2+7Kgx4Qqhu26QGvKyyp4GMBdNrtfYUVY//O1SdKOnzv0d/Rf+cxwpya6wVBdcxgh4CUguwGo7vFl7OjOSty9mUNcma7ER+Exj5sqA2/bF28Bx0Ptash980= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LAYLWWWN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LAYLWWWN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEA26C4CECE; Thu, 12 Dec 2024 15:42:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734018127; bh=awywcxmg/L+dMXcNDryO8QvpgOhax+C5m6Cqy0pL0ao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LAYLWWWNT/oc5SqMe4kE3RWfhaMN+fpIwBD/oW4nfkLQvt06HViWApMU3iihF3I8R Xy46uFbLuiFLiCgEd4XlhqM/3tW2dlIE5XMdfyvMoY6P8ox942bYTbA3KESyhRMkIO E0NEg+V+5cqkQ0oIZTtqdUTA5lx8MOUjN6tcu/is= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dom Cobley , Maxime Ripard , Dave Stevenson , Sasha Levin Subject: [PATCH 6.6 206/356] drm/vc4: hdmi: Avoid log spam for audio start failure Date: Thu, 12 Dec 2024 15:58:45 +0100 Message-ID: <20241212144252.752792745@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144244.601729511@linuxfoundation.org> References: <20241212144244.601729511@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dom Cobley [ Upstream commit b4e5646178e86665f5caef2894578600f597098a ] We regularly get dmesg error reports of: [ 18.184066] hdmi-audio-codec hdmi-audio-codec.3.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 18.184098] MAI: soc_pcm_open() failed (-19) These are generated for any disconnected hdmi interface when pulseaudio attempts to open the associated ALSA device (numerous times). Each open generates a kernel error message, generating general log spam. The error messages all come from _soc_pcm_ret in sound/soc/soc-pcm.c#L39 which suggests returning ENOTSUPP, rather that ENODEV will be quiet. And indeed it is. Signed-off-by: Dom Cobley Reviewed-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20240621152055.4180873-5-dave.stevenson@raspberrypi.com Signed-off-by: Dave Stevenson Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index d4487f4cb3034..1727d447786f1 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c @@ -2396,7 +2396,7 @@ static int vc4_hdmi_audio_startup(struct device *dev, void *data) } if (!vc4_hdmi_audio_can_stream(vc4_hdmi)) { - ret = -ENODEV; + ret = -ENOTSUPP; goto out_dev_exit; } -- 2.43.0