[pulseaudio-discuss] configure a soundcard?

Matt Zagrabelny mzagrabe at d.umn.edu
Mon Apr 22 12:47:01 UTC 2019


On Mon, Apr 22, 2019 at 3:06 AM Tanu Kaskinen <tanuk at iki.fi> wrote:

> On Sat, 2019-04-20 at 12:11 -0500, Matt Zagrabelny wrote:
> > Greetings,
> >
> > I'm running Debian Buster and I have a 1/8" audio jack. I need the sink
> to
> > be an analog output to send off to some other device. Things work great,
> > except for when the system reboots, it comes up configured as a digital
> > soundcard:
> >
> > Digital Stereo (IEC958)
> >
> > Here is a diff between a "pactl list" when the computer reboots and when
> > I've configured it to be an analog sink:
> >
> > -Sink #1
> > -       State: SUSPENDED
> > -       Name: alsa_output.pci-0000_00_14.2.iec958-stereo
> > -       Description: Built-in Audio Digital Stereo (IEC958)
> > +Sink #2
> > +       State: RUNNING
> > +       Name: alsa_output.pci-0000_00_14.2.analog-stereo
> > +       Description: Built-in Audio Analog Stereo
> >
> > What is the best way to have the configuration saved between reboots?
> >
> > I can provide further info if needed.
> >
> > Thanks for any help!
>

Hey Tanu!

Thanks for the assistance. Below is the output of what you asked for.


> What does "pactl list cards" print, and what does this little script
> print?
>

Card #0
        Name: alsa_card.pci-0000_00_01.1
        Driver: module-alsa-card.c
        Owner Module: 6
        Properties:
                alsa.card = "0"
                alsa.card_name = "HDA ATI HDMI"
                alsa.long_card_name = "HDA ATI HDMI at 0xc0d40000 irq 48"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:01.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc.
[AMD/ATI]"
                device.product.id = "9840"
                device.product.name = "Kabini HDMI/DP Audio"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Built-in Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1,
sources: 0, priority: 5900, available: yes)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output
(sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2)
Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI
2) Output (sinks: 1, sources: 0, priority: 600, available: no)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:hdmi-stereo
        Ports:
                hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency
offset: 0 usec, available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo
                hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800,
latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo-extra1,
output:hdmi-surround-extra1, output:hdmi-surround71-extra1

Card #1
        Name: alsa_card.pci-0000_00_14.2
        Driver: module-alsa-card.c
        Owner Module: 7
        Properties:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xc0d44000 irq
16"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:14.2"
                sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "780d"
                device.product.name = "FCH Azalia Controller"
                device.form_factor = "internal"
                device.string = "1"
                device.description = "Built-in Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                input:analog-stereo: Analog Stereo Input (sinks: 0,
sources: 1, priority: 65, available: no)
                output:analog-stereo: Analog Stereo Output (sinks: 1,
sources: 0, priority: 6500, available: no)
                output:analog-stereo+input:analog-stereo: Analog Stereo
Duplex (sinks: 1, sources: 1, priority: 6565, available: no)
                output:analog-surround-21: Analog Surround 2.1 Output
(sinks: 1, sources: 0, priority: 1300, available: no)
                output:analog-surround-21+input:analog-stereo: Analog
Surround 2.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority:
1365, available: no)
                output:analog-surround-40: Analog Surround 4.0 Output
(sinks: 1, sources: 0, priority: 1200, available: no)
                output:analog-surround-40+input:analog-stereo: Analog
Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority:
1265, available: no)
                output:analog-surround-41: Analog Surround 4.1 Output
(sinks: 1, sources: 0, priority: 1300, available: no)
                output:analog-surround-41+input:analog-stereo: Analog
Surround 4.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority:
1365, available: no)
                output:analog-surround-50: Analog Surround 5.0 Output
(sinks: 1, sources: 0, priority: 1200, available: no)
                output:analog-surround-50+input:analog-stereo: Analog
Surround 5.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority:
1265, available: no)
                output:analog-surround-51: Analog Surround 5.1 Output
(sinks: 1, sources: 0, priority: 1300, available: no)
                output:analog-surround-51+input:analog-stereo: Analog
Surround 5.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority:
1365, available: no)
                output:analog-surround-71: Analog Surround 7.1 Output
(sinks: 1, sources: 0, priority: 1200, available: no)
                output:analog-surround-71+input:analog-stereo: Analog
Surround 7.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority:
1265, available: no)
                output:iec958-stereo: Digital Stereo (IEC958) Output
(sinks: 1, sources: 0, priority: 5500, available: yes)
                output:iec958-stereo+input:analog-stereo: Digital Stereo
(IEC958) Output + Analog Stereo Input (sinks: 1, sources: 1, priority:
5565, available: yes)
                output:iec958-ac3-surround-51: Digital Surround 5.1
(IEC958/AC3) Output (sinks: 1, sources: 0, priority: 300, available: no)
                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)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:iec958-stereo+input:analog-stereo
        Ports:
                analog-input-front-mic: Front Microphone (priority: 8500,
latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        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
                analog-input-rear-mic: Rear Microphone (priority: 8200,
latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        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
                analog-input-linein: Line In (priority: 8100, latency
offset: 0 usec, not available)
                        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
                analog-output-lineout: Line Out (priority: 9900, latency
offset: 0 usec, not available)
                        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
                analog-output-headphones: Headphones (priority: 9000,
latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-headphones"
                        Part of profile(s): output:analog-stereo,
output:analog-stereo+input:analog-stereo
                iec958-stereo-output: Digital Output (S/PDIF) (priority: 0,
latency offset: 0 usec)
                        Part of profile(s): output:iec958-stereo,
output:iec958-stereo+input:analog-stereo



>
>     while read -r line; do amixer -c0 cget "$line"; done <<< $(amixer -c0
> controls | grep Jack)
>

numid=1,iface=CARD,name='HDMI/DP,pcm=3 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=7,iface=CARD,name='HDMI/DP,pcm=7 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off

Cheers!

-m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20190422/e0ac493c/attachment-0001.html>


More information about the pulseaudio-discuss mailing list