[pulseaudio-discuss] pulseaudio with kernel 2.6.23 (and earlier?) insists on using OSS, not ALSA

Lennart Poettering lennart at poettering.net
Tue Nov 20 10:09:47 PST 2007


On Sun, 04.11.07 12:16, Nix (nix at esperi.org.uk) wrote:

> hades# /usr/bin/pulseaudio --daemonize=no
> E: module-alsa-sink.c: Failed to set hardware parameters: Inappropriate ioctl for device
> E: module.c: Failed to load  module "module-alsa-sink" (argument: ""): initialization failed.
> E: main.c: Module load failed.
> E: main.c: failed to initialize daemon.

Please run pulseaudio -vv.

> open("/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 16
> ioctl(16, AGPIOC_ACQUIRE or APM_IOC_STANDBY, 0xbf93811c) = 0
> fcntl64(16, F_GETFL)                    = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
> ioctl(16, AGPIOC_INFO, 0xbf9382c8)      = 0
> ioctl(16, AGPIOC_RELEASE or APM_IOC_SUSPEND, 0xbf9382c0) = 0
> mmap2(NULL, 4096, PROT_READ, MAP_SHARED, 16, 0x80000) = 0xb7ff8000
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 16, 0x81000) = 0xb7ff7000
> [huge flood of ioctls culminating in...]
> ioctl(16, 0xc25c4110, 0xbf9381bc)       = 0
> ioctl(16, 0xc25c4110, 0xbf9381bc)       = 0
> ioctl(16, 0xc25c4110, 0xbf9381bc)       = 0
> ioctl(16, 0xc25c4110, 0xbf938540)       = 0
> ioctl(16, 0xc25c4111, 0xbf938540)       = 0
> ioctl(16, 0xc0684113, 0xbf938128)       = 0
> ioctl(16, 0x80144132, 0xbf93805c)       = -1 ENOTTY (Inappropriate ioctl for device)
> 
> Of course none of these ioctls are documented anywhere: in fact I can't
> even find them in the kernel source (although they must be there
> somewhere, one assumes).

Those ioctls are ALSA-specific. 

> I'm just wondering if this is an error in the way PulseAudio is *using*
> ALSA, or if I should jump up and down on the ALSA list instead?

Could you please change default.pa, disable both detection modules and
instead use "load-module module-alsa-sink device=plughw:0"?

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list