mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 02:00:31 -04:00
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. MFC after: 1 week
This commit is contained in:
parent
289a7a790c
commit
99f436aec0
1 changed files with 7 additions and 0 deletions
|
|
@ -568,6 +568,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),
|
||||
|
|
@ -577,6 +583,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
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue