<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processorsのトピックpthread failed while bt call in imx8qm-mek</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/pthread-failed-while-bt-call-in-imx8qm-mek/m-p/1186754#M165302</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Board:&lt;/STRONG&gt; IMX8QM-MEK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OS: &lt;/STRONG&gt;Android 9 Automotive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to resolve the following error from alsa layer,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pthread_create sched_setscheduler(1, {3}) call failed: Operation not permitted&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pthread_create sched_setscheduler(1, {3}) call failed: Operation not permitted&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//create rx task, use real time thread.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;pthread_attr_init(&amp;amp;attr);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;pthread_attr_setschedpolicy(&amp;amp;attr, SCHED_FIFO);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;schParam.sched_priority = 3;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;pthread_attr_setschedparam(&amp;amp;attr, &amp;amp;schParam);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;adev-&amp;gt;b_sco_rx_running = true;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ret = pthread_create(&amp;amp;tid_sco_rx, &amp;amp;attr, sco_rx_task, (void *)adev);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if(ret) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;goto error;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;adev-&amp;gt;tid_sco_rx = tid_sco_rx;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ALOGI("sco_rx_task create ret %d, tid_sco_rx %ld", ret, tid_sco_rx);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2020 14:38:49 GMT</pubDate>
    <dc:creator>vinothkumars</dc:creator>
    <dc:date>2020-11-20T14:38:49Z</dc:date>
    <item>
      <title>pthread failed while bt call in imx8qm-mek</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/pthread-failed-while-bt-call-in-imx8qm-mek/m-p/1186754#M165302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Board:&lt;/STRONG&gt; IMX8QM-MEK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OS: &lt;/STRONG&gt;Android 9 Automotive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to resolve the following error from alsa layer,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pthread_create sched_setscheduler(1, {3}) call failed: Operation not permitted&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pthread_create sched_setscheduler(1, {3}) call failed: Operation not permitted&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//create rx task, use real time thread.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;pthread_attr_init(&amp;amp;attr);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;pthread_attr_setschedpolicy(&amp;amp;attr, SCHED_FIFO);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;schParam.sched_priority = 3;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;pthread_attr_setschedparam(&amp;amp;attr, &amp;amp;schParam);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;adev-&amp;gt;b_sco_rx_running = true;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ret = pthread_create(&amp;amp;tid_sco_rx, &amp;amp;attr, sco_rx_task, (void *)adev);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if(ret) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;goto error;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;adev-&amp;gt;tid_sco_rx = tid_sco_rx;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ALOGI("sco_rx_task create ret %d, tid_sco_rx %ld", ret, tid_sco_rx);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 14:38:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/pthread-failed-while-bt-call-in-imx8qm-mek/m-p/1186754#M165302</guid>
      <dc:creator>vinothkumars</dc:creator>
      <dc:date>2020-11-20T14:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: pthread failed while bt call in imx8qm-mek</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/pthread-failed-while-bt-call-in-imx8qm-mek/m-p/1190418#M165658</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will depend if the BT module you are working with is supported on the BSP as mentioned in the following thread:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Does-i-MX-8M-Nano-EVK-Bluetooth-module/m-p/1092753" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Does-i-MX-8M-Nano-EVK-Bluetooth-module/m-p/1092753&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Ivan.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 20:37:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/pthread-failed-while-bt-call-in-imx8qm-mek/m-p/1190418#M165658</guid>
      <dc:creator>IvanRuiz</dc:creator>
      <dc:date>2020-11-27T20:37:06Z</dc:date>
    </item>
  </channel>
</rss>

