]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: pcm512x: only print info once on no sclk
authorChristian Hewitt <christianshewitt@gmail.com>
Thu, 25 Jun 2026 12:28:11 +0000 (12:28 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 25 Jun 2026 13:35:50 +0000 (14:35 +0100)
commitc5315c8dcbcb9271f59662104428cd9229c9a7cb
tree05c8a763c10848a34ac3b1d1295d626dd90b8fc2
parent64184f07e7516eb3ac1839387eb7cbe2dbeaa96f
ASoC: codecs: pcm512x: only print info once on no sclk

If sclk is not provided the driver falls back to using bclk and prints
an info message in the system log. Under normal operations the message
is repeated many times:

[   17.929576] pcm512x 0-004c: No SCLK, using BCLK: -2
[   17.949172] pcm512x 0-004c: No SCLK, using BCLK: -2
[   17.953029] pcm512x 0-004c: No SCLK, using BCLK: -2
[   17.965059] pcm512x 0-004c: No SCLK, using BCLK: -2
[   82.592980] pcm512x 0-004c: No SCLK, using BCLK: -2
[   82.866293] pcm512x 0-004c: No SCLK, using BCLK: -2

Switch from dev_info to dev_info_once to reduce log noise.

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Link: https://patch.msgid.link/20260625122811.4056274-1-christianshewitt@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm512x.c