Correct way to set NONAUDIO flag
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
Quoted 2 lines · Arun Raghavan
I'm trying to figure out the right way to set the NONAUDIO flag on an iec958 device.
Use the device name "iec958:AES0=6".
Regards,
Clemens
Hi Clemens,
Quoted 5 lines · Clemens Ladisch
Quoted 2 lines · Arun Raghavan
I'm trying to figure out the right way to set the NONAUDIO flag on an iec958 device.
Use the device name "iec958:AES0=6".
Thanks. As I understand it, this forces us to set all the flags instead of just the one that we're interested in. Is this the only way?
Regards,
Arun
Quoted 9 lines · Arun Raghavan
Quoted 5 lines · Clemens Ladisch
Quoted 2 lines · Arun Raghavan
I'm trying to figure out the right way to set the NONAUDIO flag on an iec958 device.
Use the device name "iec958:AES0=6".
Thanks. As I understand it, this forces us to set all the flags instead of just the one that we're interested in.
Yes. However, using 'default' values for these other flags would not make much sense because your application is the only one that knows the correct values.
Quoted 1 line
Is this the only way?
It's the only portable way.
Regards,
Clemens
Quoted 11 lines · Clemens Ladisch
Quoted 9 lines · Arun Raghavan
Quoted 5 lines · Clemens Ladisch
Quoted 2 lines · Arun Raghavan
I'm trying to figure out the right way to set the NONAUDIO flag on an iec958 device.
Use the device name "iec958:AES0=6".
Thanks. As I understand it, this forces us to set all the flags instead of just the one that we're interested in.
Quoted 8 lines
Yes. However, using 'default' values for these other flags would not make much sense because your application is the only one that knows the correct values.
Quoted 1 line
Is this the only way?
It's the only portable way.
Got it -- thanks for the help!
-- Arun
Quoted 8 lines
Quoted 1 line
Quoted 1 line
I'm trying to figure out the right way to set the NONAUDIO flag on
an
Quoted 3 lines
Quoted 1 line
iec958 device.
Use the device name "iec958:AES0=6".
Thanks. As I understand it, this forces us to set all the flags instead of just the one that we're interested in. Is this the only way?
I banged my head against the wall on this one for eAC3 support. For some strange reason my receiver works fine with AC3 without touching the C bits, but for eAC3 setting the NONAUDIO bit is required.
If you try to set the bits with ALSA controls in PulseAudio, somehow the settings are overwritten when the iec958 device is opened and initialized with default values. Clemens is right, setting the AES0=6 in the hdmi profile proved to be the only solution. It'd be nice to find a solution in which the iec958 device preserves the AES values set beforehand. That way we could set the NONAUDIO bit only in passthrough mode.
-Pierre
A message that is not in the archive (sent off-list or not yet received): 000901cc5cf2$af7fa180$0e7ee480$@[email protected]
Quoted 9 lines · Pierre-Louis Bossart
Quoted 8 lines
Quoted 1 line
Quoted 1 line
I'm trying to figure out the right way to set the NONAUDIO flag on
an
Quoted 3 lines
Quoted 1 line
iec958 device.
Use the device name "iec958:AES0=6".
Thanks. As I understand it, this forces us to set all the flags instead of just the one that we're interested in. Is this the only way?
Quoted 9 lines
I banged my head against the wall on this one for eAC3 support. For some strange reason my receiver works fine with AC3 without touching the C bits, but for eAC3 setting the NONAUDIO bit is required.
If you try to set the bits with ALSA controls in PulseAudio, somehow the settings are overwritten when the iec958 device is opened and initialized with default values. Clemens is right, setting the AES0=6 in the hdmi profile proved to be the only solution. It'd be nice to find a solution in which the iec958 device preserves the AES values set beforehand. That way we could set the NONAUDIO bit only in passthrough mode.
Well, given this is the best way to do it, my plan is to just close (suspend) and reopen (unsuspend) and tack on the the right flags to the device name when we're in passthrough mode.
-- Arun
Quoted 3 lines · Pierre-Louis Bossart
If you try to set the bits with ALSA controls in PulseAudio, somehow the settings are overwritten when the iec958 device is opened and initialized with default values.
That's how the iec958 device is intended to work.
The AES0..3 parameters of the iec958 device are the _only_ way to set
these flags. If you don't set them, they get a static default value;
see <http://git.alsa-project.org/?p=alsa-lib.git;a=blob;hb=HEAD;f=src/conf/pcm/iec958.conf>.
If PA wants to set these flags, it must do so when opening the device; any other mechanism will not work.
Regards,
Clemens