You are not logged in.

#1 2011-01-18 19:58:16

colbert
Member
Registered: 2007-12-16
Posts: 809

Pulseaudio no sound

Followed the wiki and started daemon, used the fuser commands to check that nothing was using sound first and restarted daemon after closing all apps but no sound.

Here is my /etc/asound.conf:

# Use Pulseaudio by default
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse

# 6 channel dmix:
pcm.dmix6 {
     type dmix
        ipc_key 1024
        ipc_key_add_uid false
        ipc_perm 0666
        slave {
                pcm "hw:0,0"
                rate 48000
                format "S32_LE"
        channels 6
                period_time 0
                period_size 1024
                buffer_time 0
                buffer_size 8192
        }
     }

# upmixing: 
pcm.ch51dup {
        type route
        slave.pcm dmix6
        slave.channels 6
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 0.6
        ttable.1.3 0.6
        ttable.0.4 0.5
        ttable.1.4 0.5
        ttable.0.5 0.5
        ttable.1.5 0.5
   }

pcm.duplex {
     type asym
     playback.pcm "ch51dup" # upmix first
     capture.pcm "hw:0"
}

# change default device:
#pcm.!default {
#     type plug 
#     slave {
#    pcm "duplex"
#    }
#}

# for aoss
pcm.dsp "duplex"

pcm.dsp1 "duplex"

pcm.10to20 {
    type route
    slave.pcm default
    slave.channels 2
    ttable.0.0 1
    ttable.0.1 1
}

pcm.headset {
    type bluetooth
    profile "voice"
}

ctl.headset {
    type bluetooth
    profile "voice"
}

ctl.equal {
 type equal;
}

#pcm.plugequal {
#  type equal;
  # Modify the line below if you don't
  # want to use sound card 0.
  #slave.pcm "plughw:0,0";
  #by default we want to play from more sources at time:
#  slave.pcm "plug:dmix6";
#}

#pcm.equal {
  # Or if you want the equalizer to be your
  # default soundcard uncomment the following
  # line and comment the above line.
#pcm.!default {
#  type plug;
#  slave.pcm plugequal;
#}

#------------------------end of working file

So my setup works like this: I use plug:dmix6 for anything that is 5.1, while default upmixes stereo to all speakers for anything else (music, 2channel video, youtube, etc.). It all works great and has for a long time, but now I started using XBMC and I need to be able to switch between using dmix6 for movies/shows, and default for Music.

I have tried various video/audio files with mplayer using -ao alsa:device=pulse but get no sound.

Here is end of /var/log/messages.log if it helps:

Jan 18 14:51:30 localhost pulseaudio[7793]: sink-input.c:     application.language = "C"
Jan 18 14:51:30 localhost pulseaudio[7793]: sink-input.c:     window.x11.display = ":0"
Jan 18 14:51:30 localhost pulseaudio[7793]: sink-input.c:     application.process.machine_id = "f4cc2664f136cd7500a22d7d00000367"
Jan 18 14:51:30 localhost pulseaudio[7793]: sink-input.c:     application.process.session_id = "f4cc2664f136cd7500a22d7d00000367-1295238838.187447-631589587"
Jan 18 14:51:30 localhost pulseaudio[7793]: sink-input.c:     module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [mplayer]"
Jan 18 14:51:30 localhost pulseaudio[7793]: protocol-native.c: Requested tlength=500.00 ms, minreq=31.25 ms
Jan 18 14:51:30 localhost pulseaudio[7793]: protocol-native.c: Final latency 531.25 ms = 437.50 ms + 2*31.25 ms + 31.25 ms
Jan 18 14:51:36 localhost pulseaudio[7793]: sap.c: sendmsg() failed: Connection refused
Jan 18 14:51:39 localhost pulseaudio[7793]: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.pci-0000_05_01.0.analog-surround-51.
Jan 18 14:51:39 localhost pulseaudio[7793]: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.pci-0000_05_01.0.analog-surround-51.
Jan 18 14:51:39 localhost pulseaudio[7793]: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.pci-0000_05_01.0.analog-surround-51.
Jan 18 14:51:39 localhost pulseaudio[7793]: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.pci-0000_05_01.0.analog-surround-51.
Jan 18 14:51:40 localhost pulseaudio[7793]: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.pci-0000_05_01.0.analog-surround-51.
Jan 18 14:51:40 localhost pulseaudio[7793]: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.pci-0000_05_01.0.analog-surround-51.
Jan 18 14:51:40 localhost pulseaudio[7793]: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.pci-0000_05_01.0.analog-surround-51.
Jan 18 14:51:40 localhost pulseaudio[7793]: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.pci-0000_05_01.0.analog-surround-51.
Jan 18 14:51:41 localhost pulseaudio[7793]: sink-input.c: Freeing input 23 "ALSA Playback"
Jan 18 14:51:41 localhost pulseaudio[7793]: client.c: Freed 12 "ALSA plug-in [mplayer]"
Jan 18 14:51:41 localhost pulseaudio[7793]: protocol-native.c: Connection died.
Jan 18 14:51:46 localhost pulseaudio[7793]: sap.c: sendmsg() failed: Connection refused
Jan 18 14:51:46 localhost pulseaudio[7793]: module-suspend-on-idle.c: Sink rtp idle for too long, suspending ...
Jan 18 14:51:49 localhost pulseaudio[7793]: module-device-restore.c: Synced.
Jan 18 14:51:56 localhost pulseaudio[7793]: sap.c: sendmsg() failed: Connection refused
Jan 18 14:51:56 localhost pulseaudio[7793]: client.c: Created 13 "Native client (UNIX socket client)"
Jan 18 14:51:56 localhost pulseaudio[7793]: protocol-native.c: Got credentials: uid=1000 gid=100 success=1
Jan 18 14:51:56 localhost pulseaudio[7793]: client.c: Freed 13 "ALSA plug-in [amixer]"
Jan 18 14:51:56 localhost pulseaudio[7793]: protocol-native.c: Connection died.
Jan 18 14:52:06 localhost pulseaudio[7793]: sap.c: sendmsg() failed: Connection refused
Jan 18 14:52:16 localhost pulseaudio[7793]: sap.c: sendmsg() failed: Connection refused
Jan 18 14:52:26 localhost pulseaudio[7793]: sap.c: sendmsg() failed: Connection refused

Thanks for any help! smile

Last edited by colbert (2011-01-18 19:58:42)

Offline

Board footer

Powered by FluxBB