Jacob Meuser wrote: > On Tue, Apr 07, 2009 at 07:30:52PM +0200, Dirk Mast wrote: >> Christian Weisgerber wrote: >> >> > Dirk Mast <condo...@gmail.com> wrote: >> > >> >> perhaps this is just some stupid "where is the unmute button thing", >> >> but I don't get it working (no sound with aucat started or the other >> >> way). >> >> >> >> azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: >> >> apic 2 int 22 (irq 14) >> >> azalia0: codecs: Realtek ALC885 >> > >> >> inputs.usingdac=0203040525 [ 0203040525 06 ] >> > >> > You need to switch to the "digital" DAC group: >> > inputs.usingdac=06 >> > >> > (No, this is not obvious unless you are sitting there with the codec >> > datasheet and the driver source.) >> > >> >> Hi thank you, this works perfectly. >> >> Perhaps this should be documented somewhere, since it's really not >> obvious. Maybe in azalia(4) caveats, or in a more obvious mixerctl knob. > > yeah, 'inputs.usingdac' is rather undescriptive. at least now there > are only two choices though (basically, analog or digital), as opposed > to having basically arbitrary "dac groups", which often meant each > dac in a separate group. > > I'll get around to this, eventually. just too busy with "real life" > atm. >
Yeah, thank you. Auvia has this boolean outputs.spdif on/off. If (I'm not sure about this) all azalias would have a structure like this: several mixers for analog out and one mixer for digital out, maybe azalia.c /* if the codec has multiple DAC groups, create "inputs.usingdac" */ if (this->dacs.ngroups > 1) { MIXER_REG_PROLOG; strlcpy(d->label.name, "usingdac", sizeof(d->label.name)); could be changed in a way that this doesn't create two groups of DACs but more an on/off state. But I guess this would only work if dacs.ngroups = 2. (Seeing that i goes up to 32 I doubt that is the case...) I think another way would be if azalia could sense a plugged cable, like it can do with headphones, that signal could then be used to toggle on/off.