LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2009, 01:56 PM   #1
Chryyz
Member
 
Registered: Dec 2004
Distribution: Slackware 10, Gentoo
Posts: 46

Rep: Reputation: 15
ALSA: 5.1 Surround - Center speaker not configured?


Alright, this is driving me nuts, so hopefully some of you ALSA gurus can help me. In more detail, here's the problem. I have a 5.1 surround sound speaker system. The center speaker functions properly, as I can get sound out of it with the hardware's own mixing, but when it comes to 6 channel audio, neither ALSA, nor pulse are able to output to the center speaker. I have two sound cards in my system, the onboard (hda-intel) and the PCI (razer barracuda AC-1, using oxygen driver CMI8788). This particular problem only occurs on the latter, the first outputs center audio perfectly. I know the oxygen driver is a little iffy, but googling for hours turned up no results for issues or solutions.

Code:
speaker-test -D plug:surround51 -c 6
Does not output sound to the center either.

System specs:
Gentoo Linux AMD64
Kernel: 2.6.30-gentoo-r4
ALSA: 1.0.20
Driver: snd-oxygen (CMI8788)
Card: Razer Barracuda AC-1
Speakers: Logitech G51

.asoundrc
Code:
# Set default sound card
# Useful so that all settings can be changed to a different card here.
pcm.oxygen {
type hw
card 0
device 0
}

ctl.oxygen {
type hw
card 0
device 0
}

pcm.intel {
type hw
card 1
device 0
}

# Allow mixing of multiple output streams to this device
pcm.output {
type dmix
ipc_key 1024
ipc_perm 0660 # Sound for everybody in your group!
slave.pcm "oxygen"

slave {
# This stuff provides some fixes for latency issues.
# buffer_size should be set for your audio chipset.
period_time 0
period_size 1024
buffer_size 8192
# buffer_size 4096
# buffer_size 2048
}

bindings {
0 0
1 1
}
}

pcm.input {
type dsnoop
ipc_key 2048
slave.pcm "oxygen"

## Possible artsd full duplex fix:
# slave {
# period_time 0
# period_size 1024
# buffer_size 8192
# }

bindings {
0 0
1 1
}
}
# Allow reading from the default device.
# Also known as record or capture.
pcm.input1 {
type dsnoop
ipc_key 2049
slave.pcm "intel"

## Possible artsd full duplex fix:
slave {
period_time 0
period_size 1024
buffer_size 8192
# buffer_size 4096
# buffer_size 2048
}

bindings {
0 0
1 1
}
}
# This is what we want as our default device
# a fully duplex (read/write) audio device.
pcm.duplex {
type asym
playback.pcm "oxygen"
capture.pcm "intel"
# capture.pcm "input1"
}

###################
# 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"
}
########
# AOSS #
########
# OSS dsp0 device (OSS needs only output support, duplex will break some stuff)
pcm.dsp0 {
type plug
slave.pcm "output"
}

#
pcm.dsp1 {
type plug
slave.pcm "output1"
}
alsa.conf
Code:
# Alsa kernel modules' configuration file.

# ALSA portion
# OSS/Free portion

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.20 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd-hda-intel model=3stack-6ch-dig
alias snd-card-0 snd-oxygen
alias sound-slot-0 snd-oxygen
# --- END: Generated by ALSACONF, do not edit. ---
And here's a screenshot showing the alsamixer for both cards. Top is the CMI8788, bottom is hda-intel onboard.

http://img258.imageshack.us/img258/7...41920x1200.png

Let me know if any more information is needed, thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
5.1 surround speaker system... oldforce Linux - Hardware 5 05-01-2005 03:04 AM
Center speaker not working, SB audigy DrD Linux - Hardware 1 09-17-2004 03:57 AM
Stereo sound on center speaker in xmms with alsa kule Linux - Software 0 06-16-2004 12:26 PM
ALSA surround center speaker problems LavaDevil94 Linux - Hardware 25 06-16-2004 12:10 AM
Alsa && Live 5.1 - Center speaker noise bootloader Linux - Hardware 1 10-14-2003 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration