Hi,
I just installed a SB Live! 24-bit card (SB0410) into a Dell Server 1960 running Redhat Enterprise Linux ES, with kernel 2.6.9. I also upgraded ALSA from 1.0.6 to 1.0.13 by compiling the sources for the drivers, libraries and utilities.
Here are some of the things that I *can* do:
- I am able to hear the test sound from the Sound Detection tool.
- I can successfully play (and hear) a wav file using aplay.
- I can use alsamixer to control volume and select line-in for capture.
- I can hear white noise when I run speaker-test.
Here are some of the things that I *cannot* do:
- I can't capture anything from the line-in port.
- I can't hear anything when I insert an audio CD.
I'd like to capture from the line-in port but I hear nothing when I play it back. If I dump the contents of the buffer after calling snd_pcm_readi, there's nothing but NULLs. I also tried using arecord, sending the output to a file. Using hexdump to examine the file, except for the first 48 bytes (or so) of data, the rest of the file contained NULLs. The first 48 bytes appear to be some kind of header info, since I see that those bytes are always pretty similar after each attempt to record.
When I insert an audio CD, the gnome-cd player automatically starts up and says it's playing the CD (it shows the correct track info), but I hear nothing. This was the command that the system used to bring up the CD player:
> ps -ef | grep gnome-cd
root 14274 1 0 11:56 ? 00:00:01 gnome-cd --unique --play --device /dev/hde
root 14741 1 2 12:34 ? 00:00:00 gnome-cd --unique --play --device /dev/hde
I am using the plughw:0,0 device. I tried to open the "default" device in my test capture/playback program, but that gave me the following error when I attempted the snd_pcm_open:
ALSA lib pcm_direct.c:1587:(snd_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
cannot open audio device default (Invalid argument)
I am doing all work logged in as root.
Can somebody please help me figure out what's wrong?
Thanks,
Anna Klein
Here's some info that I hope will be helpful in diagnosing the problem:
> cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.13.
Compiled on Jan 16 2007 for kernel 2.6.9-42.0.3.ELsmp (SMP).
> cat /proc/asound/devices
0: [ 0] : control
1: : sequencer
8: [ 0- 0]: raw midi
16: [ 0- 0]: digital audio playback
17: [ 0- 1]: digital audio playback
18: [ 0- 2]: digital audio playback
19: [ 0- 3]: digital audio playback
24: [ 0- 0]: digital audio capture
25: [ 0- 1]: digital audio capture
26: [ 0- 2]: digital audio capture
27: [ 0- 3]: digital audio capture
33: : timer
> cat /proc/asound/pcm
00-03: ca0106 : CA0106 : playback 1 : capture 1
00-02: ca0106 : CA0106 : playback 1 : capture 1
00-01: ca0106 : CA0106 : playback 1 : capture 1
00-00: ca0106 : CA0106 : playback 1 : capture 1
> cat /proc/asound/cards
0 [CA0106 ]: CA0106 - CA0106
Live! 7.1 24bit [SB0410] at 0xece0 irq 201
> lsmod | grep snd
snd_seq_midi 12704 0
snd_seq_midi_event 11136 1 snd_seq_midi
snd_seq 56144 2 snd_seq_midi,snd_seq_midi_event
snd_ca0106 34736 2
snd_rawmidi 29096 2 snd_seq_midi,snd_ca0106
snd_seq_device 12684 3 snd_seq_midi,snd_seq,snd_rawmidi
snd_ac97_codec 92964 1 snd_ca0106
snd_pcm_oss 48296 0
snd_mixer_oss 22912 2 snd_pcm_oss
snd_pcm 81156 3 snd_ca0106,snd_ac97_codec,snd_pcm_oss
snd_timer 28420 2 snd_seq,snd_pcm
snd 63296 11 snd_seq,snd_ca0106,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 13089 2 snd
snd_ac97_bus 6400 1 snd_ac97_codec
snd_page_alloc 14856 2 snd_ca0106,snd_pcm
> amixer
Simple mixer control 'Line in',0
Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Limits: Capture 0 - 255
Front Left: Capture 171 [67%] [-18.00dB] [on]
Front Right: Capture 171 [67%] [-18.00dB] [on]
Simple mixer control 'Mic',0
Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Limits: Capture 0 - 255
Front Left: Capture 0 [0%] [-99999.99dB] [off]
Front Right: Capture 0 [0%] [-99999.99dB] [off]
Simple mixer control 'Phone',0
Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Limits: Capture 0 - 255
Front Left: Capture 0 [0%] [-99999.99dB] [off]
Front Right: Capture 0 [0%] [-99999.99dB] [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 Center/LFE',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 235 [92%] [7.00dB]
Front Right: Playback 235 [92%] [7.00dB]
Simple mixer control 'IEC958 Front',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 232 [91%] [6.25dB]
Front Right: Playback 232 [91%] [6.25dB]
Simple mixer control 'IEC958 Rear',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 243 [95%] [9.00dB]
Front Right: Playback 243 [95%] [9.00dB]
Simple mixer control 'IEC958 Unknown',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 247 [97%] [10.00dB]
Front Right: Playback 247 [97%] [10.00dB]
Simple mixer control 'Aux',0
Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Limits: Capture 0 - 255
Front Left: Capture 179 [70%] [-14.00dB] [off]
Front Right: Capture 179 [70%] [-14.00dB] [off]
Simple mixer control 'Analog Center/LFE',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 232 [91%] [6.25dB]
Front Right: Playback 232 [91%] [6.25dB]
Simple mixer control 'Analog Front',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 230 [90%] [5.75dB]
Front Right: Playback 230 [90%] [5.75dB]
Simple mixer control 'Analog Rear',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 235 [92%] [7.00dB]
Front Right: Playback 235 [92%] [7.00dB]
Simple mixer control 'Analog Side',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 232 [91%] [6.25dB]
Front Right: Playback 232 [91%] [6.25dB]
Simple mixer control 'CAPTURE feedback',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 207 [81%] [0.00dB]
Front Right: Playback 207 [81%] [0.00dB]
Simple mixer control 'Digital Capture Source',0
Capabilities: enum
Items: 'IEC958 out' 'i2s mixer out' 'IEC958 in' 'i2s in' 'AC97 in' 'SRC out'
Item0: 'IEC958 out'
Simple mixer control 'Shared Mic/Line in',0
Capabilities: enum
Items: 'Line in' 'Mic in'
Item0: 'Line in'
> arecord -L
PCM list:
hw {
@args.0 CARD
@args.1 DEV
@args.2 SUBDEV
@args.CARD {
type string
default {
@func getenv
vars {
0 ALSA_PCM_CARD
1 ALSA_CARD
}
default {
@func refer
name 'defaults.pcm.card'
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars {
0 ALSA_PCM_DEVICE
}
default {
@func refer
name 'defaults.pcm.device'
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name 'defaults.pcm.subdevice'
}
}
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
plughw {
@args.0 CARD
@args.1 DEV
@args.2 SUBDEV
@args.CARD {
type string
default {
@func getenv
vars {
0 ALSA_PCM_CARD
1 ALSA_CARD
}
default {
@func refer
name 'defaults.pcm.card'
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars {
0 ALSA_PCM_DEVICE
}
default {
@func refer
name 'defaults.pcm.device'
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name 'defaults.pcm.subdevice'
}
}
type plug
slave.pcm {
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
}
plug {
@args.0 SLAVE
@args.SLAVE {
type string
}
type plug
slave.pcm $SLAVE
}
shm {
@args.0 SOCKET
@args.1 PCM
@args.SOCKET {
type string
}
@args.PCM {
type string
}
type shm
server $SOCKET
pcm $PCM
}
tee {
@args.0 SLAVE
@args.1 FILE
@args.2 FORMAT
@args.SLAVE {
type string
}
@args.FILE {
type string
}
@args.FORMAT {
type string
default raw
}
type file
slave.pcm $SLAVE
file $FILE
format $FORMAT
}
file {
@args.0 FILE
@args.1 FORMAT
@args.FILE {
type string
}
@args.FORMAT {
type string
default raw
}
type file
slave.pcm null
file $FILE
format $FORMAT
}
null {
type null
}
cards 'cards.pcm'
front 'cards.pcm.front'
rear 'cards.pcm.rear'
center_lfe 'cards.pcm.center_lfe'
side 'cards.pcm.side'
surround40 'cards.pcm.surround40'
surround41 'cards.pcm.surround41'
surround50 'cards.pcm.surround50'
surround51 'cards.pcm.surround51'
surround71 'cards.pcm.surround71'
iec958 'cards.pcm.iec958'
spdif 'cards.pcm.iec958'
modem 'cards.pcm.modem'
phoneline 'cards.pcm.phoneline'
default 'cards.pcm.default'
dmix 'cards.pcm.dmix'
dsnoop 'cards.pcm.dsnoop'
ca0106 {
type hw
card 0
}
> arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: CA0106 [CA0106], device 0: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CA0106 [CA0106], device 1: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CA0106 [CA0106], device 2: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CA0106 [CA0106], device 3: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user