Ticket #206 (closed defect: duplicate)

Opened 4 years ago

Last modified 4 years ago

pulseaudio unloads module-oss immediately at startup

Reported by: sjoerd Owned by: lennart
Milestone: Component: module-oss-*
Keywords: Cc:

Description

Forwarded from debian bug 452019: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=452019

I'm tring to get pulseaudio running on Sid AMD64 using 4front-tech's OSS sound driver for an Audigy 2 ZS Platinum Pro card. I have uncommented the OSS line (not the mmapped line because this has been apparently removed upstream?) in default.pa but pulseaudio drops the sound card immediately. I do not rule out user/config error as I can't really find much about the OSS and pulseaudio combination.

My default.pa is the standard config but with the following 3 lines uncommented:

load-module module-oss device="/dev/dsp" sink_name=output source_name=input set-default-sink output set-default-source input

In daemon.conf I have set high-priority to 1

My user is a member of audio, pulse, pulse-rt and pulse-access.

I then do "pulseaudio --log-level=debug" and get:

I: core-util.c: Successfully gained nice level -11. I: main.c: Page size is 4096 bytes I: main.c: Dude, your kernel stinks! The chef's recommendation today is Linux with high-resolution timers enabled! D: oss-util.c: capabilities: BATCH DUPLEX MMAP MULTI REALTIME TRIGGER I: module-oss.c: Hardware name is 'SB Audigy2 main'. I: module-oss.c: Device opened in O_RDWR mode. I: module-oss.c: Input -- 16 fragments of size 4096. I: module-oss.c: Output -- 4 fragments of size 4096. D: module-oss.c: Successfully mmap()ed input buffer. I: source.c: Created source 0 "input" with sample spec "s16le 2ch 44100Hz" D: module-oss.c: Successfully mmap()ed output buffer. I: sink.c: Created sink 0 "output" with sample spec "s16le 2ch 44100Hz" I: source.c: Created source 1 "output.monitor" with sample spec "s16le 2ch 44100Hz" D: module-oss.c: Found hardware mixer track for playback. D: module-oss.c: Found hardware mixer track for recording. D: oss-util.c: Read mixer settings: 0: 100% 1: 100% D: oss-util.c: Read mixer settings: 0: 75% 1: 75% D: module-oss.c: Thread starting up I: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread. D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29 D: module-oss.c: trigger D: module-oss.c: trigger: 2 E: module-oss.c: DSP shutdown. D: module-oss.c: trigger D: module-oss.c: trigger: 3 I: module.c: Loaded "module-oss" (index: #0; argument: "device="/dev/dsp" sink_name=output source_name=input"). D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules//module-hal-detect.so': success I: module-hal-detect.c: Trying capability alsa I: module-hal-detect.c: Trying capability oss I: module-hal-detect.c: Loaded 0 modules. I: module.c: Loaded "module-hal-detect" (index: #1; argument: ""). I: module.c: Loaded "module-esound-protocol-unix" (index: #2; argument: "socket="/tmp/.esd/socket""). I: protocol-native.c: loading cookie from disk. I: module.c: Loaded "module-native-protocol-unix" (index: #3; argument: ""). I: module-volume-restore.c: starting with empty ruleset. I: module.c: Loaded "module-volume-restore" (index: #4; argument: ""). I: module.c: Loaded "module-default-device-restore" (index: #5; argument: ""). I: module.c: Loaded "module-rescue-streams" (index: #6; argument: ""). D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules//module-x11-publish.so': success D: module-x11-publish.c: using already loaded auth cookie. I: module.c: Loaded "module-x11-publish" (index: #7; argument: ""). D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules//module-gconf.so': success D: module-gconf.c: Loading module 'module-native-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration. I: protocol-native.c: using already loaded auth cookie. I: protocol-native.c: using already loaded auth cookie. I: module.c: Loaded "module-native-protocol-tcp" (index: #8; argument: "auth-anonymous=1"). D: module-gconf.c: Loading module 'module-esound-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration. I: module.c: Loaded "module-esound-protocol-tcp" (index: #9; argument: "auth-anonymous=1"). D: module-gconf.c: Loading module 'module-zeroconf-publish' with args due to GConf configuration. D: module-zeroconf-publish.c: Publishing services in Zeroconf D: module-zeroconf-publish.c: Successfully created entry group for haze@chaosx: OSS PCM on /dev/dsp (SB Audigy2 main) via DMA. D: module-zeroconf-publish.c: Successfully created entry group for haze@chaosx: OSS PCM on /dev/dsp (SB Audigy2 main) via DMA. I: module.c: Loaded "module-zeroconf-publish" (index: #10; argument: ""). I: module.c: Loaded "module-gconf" (index: #11; argument: ""). D: core-subscribe.c: dropped redundant event. I: main.c: Daemon startup complete. D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired? I: module.c: Unloading "module-oss" (index: #0). D: module-rescue-streams.c: No sink inputs to move away. D: module-zeroconf-publish.c: Removing entry group for haze@chaosx: OSS PCM on /dev/dsp (SB Audigy2 main) via DMA. D: module-rescue-streams.c: No source outputs to move away. D: module-rescue-streams.c: No source outputs to move away. D: module-zeroconf-publish.c: Removing entry group for haze@chaosx: OSS PCM on /dev/dsp (SB Audigy2 main) via DMA. D: module-oss.c: Thread shutting down I: sink.c: Freeing sink 0 "output" I: source.c: Freeing source 1 "output.monitor" I: source.c: Freeing source 0 "input" I: module.c: Unloaded "module-oss" (index: #0). I: module-zeroconf-publish.c: Successfully established main service. I: client.c: Created 0 "Native client (UNIX socket client)" I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1 I: protocol-native.c: Enabled SHM for new connection I: client.c: Client 0 changed name from "Native client (UNIX socket client)" to "PulseAudio Manager"

END

That's as far as I get with pulseaudio. If you need more info, please don't hesitate to contact me.

Regards,

Matthew

Change History

Changed 4 years ago by sjoerd

The log is nicelyfucked up.. thanks wikiformatting :).. Lets try that again:

I: core-util.c: Successfully gained nice level -11.
I: main.c: Page size is 4096 bytes
I: main.c: Dude, your kernel stinks! The chef's recommendation today is
Linux with high-resolution timers enabled!
D: oss-util.c: capabilities: BATCH DUPLEX MMAP MULTI REALTIME TRIGGER
I: module-oss.c: Hardware name is 'SB Audigy2 main'.
I: module-oss.c: Device opened in O_RDWR mode.
I: module-oss.c: Input -- 16 fragments of size 4096.
I: module-oss.c: Output -- 4 fragments of size 4096.
D: module-oss.c: Successfully mmap()ed input buffer.
I: source.c: Created source 0 "input" with sample spec "s16le 2ch
44100Hz"
D: module-oss.c: Successfully mmap()ed output buffer.
I: sink.c: Created sink 0 "output" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 1 "output.monitor" with sample spec "s16le
2ch 44100Hz"
D: module-oss.c: Found hardware mixer track for playback.
D: module-oss.c: Found hardware mixer track for recording.
D: oss-util.c: Read mixer settings: 0: 100% 1: 100%
D: oss-util.c: Read mixer settings: 0:  75% 1:  75%
D: module-oss.c: Thread starting up
I: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread.
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
D: module-oss.c: trigger
D: module-oss.c: trigger: 2
E: module-oss.c: DSP shutdown.
D: module-oss.c: trigger
D: module-oss.c: trigger: 3
I: module.c: Loaded "module-oss" (index: #0; argument:
"device="/dev/dsp" sink_name=output source_name=input").
D: cli-command.c: Checking for existance of
'/usr/lib/pulse-0.9/modules//module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
I: module-hal-detect.c: Trying capability oss
I: module-hal-detect.c: Loaded 0 modules.
I: module.c: Loaded "module-hal-detect" (index: #1; argument: "").
I: module.c: Loaded "module-esound-protocol-unix" (index: #2; argument:
"socket="/tmp/.esd/socket"").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #3; argument:
"").
I: module-volume-restore.c: starting with empty ruleset.
I: module.c: Loaded "module-volume-restore" (index: #4; argument: "").
I: module.c: Loaded "module-default-device-restore" (index: #5;
argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #6; argument: "").
D: cli-command.c: Checking for existance of
'/usr/lib/pulse-0.9/modules//module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #7; argument: "").
D: cli-command.c: Checking for existance of
'/usr/lib/pulse-0.9/modules//module-gconf.so': success
D: module-gconf.c: Loading module 'module-native-protocol-tcp' with args
'auth-anonymous=1' due to GConf configuration.
I: protocol-native.c: using already loaded auth cookie.
I: protocol-native.c: using already loaded auth cookie.
I: module.c: Loaded "module-native-protocol-tcp" (index: #8; argument:
"auth-anonymous=1").
D: module-gconf.c: Loading module 'module-esound-protocol-tcp' with args
'auth-anonymous=1' due to GConf configuration.
I: module.c: Loaded "module-esound-protocol-tcp" (index: #9; argument:
"auth-anonymous=1").
D: module-gconf.c: Loading module 'module-zeroconf-publish' with args ''
due to GConf configuration.
D: module-zeroconf-publish.c: Publishing services in Zeroconf
D: module-zeroconf-publish.c: Successfully created entry group for
haze@chaosx: OSS PCM on /dev/dsp (SB Audigy2 main) via DMA.
D: module-zeroconf-publish.c: Successfully created entry group for
haze@chaosx: OSS PCM on /dev/dsp (SB Audigy2 main) via DMA.
I: module.c: Loaded "module-zeroconf-publish" (index: #10; argument:
"").
I: module.c: Loaded "module-gconf" (index: #11; argument: "").
D: core-subscribe.c: dropped redundant event.
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus,
path=/org/freedesktop/DBus, member=NameAcquired
I: module.c: Unloading "module-oss" (index: #0).
D: module-rescue-streams.c: No sink inputs to move away.
D: module-zeroconf-publish.c: Removing entry group for haze@chaosx: OSS
PCM on /dev/dsp (SB Audigy2 main) via DMA.
D: module-rescue-streams.c: No source outputs to move away.
D: module-rescue-streams.c: No source outputs to move away.
D: module-zeroconf-publish.c: Removing entry group for haze@chaosx: OSS
PCM on /dev/dsp (SB Audigy2 main) via DMA.
D: module-oss.c: Thread shutting down
I: sink.c: Freeing sink 0 "output"
I: source.c: Freeing source 1 "output.monitor"
I: source.c: Freeing source 0 "input"
I: module.c: Unloaded "module-oss" (index: #0).
I: module-zeroconf-publish.c: Successfully established main service.
I: client.c: Created 0 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 0 changed name from "Native client (UNIX socket
client)" to "PulseAudio Manager"

Changed 4 years ago by agentblueuk

for my soundcard i added

load-module module-oss device="/dev/oss/hdaudio0/pcm0" sink_name=headphone record=0 load-module module-oss device="/dev/oss/hdaudio0/pcm1" sink_name=speakers record=0

and commented out

#load-module module-suspend-on-idle

And it works now for my Intel HDA card with OSS4 when previously i was getting errors like yours

Changed 4 years ago by lennart

WHat version of PA is this?

Changed 4 years ago by lennart

Ah, it's 0.9.7. Please retry with the newest version.

A lot of people claim problems with OSS4. As it appears OSS4 breaks compat with OSS/Free aka OSS3 in many ways. I am not sure if I should invest much time in this, given that OSS is obsolete anyway -- despite what some people might claim.

Changed 4 years ago by lennart

  • status changed from new to closed
  • resolution set to duplicate

Duplicate in #247.

Note: See TracTickets for help on using tickets.