[alsa-devel] Correct way to set NONAUDIO flag

Arun Raghavan arun.raghavan at collabora.co.uk
Wed Aug 17 09:59:07 CEST 2011

I'm trying to figure out the right way to set the NONAUDIO flag on an
iec958 device. The idea is that when we get a new stream in PulseAudio
that signals a non-PCM format, we'd like to set the NONAUDIO flag to let
receivers know that this isn't PCM data. I tried doing what iecset does
in the PA alsa-sink code but this fails.

As far as I can tell, this happens because: (a) if I set the flag before
snd_pcm_open(), the AES0 value from iec958.conf gets used, and (b) if I
set the flag after snd_pcm_open(), changing the value is no longer

Any help/pointers would be appreciated.


More information about the Alsa-devel mailing list