Hi,
Board: IMX8QM-MEK
OS: Android 9 Automotive
How to resolve the following error from alsa layer,
pthread_create sched_setscheduler(1, {3}) call failed: Operation not permitted
pthread_create sched_setscheduler(1, {3}) call failed: Operation not permitted
//create rx task, use real time thread.
pthread_attr_init(&attr);
pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
schParam.sched_priority = 3;
pthread_attr_setschedparam(&attr, &schParam);
adev->b_sco_rx_running = true;
ret = pthread_create(&tid_sco_rx, &attr, sco_rx_task, (void *)adev);
if(ret) {
goto error;
}
adev->tid_sco_rx = tid_sco_rx;
ALOGI("sco_rx_task create ret %d, tid_sco_rx %ld", ret, tid_sco_rx);
Regards,
Regards,
Vinothkumar Sekar