git: ab8d88442fbb - stable/14 - rk3328_codec: add trivial set_sysclk method implementation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Aug 2025 06:02:23 UTC
The branch stable/14 has been updated by avg:
URL: https://cgit.FreeBSD.org/src/commit/?id=ab8d88442fbbea9d6d57bb0359943514187c34cd
commit ab8d88442fbbea9d6d57bb0359943514187c34cd
Author: Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2025-06-23 21:07:48 +0000
Commit: Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2025-08-06 05:56:23 +0000
rk3328_codec: add trivial set_sysclk method implementation
The method does not change any settings, just returns success.
This is to silence "pcm0: failed to set sysclk for codec node" message
printed in audio_soc code.
Previously, that message was printed only during boot which was tolerable.
Recently something changed either in the sound infrastructure or in sound
applications that I use and the message started to be printed regularly.
(cherry picked from commit 99f436aec00ece1f56132a1fee972fc797bb1b42)
---
sys/arm64/rockchip/rk3328_codec.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sys/arm64/rockchip/rk3328_codec.c b/sys/arm64/rockchip/rk3328_codec.c
index b797ac3d26b4..62818bbf7905 100644
--- a/sys/arm64/rockchip/rk3328_codec.c
+++ b/sys/arm64/rockchip/rk3328_codec.c
@@ -569,6 +569,12 @@ rkcodec_dai_setup_mixer(device_t dev, device_t pcmdev)
return (0);
}
+static int
+rkcodec_dai_set_sysclk(device_t dev, unsigned int rate, int dai_dir)
+{
+ return (0);
+}
+
static device_method_t rkcodec_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, rkcodec_probe),
@@ -578,6 +584,7 @@ static device_method_t rkcodec_methods[] = {
DEVMETHOD(audio_dai_init, rkcodec_dai_init),
DEVMETHOD(audio_dai_setup_mixer, rkcodec_dai_setup_mixer),
DEVMETHOD(audio_dai_trigger, rkcodec_dai_trigger),
+ DEVMETHOD(audio_dai_set_sysclk, rkcodec_dai_set_sysclk),
DEVMETHOD_END
};