Re: Detecting if a pcm device is a digital or analog one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25 June 2010 09:21, Clemens Ladisch <clemens@xxxxxxxxxx> wrote:
> 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?
>
My guess is that if one knew, one could decide if it was sensible to
send AC3 encoded data to the PCM or not.
Without knowing which PCM is sending data to which outputs, it would
be very difficult to accurately distinguish them.
Alsa does have a device name "iec958" that one can use instead of
"front" or "default" that will ensure the output goes to a digital
output if one exists.

James
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux