[alsa-devel] Correct way to set NONAUDIO flag

Arun Raghavan arun.raghavan at collabora.co.uk
Wed Aug 17 17:41:32 CEST 2011


On Wed, 2011-08-17 at 10:31 -0500, Pierre-Louis Bossart wrote:
> > > > 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?
> 
> 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



More information about the Alsa-devel mailing list