2009-09-13, 02:48
I was wondering if anyone has any hints, or could help me figure out how to get the Zalman ZM-RSSC v2 USB 5.1 sound card to work with my XBMC Ubuntu box.
So far I've gone through these steps:
1. Disabled on-board sound
2. Plugged in the USB Drive, booted up and changed to a different terminal and upgraded ALSA using the upgrade script here
3. Then I checked what is being detected by entering "aplay -l" and "aplay -L".
I do this from the xbmc user. When trying these commands from my root user nothing is detected... which is probably a good indication that things aren't going well?
aplay -l gives:
aplay -L gives:
When I run speaker-test -D default -c 6 I also have to do so with sudo otherwise I get permission denied problems. When it runs I am only hearing the static through left and right speakers.
Finally I am also using a .asoundrc file that I placed in both home directories of my xbmc user and my root user. It looks like this:
From a fresh reboot that goes into XBMC when I try and play anything I just get an error saying "Failure to initialize audio device". I hope someone sees something obvious I'm doing wrong :o
So far I've gone through these steps:
1. Disabled on-board sound
2. Plugged in the USB Drive, booted up and changed to a different terminal and upgraded ALSA using the upgrade script here
3. Then I checked what is being detected by entering "aplay -l" and "aplay -L".
I do this from the xbmc user. When trying these commands from my root user nothing is detected... which is probably a good indication that things aren't going well?
aplay -l gives:
Code:
**** List of PLAYBACK Hardware Devices ****
card 1: default [USB Sound Device ], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
aplay -L gives:
Code:
front:CARD=default,DEV=0
USB Sound Device , USB Audio
Front speakers
surround40:CARD=default,DEV=0
USB Sound Device , USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=default,DEV=0
USB Sound Device , USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=default,DEV=0
USB Sound Device , USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=default,DEV=0
USB Sound Device , USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=default,DEV=0
USB Sound Device , USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=default,DEV=0
USB Sound Device , USB Audio
IEC958 (S/PDIF) Digital Audio Output
null
Discard all samples (playback) or generate zero samples (capture)
When I run speaker-test -D default -c 6 I also have to do so with sudo otherwise I get permission denied problems. When it runs I am only hearing the static through left and right speakers.
Finally I am also using a .asoundrc file that I placed in both home directories of my xbmc user and my root user. It looks like this:
Code:
Set default sound card
# Useful so that all settings can be changed to a different card here.
pcm.snd_card {
type hw
card 1
}
pcm.dmix6 {
type dmix
ipc_key 1024
ipc_key_add_uid false # let multiple users share
ipc_perm 0660 # IPC permissions (octal, default 0600)
slave {
pcm snd_card # see below
rate 48000
channels 6
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}
#route for stereo only
pcm.dmix20 {
type route
slave.pcm "dmix6"
slave.channels 6
ttable.0.0 1
ttable.1.1 1
}
#route for stereo sound+center+subwoofer
pcm.ch31dup {
type route
slave.pcm "dmix6"
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.4 0.5
ttable.1.4 0.5
ttable.0.5 0.5
ttable.1.5 0.5
}
pcm.ch51dup {
type route
slave.pcm dmix6
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.5
ttable.1.4 0.5
ttable.0.5 0.5
ttable.1.5 0.5
}
pcm.duplex {
type asym
playback.pcm "ch51dup"
# playback.pcm "dmix2"
# capture.pcm "mydsnoop"
capture.pcm "snd_card"
}
###################
# CONVERSION PLUG #
###################
# Setting the default pcm device allows the conversion
# rate to be selected on the fly.
# duplex mode allows any alsa enabled app to read/write
# to the dmix plug (Fixes a problem with wine).
pcm.!default {
type plug
slave.pcm "duplex"
}
pcm.dsp "duplex"
pcm.dsp1 "duplex"
pcm.fr {
type route
slave.pcm "dmix6"
slave.channels 6
ttable.0.0 1
ttable.1.1 1
}
pcm.rr {
type route
slave.pcm "dmix6"
slave.channels 6
ttable.0.2 1
ttable.1.3 1
}
pcm.lfe {
type route
slave.pcm "dmix6"
slave.channels 6
ttable.0.4 1
ttable.1.5 1
}
From a fresh reboot that goes into XBMC when I try and play anything I just get an error saying "Failure to initialize audio device". I hope someone sees something obvious I'm doing wrong :o