Closed brulzki closed 3 years ago
I was getting errors from tascamgtk such as these:
Control name='EQ High Frequence',index=0 element not found
Control name='EQ MidHigh Frequence',index=0 element not found
Control name='EQ MidLow Frequence',index=0 element not found
Control name='EQ Low Frequence',index=0 element not found
Looked into it and found that the 5.10 kernel had changed the name of those elements, so this bring it in line with that change.
This change wont work on former kernel versions. I suggest to add a kernel version check to alter the control name
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0)
#define CTL_NAME_EQ_LOW_FREQ "name='EQ Low Frequency'"
#else
#define CTL_NAME_EQ_LOW_FREQ "name='EQ Low Frequence'"
#endif
I've done that now for each of the frequency controls. Also fixed up OMainWnd.cpp where it maps the alsa controls to widgets.
Spelling mistake "Frequence" -> "Frequency"
Kernel commit: 716a0c2881938d222bde67d7edf630ea0648b8f7