[pulseaudio-discuss] 0.9.8 - Invalid value for card

Jim Duda jim at duda.tzo.com
Wed Mar 26 17:38:23 PDT 2008


I need to use the SPDIF port (sub channel 2).  Any of my attempts to use 
spdif, iec958, or surround51 failed.

lroom# aplay -L
front:CARD=CMI8738MC8,DEV=0
     C-Media PCI CMI8738-MC8, C-Media PCI DAC/ADC
     Front speakers
iec958:CARD=CMI8738MC8,DEV=0
     C-Media PCI CMI8738-MC8, C-Media PCI DAC/ADC
     IEC958 (S/PDIF) Digital Audio Output
null
     Discard all samples (playback) or generate zero samples (capture)

lroom# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CMI8738MC8 [C-Media PCI CMI8738-MC8], device 0: CMI8738-MC8 
[C-Media PCI DAC/ADC]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 0: CMI8738MC8 [C-Media PCI CMI8738-MC8], device 1: CMI8738-MC8 
[C-Media PCI 2nd DAC]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 0: CMI8738MC8 [C-Media PCI CMI8738-MC8], device 2: CMI8738-MC8 
[C-Media PCI IEC958]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
lroom#




lroom# pulseaudio --system -v
I: core-util.c: Successfully gained nice level -11.
I: main.c: Found user 'pulse' (UID 499) and group 'pulse' (GID 499).
I: main.c: Successfully dropped root privileges.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
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!
ALSA lib conf.c:3949:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM spdif:0
E: alsa-util.c: Error opening PCM device spdif:0: Invalid argument
E: module.c: Failed to load  module "module-alsa-sink" (argument: 
"device=spdif:0"): initialization failed.
E: main.c: Module load failed.
E: main.c: failed to initialize daemon.
I: main.c: Daemon terminated.



lroom# pulseaudio --system -v
I: core-util.c: Successfully gained nice level -11.
I: main.c: Found user 'pulse' (UID 499) and group 'pulse' (GID 499).
I: main.c: Successfully dropped root privileges.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
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!
ALSA lib conf.c:3949:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM iec958:0
E: alsa-util.c: Error opening PCM device iec958:0: Invalid argument
E: module.c: Failed to load  module "module-alsa-sink" (argument: 
"device=iec958:0"): initialization failed.
E: main.c: Module load failed.
E: main.c: failed to initialize daemon.
I: main.c: Daemon terminated.
lroom#

lroom# pulseaudio --system -v
I: core-util.c: Successfully gained nice level -11.
I: main.c: Found user 'pulse' (UID 499) and group 'pulse' (GID 499).
I: main.c: Successfully dropped root privileges.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
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!
ALSA lib conf.c:3949:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround51:0
E: alsa-util.c: Error opening PCM device surround51:0: Invalid argument
E: module.c: Failed to load  module "module-alsa-sink" (argument: 
"device=surround51:0"): initialization failed.
E: main.c: Module load failed.
E: main.c: failed to initialize daemon.
I: main.c: Daemon terminated.




Jim Duda wrote:
> Lennart,
> 
> I need to use the spdif port, as this computer is attached to a DTS decoder/receiver.
> I've tried "device=spdif:0", "device=iec958:0", "device=surround51:0", all of which give the same error.
> I don't have access to the computer right now, but I can dump the message for each of those cases.
> 
> Jim
> 
> 
> "Lennart Poettering" <lennart at poettering.net> wrote in message news:20080326004556.GB20853 at tango.0pointer.de...
>> On Mon, 24.03.08 15:58, Jim Duda (jim at duda.tzo.com) wrote:
>>
>>> I've just upgraded from 0.9.6 to 0.9.8 (FC7 to FC8 distribution).
>>>
>>> I'm having trouble with a basic setup.  I'm getting back "Invalid value for card".
>>>
>>> See anything wrong?
>>>
>> Sounds like an ALSA issue to me. Why do you open hw:0,2? You shouldn't
>> fiddle around with subdevices manually. Also, please use "front:0",
>> "surround51:0", ... as device strings instead of the raw "hw:0" which
>> doesn't carry any information about the channel map of a device.
>>
>> 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