<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 22, 2019 at 7:47 AM Matt Zagrabelny <<a href="mailto:mzagrabe@d.umn.edu">mzagrabe@d.umn.edu</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"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Mon, Apr 22, 2019 at 3:06 AM Tanu Kaskinen <<a href="mailto:tanuk@iki.fi" target="_blank">tanuk@iki.fi</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 2019-04-20 at 12:11 -0500, Matt Zagrabelny wrote:<br>
> Greetings,<br>
> <br>
> I'm running Debian Buster and I have a 1/8" audio jack. I need the sink to<br>
> be an analog output to send off to some other device. Things work great,<br>
> except for when the system reboots, it comes up configured as a digital<br>
> soundcard:<br>
> <br>
> Digital Stereo (IEC958)<br>
> <br>
> Here is a diff between a "pactl list" when the computer reboots and when<br>
> I've configured it to be an analog sink:<br>
> <br>
> -Sink #1<br>
> - State: SUSPENDED<br>
> - Name: alsa_output.pci-0000_00_14.2.iec958-stereo<br>
> - Description: Built-in Audio Digital Stereo (IEC958)<br>
> +Sink #2<br>
> + State: RUNNING<br>
> + Name: alsa_output.pci-0000_00_14.2.analog-stereo<br>
> + Description: Built-in Audio Analog Stereo<br>
> <br>
> What is the best way to have the configuration saved between reboots?<br>
> <br>
> I can provide further info if needed.<br>
> <br>
> Thanks for any help!<br></blockquote><div><br></div><div>Hey Tanu!</div><div><br></div><div>Thanks for the assistance. Below is the output of what you asked for.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
What does "pactl list cards" print, and what does this little script<br>
print?<br></blockquote><div><br></div><div><div>Card #0</div><div> Name: alsa_card.pci-0000_00_01.1</div><div> Driver: module-alsa-card.c</div><div> Owner Module: 6</div><div> Properties:</div><div> alsa.card = "0"</div><div> alsa.card_name = "HDA ATI HDMI"</div><div> alsa.long_card_name = "HDA ATI HDMI at 0xc0d40000 irq 48"</div><div> alsa.driver_name = "snd_hda_intel"</div><div> device.bus_path = "pci-0000:00:01.1"</div><div> sysfs.path = "/devices/pci0000:00/0000:00:01.1/sound/card0"</div><div> device.bus = "pci"</div><div> <a href="http://device.vendor.id" target="_blank">device.vendor.id</a> = "1002"</div><div> <a href="http://device.vendor.name" target="_blank">device.vendor.name</a> = "Advanced Micro Devices, Inc. [AMD/ATI]"</div><div> <a href="http://device.product.id" target="_blank">device.product.id</a> = "9840"</div><div> <a href="http://device.product.name" target="_blank">device.product.name</a> = "Kabini HDMI/DP Audio"</div><div> device.form_factor = "internal"</div><div> device.string = "0"</div><div> device.description = "Built-in Audio"</div><div> module-udev-detect.discovered = "1"</div><div> device.icon_name = "audio-card-pci"</div><div> Profiles:</div><div> output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: yes)</div><div> output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)</div><div> output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)</div><div> output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)</div><div> off: Off (sinks: 0, sources: 0, priority: 0, available: yes)</div><div> Active Profile: output:hdmi-stereo</div><div> Ports:</div><div> hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, available)</div><div> Properties:</div><div> device.icon_name = "video-display"</div><div> Part of profile(s): output:hdmi-stereo</div><div> hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)</div><div> Properties:</div><div> device.icon_name = "video-display"</div><div> Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1</div><div><br></div><div>Card #1</div><div> Name: alsa_card.pci-0000_00_14.2</div><div> Driver: module-alsa-card.c</div><div> Owner Module: 7</div><div> Properties:</div><div> alsa.card = "1"</div><div> alsa.card_name = "HD-Audio Generic"</div><div> alsa.long_card_name = "HD-Audio Generic at 0xc0d44000 irq 16"</div><div> alsa.driver_name = "snd_hda_intel"</div><div> device.bus_path = "pci-0000:00:14.2"</div><div> sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card1"</div><div> device.bus = "pci"</div><div> <a href="http://device.vendor.id" target="_blank">device.vendor.id</a> = "1022"</div><div> <a href="http://device.vendor.name" target="_blank">device.vendor.name</a> = "Advanced Micro Devices, Inc. [AMD]"</div><div> <a href="http://device.product.id" target="_blank">device.product.id</a> = "780d"</div><div> <a href="http://device.product.name" target="_blank">device.product.name</a> = "FCH Azalia Controller"</div><div> device.form_factor = "internal"</div><div> device.string = "1"</div><div> device.description = "Built-in Audio"</div><div> module-udev-detect.discovered = "1"</div><div> device.icon_name = "audio-card-pci"</div><div> Profiles:</div><div> input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: no)</div><div> output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: no)</div><div> output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: no)</div><div> output:analog-surround-21: Analog Surround 2.1 Output (sinks: 1, sources: 0, priority: 1300, available: no)</div><div> output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)</div><div> output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 1200, available: no)</div><div> output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: no)</div><div> output:analog-surround-41: Analog Surround 4.1 Output (sinks: 1, sources: 0, priority: 1300, available: no)</div><div> output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)</div><div> output:analog-surround-50: Analog Surround 5.0 Output (sinks: 1, sources: 0, priority: 1200, available: no)</div><div> output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: no)</div><div> output:analog-surround-51: Analog Surround 5.1 Output (sinks: 1, sources: 0, priority: 1300, available: no)</div><div> output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)</div><div> output:analog-surround-71: Analog Surround 7.1 Output (sinks: 1, sources: 0, priority: 1200, available: no)</div><div> output:analog-surround-71+input:analog-stereo: Analog Surround 7.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: no)</div><div> output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)</div><div> output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5565, available: yes)</div><div> output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (sinks: 1, sources: 0, priority: 300, available: no)</div><div> output:iec958-ac3-surround-51+input:analog-stereo: Digital Surround 5.1 (IEC958/AC3) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 365, available: no)</div><div> off: Off (sinks: 0, sources: 0, priority: 0, available: yes)</div><div> Active Profile: output:iec958-stereo+input:analog-stereo</div><div> Ports:</div><div> analog-input-front-mic: Front Microphone (priority: 8500, latency offset: 0 usec, not available)</div><div> Properties:</div><div> device.icon_name = "audio-input-microphone"</div><div> Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:analog-surround-71+input:analog-stereo, output:iec958-stereo+input:analog-stereo, output:iec958-ac3-surround-51+input:analog-stereo</div><div> analog-input-rear-mic: Rear Microphone (priority: 8200, latency offset: 0 usec, not available)</div><div> Properties:</div><div> device.icon_name = "audio-input-microphone"</div><div> Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:analog-surround-71+input:analog-stereo, output:iec958-stereo+input:analog-stereo, output:iec958-ac3-surround-51+input:analog-stereo</div><div> analog-input-linein: Line In (priority: 8100, latency offset: 0 usec, not available)</div><div> Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:analog-surround-71+input:analog-stereo, output:iec958-stereo+input:analog-stereo, output:iec958-ac3-surround-51+input:analog-stereo</div><div> analog-output-lineout: Line Out (priority: 9900, latency offset: 0 usec, not available)</div><div> Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21, output:analog-surround-21+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo, output:analog-surround-41, output:analog-surround-41+input:analog-stereo, output:analog-surround-50, output:analog-surround-50+input:analog-stereo, output:analog-surround-51, output:analog-surround-51+input:analog-stereo, output:analog-surround-71, output:analog-surround-71+input:analog-stereo</div><div> analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec, not available)</div><div> Properties:</div><div> device.icon_name = "audio-headphones"</div><div> Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo</div><div> iec958-stereo-output: Digital Output (S/PDIF) (priority: 0, latency offset: 0 usec)</div><div> Part of profile(s): output:iec958-stereo, output:iec958-stereo+input:analog-stereo</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
while read -r line; do amixer -c0 cget "$line"; done <<< $(amixer -c0 controls | grep Jack)<br></blockquote><div><br></div><div>numid=1,iface=CARD,name='HDMI/DP,pcm=3 Jack'</div><div> ; type=BOOLEAN,access=r-------,values=1</div><div> : values=on</div><div>numid=7,iface=CARD,name='HDMI/DP,pcm=7 Jack'</div><div> ; type=BOOLEAN,access=r-------,values=1</div><div> : values=off</div></div></div></div></div></blockquote><div><br></div><div>Tanu and others,</div><div><br></div><div>Was the above output from the commands useful? Is there anything else I can do or provide on my end?</div><div><br></div><div>Thanks!</div><div><br></div><div>-m </div></div></div>