0

i've searched for a long time now but haven't found a solution yet.

Setup

I connected two different output devices with my onboard soundcard:

  • Regular speakers / line out / 3.5mm
  • Wireless speaker station / digital out / optical

Pavucontrol

In the 'configuration' tab both profiles are listed for 'intern audio'. The profile for the former is 'analog stereo output', for the latter 'digital stereo (IEC958) output'

To switch between these two devices, i therefore neet to switch the profile for the soundcard.

pacmd

pacmd list-sinks provides different outputs for both configurations:

Analog

name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: 
priority: 9959
volume: front-left: 51910 /  79% / -6,07 dB,   front-right: 51910 /  79% / -6,07 dB
        balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 16,01 ms
max request: 2 KiB
max rewind: 64 KiB
monitor source: 6
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
             Stereo
used by: 1
linked by: 1
configured latency: 16,00 ms; range is 16,00 .. 371,52 ms
card: 1 <alsa_card.pci-0000_00_1b.0>
module: 7
properties:
    alsa.resolution_bits = "16"
    device.api = "alsa"
    device.class = "sound"
    alsa.class = "generic"
    alsa.subclass = "generic-mix"
    alsa.name = "ALC892 Analog"
    alsa.id = "ALC892 Analog"
    alsa.subdevice = "0"
    alsa.subdevice_name = "subdevice #0"
    alsa.device = "0"
    alsa.card = "0"
    alsa.card_name = "HDA Intel PCH"
    alsa.long_card_name = "HDA Intel PCH at 0xfb620000 irq 51"
    alsa.driver_name = "snd_hda_intel"
    device.bus_path = "pci-0000:00:1b.0"
    sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
    device.bus = "pci"
    device.vendor.id = "8086"
    device.vendor.name = "Intel Corporation"
    device.product.id = "1c20"
    device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
    device.form_factor = "internal"
    device.string = "front:0"
    device.buffering.buffer_size = "65536"
    device.buffering.fragment_size = "32768"
    device.access_mode = "mmap+timer"
    device.profile.name = "analog-stereo"
    device.profile.description = "Analog Stereo"
    device.description = "Internes Audio Analog Stereo"
    alsa.mixer_name = "Realtek ALC892"
    alsa.components = "HDA:10ec0892,10438410,00100302"
    module-udev-detect.discovered = "1"
    device.icon_name = "audio-card-pci"
ports:
    analog-output-lineout: Line-Ausgang (priority 9900, latency offset 0 usec, available: yes)
        properties:

    analog-output-headphones: Kopfhörer (priority 9000, latency offset 0 usec, available: no)
        properties:
            device.icon_name = "audio-headphones"
active port: <analog-output-lineout>

Digital

    name: <alsa_output.pci-0000_00_1b.0.iec958-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: 
priority: 9958
volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
        balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 10,97 ms
max request: 2 KiB
max rewind: 64 KiB
monitor source: 9
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
             Stereo
used by: 3
linked by: 7
configured latency: 11,61 ms; range is 0,50 .. 371,52 ms
card: 1 <alsa_card.pci-0000_00_1b.0>
module: 7
properties:
    alsa.resolution_bits = "16"
    device.api = "alsa"
    device.class = "sound"
    alsa.class = "generic"
    alsa.subclass = "generic-mix"
    alsa.name = "ALC892 Digital"
    alsa.id = "ALC892 Digital"
    alsa.subdevice = "0"
    alsa.subdevice_name = "subdevice #0"
    alsa.device = "1"
    alsa.card = "0"
    alsa.card_name = "HDA Intel PCH"
    alsa.long_card_name = "HDA Intel PCH at 0xfb620000 irq 51"
    alsa.driver_name = "snd_hda_intel"
    device.bus_path = "pci-0000:00:1b.0"
    sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
    device.bus = "pci"
    device.vendor.id = "8086"
    device.vendor.name = "Intel Corporation"
    device.product.id = "1c20"
    device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
    device.form_factor = "internal"
    device.string = "iec958:0"
    device.buffering.buffer_size = "65536"
    device.buffering.fragment_size = "32768"
    device.access_mode = "mmap+timer"
    device.profile.name = "iec958-stereo"
    device.profile.description = "Digital Stereo (IEC958)"
    device.description = "Internes Audio Digital Stereo (IEC958)"
    alsa.mixer_name = "Realtek ALC892"
    alsa.components = "HDA:10ec0892,10438410,00100302"
    module-udev-detect.discovered = "1"
    device.icon_name = "audio-card-pci"
ports:
    iec958-stereo-output: Digitaler Ausgang (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
        properties:

active port: <iec958-stereo-output>

My question - finally

How can i register or declare these two sources independent so that i am not forced to use only one of the two devices. Pulseaudio gives me the advantage so i can run different application on different speakers.

Is it possible to use the analog speakers for one application and the digital one for another application or is the hardware set the limit?

I also played a bit with module-remap-sink but this as no effect.

Thanks a lot in advance!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.