2015-11-09 4:39 GMT+01:00 Chen-Yu Tsai <
we...@csie.org>:
> On Thu, Nov 5, 2015 at 12:51 AM, Marcus Weseloh <
mwese...@gmail.com> wrote:
>> If "Pre-Amplifier DAC" and "Pre-Amplifier Mute" are both off, then
>> aplay hangs for a while and reports "aplay: pcm_write:1939: write
>> error: Input/output error". Only when enabling those two mixer
>> controls does the aplay command return successfully. Now my question:
>> is this expected behaviour?
>
> AFAIK this is the behavior of ALSA. If there's no valid output path
> for the default soundcard/route, it'll block instead of just dropping
> output.
OK, I can understand that ALSA has no valid output path if the DAC is
switched off. But that sound playback breaks if "Pre-Amplifier Mute"
is switched off is weird. If a switch called "Mute" is off, then I
would expect to hear sound, not the other way round. And "muting"
sounds to me like it's not breaking the output path but simply
controlling the last switch before the generated sounds reaches the
speakers.
But maybe I'm looking at it from the wrong perspective. The switches
and mixer controls that are available at the moment are very
technical, map more or less directly to the switches and controls that
are available in the codec. Maybe the /usr/share/alsa/cards
configuration files map the "technical" controls exported by the codec
to more user friendly controls that I know from other systems / sound
cards?
Cheers,
Marcus