<p></p>
<p>><br>
> The analog-output path should be used only when more specific outputs<br>
> don't exist, so usually it should be suppressed, and currently that<br>
> doesn't happen. One practical problem caused by that is that the<br>
> analog-output port may get chosen during boot if headphones are<br>
> plugged in, because analog-output has higher priority than headphones<br>
> and the speaker port is unavailable[1]. That particular problem could<br>
> maybe be fixed by decreasing the analog-output priority, or by<br>
> tweaking module-switch-on-port-available, but this time I decided to<br>
> fix the problem of analog-output appearing when it's redundant.<br>
><br>
> [1] <a href="https://bugs.freedesktop.org/show_bug.cgi?id=74609">https://bugs.freedesktop.org/show_bug.cgi?id=74609</a><br>
><br>
> Tanu Kaskinen (2):<br>
>   alsa-mixer: Fix path subset detection<br>
>   alsa-mixer: Ignore some elements in the analog-output path<br>
><br>
>  src/modules/alsa/alsa-mixer.c                   | 26 +++++++++----------<br>
>  src/modules/alsa/mixer/paths/analog-output.conf | 34 -------------------------<br>
>  2 files changed, 13 insertions(+), 47 deletions(-)<br>
><br>
> --</p>
<p>It seem that pulseaudio assume headphone playback volume always exist but it seem that some hda codec only have one volume control </p>
<p><a href="https://launchpadlibrarian.net/178486556/AlsaInfo.txt">https://launchpadlibrarian.net/178486556/AlsaInfo.txt</a><br></p>
<p>Codec: Cirrus Logic CS4213<br>
Address: 0<br>
AFG Function Id: 0x1 (unsol 1)<br>
Vendor Id: 0x10134213<br>
Subsystem Id: 0x10280558<br>
Revision Id: 0x100100</p>
<p>Node 0x02 [Audio Output] wcaps 0xb041d: Stereo Amp-Out<br>
  Control: name="PCM Playback Volume", index=0, device=0<br>
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0<br>
  Control: name="PCM Playback Switch", index=0, device=0<br>
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0<br>
  Device: name="CS4213 Analog", type="Audio", device=0<br>
  Amp-Out caps: ofs=0x73, nsteps=0x7f, stepsize=0x01, mute=1<br>
  Amp-Out vals:  [0x48 0x48]<br>
  Converter: stream=8, channel=0<br>
  PCM:<br>
    rates [0x560]: 44100 48000 96000 192000<br>
    bits [0xe]: 16 20 24<br>
    formats [0x1]: PCM<br>
  Power states:  D0 D3 EPSS<br>
  Power: setting=D0, actual=D0<br>
  Delay: 11 samples</p>
<p>Node 0x04 [Pin Complex] wcaps 0x410581: Stereo<br>
  Control: name="Headphone Jack", index=0, device=0<br>
  Pincap 0x0000001c: OUT HP Detect<br>
  Pin Default 0x0321101f: [Jack] HP Out at Ext Left<br>
    Conn = 1/8, Color = Black<br>
    DefAssociation = 0x1, Sequence = 0xf<br>
  Pin-ctls: 0xc0: OUT HP<br>
  Unsolicited: tag=01, enabled=1<br>
  Power states:  D0 D3 EPSS<br>
  Power: setting=D0, actual=D0<br>
  Delay: 1 samples<br>
  Connection: 1<br>
     0x02<br>
Node 0x05 [Pin Complex] wcaps 0x420581: Stereo<br>
  Control: name="Speaker Phantom Jack", index=0, device=0<br>
  Pincap 0x00000050: OUT Balanced<br>
  Pin Default 0x90170010: [Fixed] Speaker at Int N/A<br>
    Conn = Analog, Color = Unknown<br>
    DefAssociation = 0x1, Sequence = 0x0<br>
  Pin-ctls: 0x00:<br>
  Unsolicited: tag=00, enabled=0<br>
  Power states:  D0 D3 EPSS<br>
  Power: setting=D0, actual=D0<br>
  Delay: 2 samples<br>
  Connection: 1<br>
     0x02</p>