You are not logged in.

#1 2009-05-30 19:51:38

akira86
Member
Registered: 2009-01-16
Posts: 119

[Pulseaudio] equalizer problem (solve)

Hello

I installed pulseaudio and all work fine but I tried to setup a system wide equalizer with the ladspa-sink module.

I think the module is well load but there is a problem with pa_sink_input_update_max_request function.

I am not alone in this situation :
https://tango.0pointer.de/pipermail/pul … 03834.html
http://www.mail-archive.com/pulseaudio- … 02398.html

here is my default.pa :

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Automatically load driver modules depending on the hardware available
.ifexists module-hal-detect.so
load-module module-hal-detect
.else
### Alternatively use the static hardware detection module (for systems that
### lack HAL support)
load-module module-detect
.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif

### Automatically restore the default sink/source when changed by the user during runtime
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
load-module module-console-kit

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music streams when a phone stream is active
load-module module-cork-music-on-phone

# equalizer
.ifexists module-ladspa-sink.so
load-module module-ladspa-sink sink_name=ladspa_out master=alsa_output.pci_10de_774_sound_card_0 plugin=mbeq_1197 label=mbeq control=-15,-15,-10,-1,-5,-1,-1,0,0,0,0,0,0,0,0
#load-module module-ladspa-sink sink_name=ladspa_out master=alsa_out plugin=mbeq_1197 label=mbeq control=-15,-15,-10,-1,-5,-1,-1,0,0,0,0,0,0,0,0
.endif

### Make some devices default
set-default-sink ladspa_out
#set-default-sink output
#set-default-source input

here the output of pulseaudio -v :

I: main.c: Nous sommes dans le groupe « pulse-rt », permettant une planification à haute priorité.
I: main.c: RLIMIT_RTPRIO is set to 65, allowing real-time scheduling.
I: main.c: RLIMIT_NICE is set to 30, allowing high-priority scheduling.
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) a échoué : Opération non permise
I: core-util.c: Successfully gained nice level -11.
I: main.c: Abandon de CAP_NICE
I: main.c: Pulseaudio 0.9.15
I: main.c: La taille de la page est de 4096 octets
I: main.c: L'ID de la machine est 900beb14464c78bd4d354b7a4960efd5.
I: main.c: Session ID is 900beb14464c78bd4d354b7a4960efd5-1243705227.439009-752724780.
I: main.c: Utilisation du répertoire d'exécution /home/max/.pulse/900beb14464c78bd4d354b7a4960efd5:runtime.
I: main.c: Utilisation du répertoire d'état /home/max/.pulse.
I: main.c: Exécution en mode système : no
I: main.c: De nouvelles horloges à haute résolution sont disponibles ! Bon appétit !
I: module-device-restore.c: Sucessfully opened database file '/home/max/.pulse/900beb14464c78bd4d354b7a4960efd5:device-volumes.x86_64-unknown-linux-gnu.gdbm'.
I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
I: module-stream-restore.c: Sucessfully opened database file '/home/max/.pulse/900beb14464c78bd4d354b7a4960efd5:stream-volumes.x86_64-unknown-linux-gnu.gdbm'.
I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
I: module-card-restore.c: Sucessfully opened database file '/home/max/.pulse/900beb14464c78bd4d354b7a4960efd5:card-database.x86_64-unknown-linux-gnu.gdbm'.
I: module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: module.c: Loaded "module-augment-properties" (index: #3; argument: "").
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
I: module-alsa-card.c: Found output profile 'Output Analog Stereo + Input Analog Stereo'
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D1c failed
I: alsa-util.c: Error opening PCM device iec958:0: Aucun fichier ou dossier de ce type
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D3c failed
I: alsa-util.c: Error opening PCM device hdmi:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
I: module-alsa-card.c: Found output profile 'Output Analog Stereo'
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
I: module-alsa-card.c: Found output profile 'Output Digital Stereo (IEC958) + Input Analog Stereo'
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D1c failed
I: alsa-util.c: Error opening PCM device iec958:0: Aucun fichier ou dossier de ce type
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D3c failed
I: alsa-util.c: Error opening PCM device hdmi:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
I: module-alsa-card.c: Found output profile 'Output Digital Stereo (IEC958)'
I: alsa-util.c: Device hdmi:0 doesn't support 44100 Hz, changed to 48000 Hz.
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
I: module-alsa-card.c: Found output profile 'Output Digital Stereo (HDMI) + Input Analog Stereo'
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D1c failed
I: alsa-util.c: Error opening PCM device iec958:0: Aucun fichier ou dossier de ce type
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D3c failed
I: alsa-util.c: Error opening PCM device hdmi:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
I: module-alsa-card.c: Found output profile 'Output Digital Stereo (HDMI)'
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
I: module-alsa-card.c: Found output profile 'Input Analog Stereo'
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D1c failed
I: alsa-util.c: Error opening PCM device iec958:0: Aucun fichier ou dossier de ce type
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D3c failed
I: alsa-util.c: Error opening PCM device hdmi:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
I: card.c: Created 0 "alsa_card.pci_10de_774_sound_card_0"
I: alsa-sink.c: Successfully opened device front:0.
I: alsa-sink.c: Selected configuration 'Analog Stereo' (analog-stereo).
I: alsa-sink.c: Successfully enabled mmap() mode.
I: alsa-sink.c: Successfully enabled timer-based scheduling mode.
I: (alsa-lib)control.c: Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Master".
I: module-device-restore.c: Restoring volume for sink alsa_output.pci_10de_774_sound_card_0.
I: module-device-restore.c: Restoring mute state for sink alsa_output.pci_10de_774_sound_card_0.
I: sink.c: Created sink 0 "alsa_output.pci_10de_774_sound_card_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: sink.c:     alsa.resolution_bits = "16"
I: sink.c:     alsa.mixer_element = "Master"
I: sink.c:     device.api = "alsa"
I: sink.c:     device.class = "sound"
I: sink.c:     alsa.class = "generic"
I: sink.c:     alsa.subclass = "generic-mix"
I: sink.c:     alsa.name = "CONEXANT Analog"
I: sink.c:     alsa.id = "CONEXANT Analog"
I: sink.c:     alsa.subdevice = "0"
I: sink.c:     alsa.subdevice_name = "subdevice #0"
I: sink.c:     alsa.device = "0"
I: sink.c:     alsa.card = "0"
I: sink.c:     alsa.card_name = "HDA NVidia"
I: sink.c:     alsa.long_card_name = "HDA NVidia at 0xc0000000 irq 20"
I: sink.c:     alsa.driver_name = "snd_hda_intel"
I: sink.c:     device.bus_path = "/devices/pci0000:00/0000:00:07.0/sound/card0"
I: sink.c:     hal.udi = "/org/freedesktop/Hal/devices/pci_10de_774_sound_card_0"
I: sink.c:     hal.product = "HDA NVidia Sound Card"
I: sink.c:     hal.card_id = "HDA NVidia"
I: sink.c:     device.string = "front:0"
I: sink.c:     device.buffering.buffer_size = "65536"
I: sink.c:     device.buffering.fragment_size = "32768"
I: sink.c:     device.access_mode = "mmap+timer"
I: sink.c:     device.profile.name = "analog-stereo"
I: sink.c:     device.profile.description = "Analog Stereo"
I: sink.c:     device.description = "HDA NVidia"
I: sink.c:     device.icon_name = "audio-card"
I: module-device-restore.c: Restoring volume for source alsa_output.pci_10de_774_sound_card_0.monitor.
I: module-device-restore.c: Restoring mute state for source alsa_output.pci_10de_774_sound_card_0.monitor.
I: source.c: Created source 0 "alsa_output.pci_10de_774_sound_card_0.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     device.description = "Monitor of HDA NVidia"
I: source.c:     device.class = "monitor"
I: source.c:     alsa.card = "0"
I: source.c:     alsa.card_name = "HDA NVidia"
I: source.c:     alsa.long_card_name = "HDA NVidia at 0xc0000000 irq 20"
I: source.c:     alsa.driver_name = "snd_hda_intel"
I: source.c:     device.bus_path = "/devices/pci0000:00/0000:00:07.0/sound/card0"
I: source.c:     hal.udi = "/org/freedesktop/Hal/devices/pci_10de_774_sound_card_0"
I: source.c:     hal.product = "HDA NVidia Sound Card"
I: source.c:     hal.card_id = "HDA NVidia"
I: source.c:     device.string = "0"
I: source.c:     device.icon_name = "audio-card"
I: alsa-sink.c: Using 2 fragments of size 32768 bytes, buffer time is 371,52ms
I: alsa-sink.c: Time scheduling watermark is 20,00ms
I: alsa-sink.c: Volume ranges from 0 to 74.
I: alsa-sink.c: Volume ranges from -74,00 dB to 0,00 dB.
I: alsa-sink.c: No particular base volume set, fixing to 0 dB
I: alsa-util.c: All 2 channels can be mapped to mixer channels.
I: alsa-sink.c: Using hardware volume control. Hardware dB scale supported.
I: alsa-sink.c: Starting playback.
I: alsa-sink.c: Underrun!
N: alsa-sink.c: Increasing wakeup watermark to 30,00 ms
I: alsa-source.c: Successfully opened device front:0.
I: alsa-source.c: Selected configuration 'Analog Stereo' (analog-stereo).
I: alsa-source.c: Successfully enabled mmap() mode.
I: alsa-source.c: Successfully enabled timer-based scheduling mode.
I: (alsa-lib)control.c: Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: Aucun fichier ou dossier de ce type
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Capture" or mixer control is no combination of switch/volume.
I: alsa-util.c: Cannot find fallback mixer control "Mic" or mixer control is no combination of switch/volume.
I: module-device-restore.c: Restoring volume for source alsa_input.pci_10de_774_sound_card_0.
I: module-device-restore.c: Restoring mute state for source alsa_input.pci_10de_774_sound_card_0.
I: source.c: Created source 1 "alsa_input.pci_10de_774_sound_card_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     alsa.resolution_bits = "16"
I: source.c:     device.api = "alsa"
I: source.c:     device.class = "sound"
I: source.c:     alsa.class = "generic"
I: source.c:     alsa.subclass = "generic-mix"
I: source.c:     alsa.name = "CONEXANT Analog"
I: source.c:     alsa.id = "CONEXANT Analog"
I: source.c:     alsa.subdevice = "0"
I: source.c:     alsa.subdevice_name = "subdevice #0"
I: source.c:     alsa.device = "0"
I: source.c:     alsa.card = "0"
I: source.c:     alsa.card_name = "HDA NVidia"
I: source.c:     alsa.long_card_name = "HDA NVidia at 0xc0000000 irq 20"
I: source.c:     alsa.driver_name = "snd_hda_intel"
I: source.c:     device.bus_path = "/devices/pci0000:00/0000:00:07.0/sound/card0"
I: source.c:     hal.udi = "/org/freedesktop/Hal/devices/pci_10de_774_sound_card_0"
I: source.c:     hal.product = "HDA NVidia Sound Card"
I: source.c:     hal.card_id = "HDA NVidia"
I: source.c:     device.string = "front:0"
I: source.c:     device.buffering.buffer_size = "65536"
I: source.c:     device.buffering.fragment_size = "32768"
I: source.c:     device.access_mode = "mmap+timer"
I: source.c:     device.profile.name = "analog-stereo"
I: source.c:     device.profile.description = "Analog Stereo"
I: source.c:     device.description = "HDA NVidia"
I: source.c:     device.icon_name = "audio-card"
I: alsa-source.c: Using 2 fragments of size 32768 bytes, buffer time is 371,52ms
I: alsa-source.c: Time scheduling watermark is 20,00ms
I: module.c: Loaded "module-alsa-card" (index: #4; argument: "device_id=0 name=pci_10de_774_sound_card_0 card_name=alsa_card.pci_10de_774_sound_card_0 tsched=1").
I: module-hal-detect.c: Loaded 1 modules.
I: module.c: Loaded "module-hal-detect" (index: #5; argument: "").
I: module.c: Loaded "module-esound-protocol-unix" (index: #6; argument: "").
I: module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
I: module.c: Loaded "module-gconf" (index: #8; argument: "").
I: module-default-device-restore.c: No previous default sink setting, ignoring.
I: module-default-device-restore.c: No previous default source setting, ignoring.
I: module.c: Loaded "module-default-device-restore" (index: #9; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #10; argument: "").
I: module.c: Loaded "module-always-sink" (index: #11; argument: "").
I: module.c: Loaded "module-suspend-on-idle" (index: #12; argument: "").
I: client.c: Created 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session1"
I: module.c: Loaded "module-console-kit" (index: #13; argument: "").
I: module.c: Loaded "module-position-event-sounds" (index: #14; argument: "").
I: module.c: Loaded "module-cork-music-on-phone" (index: #15; argument: "").
I: sink.c: Created sink 1 "ladspa_out" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right
I: sink.c:     device.description = "LADSPA Plugin mbeq on HDA NVidia"
I: sink.c:     device.master_device = "alsa_output.pci_10de_774_sound_card_0"
I: sink.c:     device.class = "filter"
I: sink.c:     device.ladspa.module = "mbeq_1197"
I: sink.c:     device.ladspa.label = "mbeq"
I: sink.c:     device.ladspa.name = "Multiband EQ"
I: sink.c:     device.ladspa.maker = "Steve Harris <steve@plugin.org.uk>"
I: sink.c:     device.ladspa.copyright = "GPL"
I: sink.c:     device.ladspa.unique_id = "1197"
I: sink.c:     device.icon_name = "audio-card"
I: source.c: Created source 2 "ladspa_out.monitor" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     device.description = "Monitor of LADSPA Plugin mbeq on HDA NVidia"
I: source.c:     device.class = "monitor"
I: source.c:     device.icon_name = "audio-input-microphone"
I: resampler.c: Forcing resampler 'copy', because of fixed, identical sample rates.
I: resampler.c: Using resampler 'copy'
I: resampler.c: Using float32le as working format.
I: sink-input.c: Created input 0 "LADSPA Stream" on alsa_output.pci_10de_774_sound_card_0 with sample spec float32le 2ch 44100Hz and channel map front-left,front-right
E: sink-input.c: Assertion 'PA_SINK_INPUT_IS_LINKED(i->thread_info.state)' failed at pulsecore/sink-input.c:807, function pa_sink_input_update_max_request(). Aborting.
zsh: abort      pulseaudio -v

I wonder if someone could help me...

I try to install pulseaudio-git from aur because a solution proposed (in the seconde link) is to simply remove the line 807 from the sink_input.c file but compilation fail.

I use a 64bits architecture.

Last edited by akira86 (2009-05-31 00:29:27)

Offline

#2 2009-05-31 00:28:48

akira86
Member
Registered: 2009-01-16
Posts: 119

Re: [Pulseaudio] equalizer problem (solve)

I finally solve the problem by commenting the line 807 in sink_input.c in the pulseaudio package (not git) in abs.

I also made the PKGBUILD for gnome-pulse-applet-svn because gnome-pulse-applet isn't compatible with the ladspa-sink module.

Offline

#3 2009-07-24 18:07:33

triplechoco
Member
Registered: 2009-07-24
Posts: 1

Re: [Pulseaudio] equalizer problem (solve)

very interesting post! thanks a lot for sharing it with us..


commission de surendettement - commission de surendettement, vous pouvez demander un dossier de surendettement.

Offline

Board footer

Powered by FluxBB