ALSA: hda: Downgrade BDL table overflow message
authorTakashi Iwai <tiwai@suse.de>
Wed, 21 Feb 2024 10:06:07 +0000 (11:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 21 Feb 2024 10:14:16 +0000 (11:14 +0100)
When BDL table entry overflow happens, the driver spews an error
message explicitly.  But basically this condition can be triggered
easily by an application and it may flood of error logs
unnecessarily.

Downgrade the error message with dev_dbg() as a debug message
instead.

Link: https://lore.kernel.org/r/20240221100607.6565-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_stream.c

index 610ea7a33cd85adac277bfeae10a97494ed82a18..b53de020309f2bc1db45b88004986f628680cd54 100644 (file)
@@ -567,7 +567,7 @@ int snd_hdac_stream_setup_periods(struct hdac_stream *azx_dev)
        return 0;
 
  error:
-       dev_err(bus->dev, "Too many BDL entries: buffer=%d, period=%d\n",
+       dev_dbg(bus->dev, "Too many BDL entries: buffer=%d, period=%d\n",
                azx_dev->bufsize, period_bytes);
        return -EINVAL;
 }