Configuring ALSA for NONINTERLEAVED access in Jetson TX2

Hi ,

In Jetson TX2, I could configure ALSA default audio device for SND_PCM_ACCESS_RW_INTERLEAVED, SND_PCM_STREAM_PLAYBACK mode and audio playback works fine.

But When I try to configure ALSA default audio device for SND_PCM_ACCESS_RW_NONINTERLEAVED, SND_PCM_STREAM_PLAYBACK mode then below error is observed.

(snd_pcm_set_params) Access type not available for PLAYBACK: Invalid argument

Can someone please provide more details , How Jetson TX2’s ALSA to be configured for SND_PCM_ACCESS_RW_NONINTERLEAVED audio buffer playback use case?

Thanks And Regards,
Prabhakaran.

Hello!

If you refer to the tegra_pcm_alt.c, you will see that only interleaved is supported and not noninterleaved.

I am interested to know why you need noninterleaved support? For multi-channel audio it is not a common configuration because audio samples are usually interleaved.

Regards,
Jon

Hi Jonathan,

Thank you for your response. We had such use case. Now we convert non interleaved data to interleaved data and could play in Jetson TX2. Thank you!!.

~Prabhakaran.