pthread failed while bt call in imx8qm-mek

cancel
Showing results for 
Search instead for 
Did you mean: 

pthread failed while bt call in imx8qm-mek

126 Views
vinothkumars
Senior Contributor III

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
0 Kudos
1 Reply

107 Views
IvanRuiz
NXP TechSupport
NXP TechSupport

Hello,

 

It will depend if the BT module you are working with is supported on the BSP as mentioned in the following thread: https://community.nxp.com/t5/i-MX-Processors/Does-i-MX-8M-Nano-EVK-Bluetooth-module/m-p/1092753

 

BR,

Ivan.

0 Kudos