mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
cpu: Add force_generic_code flag to cpu_info struct
The remapper and channel mixing code have (faster) specialized and (slower) generic code certain code path. The flag force_generic_code can be set to force the generic code path which is useful for testing. Code duplication (such as in mix-special-test) can be avoided, cleanup patches follow. Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
61c888dc93
commit
f4ab8bd835
4 changed files with 31 additions and 0 deletions
|
|
@ -40,8 +40,12 @@ struct pa_cpu_info {
|
|||
pa_cpu_x86_flag_t x86;
|
||||
pa_cpu_arm_flag_t arm;
|
||||
} flags;
|
||||
bool force_generic_code;
|
||||
};
|
||||
|
||||
void pa_cpu_init(pa_cpu_info *cpu_info);
|
||||
|
||||
void pa_remap_func_init(const pa_cpu_info *cpu_info);
|
||||
void pa_mix_func_init(const pa_cpu_info *cpu_info);
|
||||
|
||||
#endif /* foocpuhfoo */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue