You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG][topology] How to get the values declaimed in PIPELINE_PCM_ADD in codec adapter #6090
In ./src/audio/codec_adapter/codec/waves.c, we expect the value of component->period_bytes associates with SPK_MIC_PERIOD_US. However, the value of component->period_bytes is always 192.
/* initializes MaxxEffect based on stream parameters */
static int waves_effect_init(struct comp_dev *dev)
{
...
waves_codec->buffer_bytes = component->period_bytes;
...
}
Could you give us some advice to get correct value which associates with SPK_MIC_PERIOD_US? Thank you.
Environment
Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
SOF: adl-004-drop-stable branch
Name of the topology file
Topology: sof-tgl-max98357a-rt5682.m4
Name of the platform(s) on which the bug is observed.
Activity
aiChaoSONG commentedon Aug 9, 2022
I don't think you want process_module->period_bytes (src/audio/module_adapter/module/waves.c), because it is calculated with
that's why you always get 192.
can you try the dev->period (comp_dev), or dev->pipeline->period.
barry-waves commentedon Aug 9, 2022
Hi Mr. Song,
Thanks for your great help. I can get the correct value.