<?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>topic Re: [Android] How to support SPDIF input feature? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308982#M40012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sinan, I'll give it a try thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Bruce Quinton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2014 22:14:22 GMT</pubDate>
    <dc:creator>brucequinton</dc:creator>
    <dc:date>2014-07-10T22:14:22Z</dc:date>
    <item>
      <title>[Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308953#M39983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to enable SPDIF input feature on i.MX6 Android platform.&lt;/P&gt;&lt;P&gt;In the BSP 4.2.2_1.0.0, there are SPDIF related source codes in hardware/imx/alsa/config_spdif.h &amp;amp; hardware/imx/alsa/tinyalsa_hal.c.&lt;/P&gt;&lt;P&gt;I find AUDIO_DEVICE_IN_AUX_DIGITAL device is assigned for SPDIF input, but it seems not work actually when I set attached_input_devices to AUDIO_DEVICE_IN_AUX_DIGITAL in audio_policy.conf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logs are as below.&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;1699:01-02 00:28:39.410 I/OMXPlayer( 2284): Audio source: 1&lt;/P&gt;&lt;P&gt;1700:01-02 00:28:39.410 W/audio_hw_primary( 2284): In channels 1, rate 8000, devices 0x80000020&lt;/P&gt;&lt;P&gt;1701:01-02 00:28:39.410 W/audio_hw_primary( 2284): get_input_buffer_size size = 96, channel_count = 1&lt;/P&gt;&lt;P&gt;1702:01-02 00:28:39.410 W/audio_hw_primary( 2284): get_input_buffer_size size = 96, channel_count = 1&lt;/P&gt;&lt;P&gt;1703:01-02 00:28:39.430 E/AudioPolicyManagerBase( 2284): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION&lt;/P&gt;&lt;P&gt;1704:01-02 00:28:39.430 E/AudioPolicyManagerBase( 2284): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION&lt;/P&gt;&lt;P&gt;1707:01-02 00:28:39.440 I/OMXPlayer( 2284): Set AudioSource start time.&lt;/P&gt;&lt;P&gt;1708:01-02 00:28:39.440 W/audio_hw_primary( 2284): in_set_parameters input_source=1;routing=-2147483616, ret 11&lt;/P&gt;&lt;P&gt;1709:01-02 00:28:39.450 W/audio_hw_primary( 2284): start_input_stream....&lt;/P&gt;&lt;P&gt;1710:01-02 00:28:39.450 W/audio_hw_primary( 2284): card 1, port 0 device 0x20&lt;/P&gt;&lt;P&gt;1711:01-02 00:28:39.450 W/audio_hw_primary( 2284): rate 44100, channel 2 format 2, period_size 0x200&lt;/P&gt;&lt;P&gt;1713:01-02 00:28:41.460 I/OMXPlayer( 2284): OMX.Freescale.std.audio_source.android.sw-based wait command[0:3] timeout.&lt;/P&gt;&lt;P&gt;1718:01-02 00:28:42.040 I/OMXPlayer( 2284): OMX.Freescale.std.audio_source.android.sw-based send command[0:2] timeout.&lt;/P&gt;&lt;P&gt;1722:01-02 00:28:42.580 I/OMXPlayer( 2284): OMX.Freescale.std.audio_source.android.sw-based Time out for Sending Command [2:1], Busy on Command [0:2].&lt;/P&gt;&lt;P&gt;1724:01-02 00:28:42.580 I/OMXPlayer( 2284): OMX.Freescale.std.audio_source.android.sw-based Wait incorrect Command[2:1], ProcessingCmd is [0:2].&lt;/P&gt;&lt;P&gt;1737:01-02 00:28:49.470 W/audio_hw_primary( 2284): ret -1, pcm write 768 error cannot write stream data: I/O error.&lt;/P&gt;&lt;P&gt;1738:01-02 00:28:49.470 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_wrapper error -1&lt;/P&gt;&lt;P&gt;1739:01-02 00:28:49.470 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_convert error -1&lt;/P&gt;&lt;P&gt;1740:01-02 00:28:49.470 W/audio_hw_primary( 2284): ret -1, pcm read error cannot read stream data: I/O error.&lt;/P&gt;&lt;P&gt;1741:01-02 00:28:49.470 W/audio_hw_primary( 2284): ret -1, pcm write 768 error cannot prepare channel: Device or resource busy.&lt;/P&gt;&lt;P&gt;1742:01-02 00:28:49.470 W/audio_hw_primary( 2284): ret -1, pcm write 768 error cannot prepare channel: Device or resource busy.&lt;/P&gt;&lt;P&gt;1743:01-02 00:28:49.480 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_wrapper error -16&lt;/P&gt;&lt;P&gt;1744:01-02 00:28:49.480 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_convert error -16&lt;/P&gt;&lt;P&gt;1745:01-02 00:28:49.480 W/audio_hw_primary( 2284): ret -16, pcm read error cannot prepare channel: Device or resource busy.&lt;/P&gt;&lt;P&gt;1746:01-02 00:28:49.480 W/audio_hw_primary( 2284): ret -1, pcm write 768 error cannot prepare channel: Device or resource busy.&lt;/P&gt;&lt;P&gt;1748:01-02 00:28:49.480 I/OMXPlayer( 2284): OMX.Freescale.std.audio_source.android.sw-based Invalid state transitioin: 3 -&amp;gt; 1.&lt;/P&gt;&lt;P&gt;1752:01-02 00:28:49.490 W/audio_hw_primary( 2284): do_out_standby... 1074310608&lt;/P&gt;&lt;P&gt;1753:01-02 00:28:49.490 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_wrapper error -16&lt;/P&gt;&lt;P&gt;1754:01-02 00:28:49.490 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_convert error -16&lt;/P&gt;&lt;P&gt;1755:01-02 00:28:49.490 W/audio_hw_primary( 2284): ret -16, pcm read error cannot prepare channel: Device or resource busy.&lt;/P&gt;&lt;P&gt;1756:01-02 00:28:49.500 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_wrapper error -16&lt;/P&gt;&lt;P&gt;1757:01-02 00:28:49.500 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_convert error -16&lt;/P&gt;&lt;P&gt;1758:01-02 00:28:49.500 W/audio_hw_primary( 2284): ret -16, pcm read error cannot prepare channel: Device or resource busy.&lt;/P&gt;&lt;P&gt;1759:01-02 00:28:49.520 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_wrapper error -16&lt;/P&gt;&lt;P&gt;1760:01-02 00:28:49.520 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_convert error -16&lt;/P&gt;&lt;P&gt;1761:01-02 00:28:49.520 W/audio_hw_primary( 2284): ret -16, pcm read error cannot prepare channel: Device or resource busy.&lt;/P&gt;&lt;P&gt;1762:01-02 00:28:49.530 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_wrapper error -16&lt;/P&gt;&lt;P&gt;1763:01-02 00:28:49.530 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_convert error -16&lt;/P&gt;&lt;P&gt;1764:01-02 00:28:49.530 W/audio_hw_primary( 2284): ret -16, pcm read error cannot prepare channel: Device or resource busy.&lt;/P&gt;&lt;P&gt;1765:01-02 00:28:49.540 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_wrapper error -16&lt;/P&gt;&lt;P&gt;1766:01-02 00:28:49.540 E/audio_hw_primary( 2284): get_next_buffer() pcm_read_convert error -16&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, it also failed when I try to capture SPDIF frame with tinycap.&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;root@android:/data # tinycap test.wav -D 1 -d 0&lt;/P&gt;&lt;P&gt;Unable to open PCM device (cannot set hw params: Invalid argument)&lt;/P&gt;&lt;P&gt;Captured 0 frames&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:52:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308953#M39983</guid>
      <dc:creator>charleshuang</dc:creator>
      <dc:date>2014-05-30T09:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308954#M39984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&amp;nbsp; you want to use SPDIF input feature, you should multiplex SPDIF_IN signal via one of the following CPU PADs on you board(hardware) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SPDIF_IN.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43724iDEB12E65D8C8E6EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPDIF_IN.png" alt="SPDIF_IN.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Then add multiplexing codes to BSP file or corresponding header file, multiplexing PADs are defined in ~/myandroid/kernel_imx/arch/arm/plat-mxc/include/mach/iomux_mx6q.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try it on!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 01:54:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308954#M39984</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2014-06-05T01:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308955#M39985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Weidong and Daniel,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I came across this post while looking for information on how to use the SPDIF input on a Utilite (which has the CM-MX6 board) I looked through the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;iomux_mx6q&lt;/SPAN&gt;.h file and I believe I have assigned the CPU PAD as mentioned above, I re-compiled the Kernel but I I still get a read/input error when I attempt to open the SPDIF hardware. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest I'm not sure I even need to recompile the kernel but I figured it couldn't hurt. :smileywink: I feel I need to do a lot more reading before I will be able to read the data from my SPDIF input hardware, could either of you give me some direction please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I'm not attempting to hijack the thread, so please ignore my post if Daniels question is not answered)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 05:52:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308955#M39985</guid>
      <dc:creator>brucequinton</dc:creator>
      <dc:date>2014-06-05T05:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308956#M39986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to check if SPDIF device can be seen in kernel first.&lt;/P&gt;&lt;P&gt;Besides the CPU PADs settings, you have to open the defconfig as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIG_SND_MXC_SOC_SPDIF_DAI=y&lt;/P&gt;&lt;P&gt;CONFIG_SND_SOC_IMX_SPDIF=y&lt;/P&gt;&lt;P&gt;CONFIG_SND_SOC_MXC_SPDIF=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you should be able to see the SPDIF device in kernel log like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ALSA device list: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; #0: sgtl5000-audio &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; #1: imx-spdif &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; #2: imx-hdmi-soc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 07:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308956#M39986</guid>
      <dc:creator>danielhung</dc:creator>
      <dc:date>2014-06-05T07:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308957#M39987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Weidong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. I can see the SPDIF device in kernel and SPDIF input/output both works fine in Linux.&lt;/P&gt;&lt;P&gt;The question now is about Android HAL.&lt;/P&gt;&lt;P&gt;The target is to let users can record from SPDIF input device via Sound Recorder application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 07:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308957#M39987</guid>
      <dc:creator>danielhung</dc:creator>
      <dc:date>2014-06-05T07:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308958#M39988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,Thank you for the reply. I can now see the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;#1: imx-spdif&lt;/SPAN&gt; in the log but when I attempt to use it I get a read/input error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I'm attempting to use it wrong. Would you happen to have a snippet of code that connect to the SPDIF device and stream data (even just to the stdout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to ask but I cannot see where I have gone wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again I appreciate to the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Bruce Quinton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 07:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308958#M39988</guid>
      <dc:creator>brucequinton</dc:creator>
      <dc:date>2014-06-05T07:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308959#M39989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you use it? In Linux or Android?&lt;/P&gt;&lt;P&gt;I can play wav file by the following ways. Remember to set correct device &amp;amp; card number for your SPDIF device.&lt;/P&gt;&lt;P&gt;[Linux]&lt;/P&gt;&lt;P&gt;aplay test.wav -D plughw:1,0&lt;/P&gt;&lt;P&gt;[Android]&lt;/P&gt;&lt;P&gt;tinyplay test.wav -D 1 -d 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 08:08:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308959#M39989</guid>
      <dc:creator>danielhung</dc:creator>
      <dc:date>2014-06-05T08:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308960#M39990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, i'm using Linux, I can play a sound file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble recording from the SPDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 08:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308960#M39990</guid>
      <dc:creator>brucequinton</dc:creator>
      <dc:date>2014-06-05T08:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308961#M39991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this one. It works for me.&lt;/P&gt;&lt;P&gt;# arecord -D plughw:1,0 test.wav -v&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 09:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308961#M39991</guid>
      <dc:creator>danielhung</dc:creator>
      <dc:date>2014-06-05T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308962#M39992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get nothing at all, it just builds the wav header and no content. (I have tested that the input has data by using another PC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I use &lt;BR /&gt;#arecord -D hw:1,0 test.wav -v &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receive the following error: pcm_read:1801: read error: input/output error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any change you package your kernel and modules into a tar file and shoot them to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 09:43:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308962#M39992</guid>
      <dc:creator>brucequinton</dc:creator>
      <dc:date>2014-06-05T09:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308963#M39993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry. I cannot share source code to you.&lt;/P&gt;&lt;P&gt;No idea about your question. Maybe you can check the configuration or permission for audio device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 09:58:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308963#M39993</guid>
      <dc:creator>danielhung</dc:creator>
      <dc:date>2014-06-05T09:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308964#M39994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problems at all, I understand. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help and your time. I appreciate your efforts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:01:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308964#M39994</guid>
      <dc:creator>brucequinton</dc:creator>
      <dc:date>2014-06-05T10:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308965#M39995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/weidong.sun"&gt;weidong.sun&lt;/A&gt;, could you keep following this thread?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 01:44:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308965#M39995</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-06-20T01:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308966#M39996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weidong, could you please continue to help the customer?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 02:27:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308966#M39996</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-07-01T02:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308967#M39997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yixing &amp;amp; Weidong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know do you have any update for this issue?&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 02:21:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308967#M39997</guid>
      <dc:creator>danielhung</dc:creator>
      <dc:date>2014-07-09T02:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308968#M39998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I confirmed the issue with R&amp;amp;D ,&amp;nbsp; In our android bsp, tinyalsa_hal.c supports SPDIF input, you can check this source code.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 06:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308968#M39998</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2014-07-09T06:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308969#M39999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Weidong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. I see AUDIO_DEVICE_IN_AUX_DIGITAL device for SPDIF audio input in tinyalso HAL, but it seems not complete enough to work.&lt;/P&gt;&lt;P&gt;In my opinion, there should be more modifications in tinyalsa_hal.c and add SPDIF input configs in audio_policy.conf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you double confirm if SPDIF input device really work on Freescale sabresd demo board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308969#M39999</guid>
      <dc:creator>danielhung</dc:creator>
      <dc:date>2014-07-09T09:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308970#M40000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel, I am not running Android but I tested sabresd spdif input and under both FSL 3.0.5 as well mainline Linux kernel it works fine.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Sinan Akman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 16:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308970#M40000</guid>
      <dc:creator>sinanakman</dc:creator>
      <dc:date>2014-07-09T16:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308971#M40001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I confirmed with tinyalsa_hal owner from R&amp;amp;D team, On our SabreSD board , there is not SPDIF input pin, so you can't use this board to test the funciton. On our sabreauto board, this function is supported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to sabresd board, you will have to adjust hardware, I mean you should make SPDIF signal output at first, then test it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 08:50:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308971#M40001</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2014-07-10T08:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] How to support SPDIF input feature?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308972#M40002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sinan Akman,&lt;/P&gt;&lt;P&gt;Thank you. It also works fine on Linux kernel for me.&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 09:01:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-How-to-support-SPDIF-input-feature/m-p/308972#M40002</guid>
      <dc:creator>danielhung</dc:creator>
      <dc:date>2014-07-10T09:01:46Z</dc:date>
    </item>
  </channel>
</rss>

