[alsa-devel] Detecting if a pcm device is a digital or analog one

Clemens Ladisch clemens at ladisch.de
Fri Jun 25 10:21:33 CEST 2010


Jean-Yves Avenard wrote:
> I was wondering if there was any way to accurately distinguish between
> audio device, if it has an analog or a digital output.

Not really.  There are devices where the same stream is routed to both
analog and digital outputs, and sometimes the driver cannot know if
there is a DAC further down the line.  In any case, this would be very
hardware specific.

What do you need this for?


Regards,
Clemens


More information about the Alsa-devel mailing list