Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to configure pulseaudio to play sounds simultaneously on digital and analog output of single sound card?

My system is OpenSuse 11.4 (with all updates installed). Command "aplay -l" returns:

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC887 Analog [ALC887 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC887 Digital [ALC887 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

and pacmd list-cards, returns:

~> pacmd
Welcome to PulseAudio! Use "help" for usage information.
>>> list-cards
1 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_00_08.0>
        driver: <module-alsa-card.c>
        owner module: 4
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf9f78000 irq 20"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:08.0"
                sysfs.path = "/devices/pci0000:00/0000:00:08.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "nVidia Corporation"
                device.product.id = "0ac0"
                device.product.name = "MCP79 High Definition Audio"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "WewnÄtrzny dĹşwiÄk"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:analog-stereo: Analogowe stereo Output (priority 6000)
                output:analog-stereo+input:analog-stereo: Analogowy dupleks stereo (priority 6060)
                output:iec958-stereo: Cyfrowy dupleks stereo (IEC958) (priority 5500)
                output:iec958-stereo+input:analog-stereo: Cyfrowe stereo (IEC958) Output + Analogowe stereo Input (priority 5560)
                output:hdmi-stereo: Cyfrowe stereo (HDMI) Output (priority 5400)
                output:hdmi-stereo+input:analog-stereo: Cyfrowe stereo (HDMI) Output + Analogowe stereo Input (priority 5460)
                input:analog-stereo: Analogowe stereo Input (priority 60)
                off: WyĹÄ
cz (priority 0)
        active profile: <output:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_08.0.analog-stereo/#0: WewnÄtrzny dĹşwiÄk Analogowe stereo
        sources:
                alsa_output.pci-0000_00_08.0.analog-stereo.monitor/#0: Monitor of WewnÄtrzny dĹşwiÄk Analogowe stereo
>>> 

Earlier (in OpenSuSE 11.3) I have not used pulseaudio at all and I have achieved desired results with following /etc/asound.conf file:

pcm.!default {
    type plug
    slave {
       pcm multi
       rate 48000
    }
    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 1
    ttable.1.3 1
    hint { 
                 show on
                 description "Default digital and analog output"
         }
}
pcm.dsp0 {
    type plug
    slave.pcm "multi"
}
pcm.dmixer {
    type dmix
    ipc_key 1234
    slave {
        pcm "hw:0,3"
        period_time 0
        period_size 1024
        buffer_size 8192
        #periods 128
        rate 48000
     }
     bindings {
        0 0
        1 1
     }
     hint { 
                 show on
                 description "PCM digital mixer"
          }
}
ctl.dmixer {
share|improve this question

1 Answer 1

up vote 0 down vote accepted

module-combine will allow you to fanout audio to multiple sinks.

share|improve this answer
    
Thank you. It partially solve my problem - for details, please see my updated question. –  user67895 Apr 6 '11 at 21:11
    
Ok, at last I have managed to get sounds on both outputs. Have to add my load_module commands into /etc/pulse/default.pa file, before lines with autodetecting of sound card. –  user67895 Apr 7 '11 at 22:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.