pthread failed while bt call in imx8qm-mek

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

pthread failed while bt call in imx8qm-mek

721 次查看
vinothkumars
Senior Contributor IV

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 项奖励
1 回复

702 次查看
IvanRuiz
NXP Employee
NXP Employee

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 项奖励