Thanks for the suggestion. I enabled rtprio and cpu load has decreased quite a bit.
$ cat /etc/security/limits.d/audio.conf
@audio - rtprio 95
@audio - memlock unlimited
Also, I have set the sample rate matching to ‘Strict’.
hw_params does not show my hw:2 device which is Allo Boss2 hat. Instead it shows hw:0 only.
$ ./hw_params
PLAYBACK
Device: hw:0 (type: HW)
Access types: MMAP_INTERLEAVED RW_INTERLEAVED
Formats: U8 S16_LE
Channels: 1 2 3 4 5 6 7 8
Sample rates: 8000-192000
Interrupt interval: 10000-16384000 us
Buffer time: 416-16384000 us
CAPTURE