<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 27, 2019 at 5:27 AM Tanu Kaskinen <<a href="mailto:tanuk@iki.fi">tanuk@iki.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 2019-04-26 at 07:37 -0500, Matt Zagrabelny wrote:<br>
> On Fri, Apr 26, 2019 at 4:28 AM Tanu Kaskinen <<a href="mailto:tanuk@iki.fi" target="_blank">tanuk@iki.fi</a>> wrote:<br>
> <br>
> > > Card #1<br>
> > > Name: alsa_card.pci-0000_00_14.2<br>
> > <br>
> > ...<br>
> > <br>
> > > Ports:<br>
> > <br>
> > ...<br>
> > <br>
> > > analog-output-lineout: Line Out (priority: 9900, latency<br>
> > > offset: 0 usec, not available)<br>
> > > Part of profile(s): output:analog-stereo,<br>
> > > output:analog-stereo+input:analog-stereo, output:analog-surround-21,<br>
> > > output:analog-surround-21+input:analog-stereo, output:analog-surround-40,<br>
> > > output:analog-surround-40+input:analog-stereo, output:analog-surround-41,<br>
> > > output:analog-surround-41+input:analog-stereo, output:analog-surround-50,<br>
> > > output:analog-surround-50+input:analog-stereo, output:analog-surround-51,<br>
> > > output:analog-surround-51+input:analog-stereo, output:analog-surround-71,<br>
> > > output:analog-surround-71+input:analog-stereo<br>
> > > analog-output-headphones: Headphones (priority: 9000,<br>
> > > latency offset: 0 usec, not available)<br>
> > > Properties:<br>
> > > device.icon_name = "audio-headphones"<br>
> > > Part of profile(s): output:analog-stereo,<br>
> > > output:analog-stereo+input:analog-stereo<br>
> > > iec958-stereo-output: Digital Output (S/PDIF) (priority:<br>
> > 0,<br>
> > > latency offset: 0 usec)<br>
> > > Part of profile(s): output:iec958-stereo,<br>
> > > output:iec958-stereo+input:analog-stereo<br>
> > <br>
> > Both analog ports are marked as "not available", which means that to<br>
> > PulseAudio looks like nothing is plugged in in either connector. This<br>
> > is the reason why PulseAudio always picks the digital output on boot.<br>
> > Broken jack detection is is a hardware or driver issue, which can be<br>
> > worked around, see below.<br>
> > <br>
> <br>
> Ahhh. Understood.<br>
> <br>
> <br>
> > > > while read -r line; do amixer -c0 cget "$line"; done <<< $(amixer<br>
> > -c0<br>
> > > > controls | grep Jack)<br>
> > > > <br>
> > > <br>
> > > numid=1,iface=CARD,name='HDMI/DP,pcm=3 Jack'<br>
> > > ; type=BOOLEAN,access=r-------,values=1<br>
> > > : values=on<br>
> > > numid=7,iface=CARD,name='HDMI/DP,pcm=7 Jack'<br>
> > > ; type=BOOLEAN,access=r-------,values=1<br>
> > > : values=off<br>
> > <br>
> > It seems that I guessed wrong the card number. Card 0 seems to be the<br>
> > HDMI card, while we're interested in the analog sound card, which is<br>
> > alsa card 1. So change the script to this:<br>
> > <br>
> > while read -r line; do amixer -c0 cget "$line"; done <<< $(amixer -c0<br>
> > controls | grep Jack)<br>
> > <br>
> <br>
> I'm guessing I should change the above -c0's to -c1's.<br>
<br>
Oops! Yes, that's what I meant.<br>
<br>
> Here is that output:<br>
> <br>
> numid=44,iface=CARD,name='CD Phantom Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=on<br>
> numid=49,iface=CARD,name='Front Headphone Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=off<br>
> numid=42,iface=CARD,name='Front Mic Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=off<br>
> numid=43,iface=CARD,name='Line Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=off<br>
> numid=47,iface=CARD,name='Line Out CLFE Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=off<br>
> numid=45,iface=CARD,name='Line Out Front Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=off<br>
> numid=48,iface=CARD,name='Line Out Side Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=off<br>
> numid=46,iface=CARD,name='Line Out Surround Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=off<br>
> numid=41,iface=CARD,name='Rear Mic Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=off<br>
> numid=50,iface=CARD,name='SPDIF Jack'<br>
> ; type=BOOLEAN,access=r-------,values=1<br>
> : values=off<br>
<br>
Okay, the relevant jacks are "Front Headphone" and "Line Out Front". I<br>
don't know if you're trying to use the headphone or the line out port,<br>
but if you can disable jack detection for both:<br></blockquote><div><br></div><div>Empirical evidence suggests I am using Line Out.</div><div><br></div><div>Thanks for all the help. It works great!</div><div><br></div><div>-m</div></div></div>