<?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のトピックRe: IMX8M PLUS: Output audio through SPDIF, problem with PCM transmittion</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-PLUS-Output-audio-through-SPDIF-problem-with-PCM/m-p/2161647#M240443</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Converting from kernel layer, it's not a good solution. The converting should be done in application layer.For example, you can use &lt;A href="https://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html" target="_self"&gt;alsa pcm plugin&lt;/A&gt; to convert pcm to&amp;nbsp;&lt;SPAN&gt;iec958.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://askubuntu.com/questions/1320944/how-to-set-s-pdif-iec958-to-be-default-audio-out-via-alsa-config-file" target="_blank"&gt;https://askubuntu.com/questions/1320944/how-to-set-s-pdif-iec958-to-be-default-audio-out-via-alsa-config-file&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
    <pubDate>Tue, 02 Sep 2025 01:18:16 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2025-09-02T01:18:16Z</dc:date>
    <item>
      <title>IMX8M PLUS: Output audio through SPDIF, problem with PCM transmittion</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-PLUS-Output-audio-through-SPDIF-problem-with-PCM/m-p/2161026#M240419</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm trying to use the xcvr controller of the imx8m plus in yocto linux to output audio throught spdif.&lt;/P&gt;&lt;P&gt;The current device tree configuration for the xcvr is the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;	sound-xcvr {
	compatible = "fsl,imx-audio-card";
	model = "imx-audio-xcvr";
	pri-dai-link {
			link-name = "XCVR PCM";
			cpu {
				sound-dai = &amp;lt;&amp;amp;xcvr&amp;gt;;
			};
		};
	};

&amp;amp;xcvr {
	#sound-dai-cells = &amp;lt;0&amp;gt;;
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_xcvr&amp;gt;;
	status = "okay";
};

	pinctrl_xcvr: xcvrgrp {
		fsl,pins = &amp;lt;
			MX8MP_IOMUXC_SPDIF_TX__AUDIOMIX_SPDIF1_OUT					0xd6		
		&amp;gt;;
	};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After booting the system and doing&amp;nbsp;&lt;/P&gt;&lt;P&gt;speaker-test -D hw:0,0 -r 48000 -c 2 -t wav&lt;/P&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Playback device is hw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Sample format not available for playback: Invalid argument
Setting of hwparams failed: Invalid argument&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, doing a speaker-test using&amp;nbsp;&lt;/P&gt;&lt;P&gt;speaker-test -D iec958 -c 2 -r 48000 -t wav&lt;/P&gt;&lt;P&gt;the speaker-test plays fine.&lt;/P&gt;&lt;P&gt;These are the hw params:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;--------------------
ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT:  IEC958_SUBFRAME_LE
SUBFORMAT:  STD
SAMPLE_BITS: 32
FRAME_BITS: 64
CHANNELS: 2
RATE: [32000 192000]
PERIOD_TIME: (83 255969)
PERIOD_SIZE: [16 8191]
PERIOD_BYTES: [128 65528]
PERIODS: [2 4096]
BUFFER_TIME: (166 2048000]
BUFFER_SIZE: [32 65536]
BUFFER_BYTES: [256 524288]
TICK_TIME: ALL
--------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So from my understanding the problem is that it only accepts IEC958 subframes and not PCM.&lt;/P&gt;&lt;P&gt;Is there any way to configure the driver so that it accepts pcm frames and thus be used with hw:x,x directly?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 31 Aug 2025 16:26:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-PLUS-Output-audio-through-SPDIF-problem-with-PCM/m-p/2161026#M240419</guid>
      <dc:creator>coulomz</dc:creator>
      <dc:date>2025-08-31T16:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8M PLUS: Output audio through SPDIF, problem with PCM transmittion</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8M-PLUS-Output-audio-through-SPDIF-problem-with-PCM/m-p/2161647#M240443</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Converting from kernel layer, it's not a good solution. The converting should be done in application layer.For example, you can use &lt;A href="https://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html" target="_self"&gt;alsa pcm plugin&lt;/A&gt; to convert pcm to&amp;nbsp;&lt;SPAN&gt;iec958.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://askubuntu.com/questions/1320944/how-to-set-s-pdif-iec958-to-be-default-audio-out-via-alsa-config-file" target="_blank"&gt;https://askubuntu.com/questions/1320944/how-to-set-s-pdif-iec958-to-be-default-audio-out-via-alsa-config-file&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2025 01:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8M-PLUS-Output-audio-through-SPDIF-problem-with-PCM/m-p/2161647#M240443</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-09-02T01:18:16Z</dc:date>
    </item>
  </channel>
</rss>

