17 Aug
2011
17 Aug
'11
7:59 a.m.
Hello, 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 permitted.
Any help/pointers would be appreciated.
Thanks, Arun