Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old October 22nd, 2007   #1
studo77
A Carafe of Ubuntu
 
Join Date: Oct 2007
Beans: 106
Ubuntu 7.10 Gutsy Gibbon
surround on Audigy (ca0106) .asoundrc file, (combine settings)

After seeing many posts on the Audigy SE card (ca0106) and troubles.
I have two working modes, but would like to combine them.

http://ubuntuforums.org/showthread.php?p=3592393

This is my original post, and am now moving it here. It seems to be the right place.

Now, here is the text from the original post:
Ok, here goes.

I have my Creative Audige SE card, chip ca0106

Sound is working pretty ok. But i have two sets of .asoundrc i would like to combine.

The first is where i get a mix of stereo to 5.1, and this i done by:
Found on http://pastebin.ca/464795?srch=upmix
Code:
pcm.!dmix {
   type plug
   slave {
       pcm surround51
       channels 6
   }
}
pcm.!default {
   type plug
   slave.pcm "dmix"
   slave.channels 6
   route_policy duplicate
}
This upmixes my stereo, and lets 5.1 audio through. But, it does not let me play multiple audiosources.

This next one is found at
http://ubuntuforums.org/showthread.php?t=285065

Which i cut down to only analog:
Code:
# Override the default output used by ALSA.
# If you do not override the default, your default
# device is identical to the (unmixed) analog device
# shown below.  If you prefer mixed and/or digital
# output, uncomment the appropriate four lines below
# (only one slave.pcm line).
### comment out this entire section to use unmixed
pcm.!default {
  type plug
  slave.pcm "dmix-analog"

}

# Alias for analog output on the Audigy (hw:0,0)
# - This is identical to the device named "default"--which
# always exists and refers to hw:0,0 (unless overridden)
# - Therefore, we can specify "hw:0,0", "default", or "analog"
# to access analog output on the Audigy
pcm.analog {
 type plug
 slave.pcm "analog-hw"
}

# Control device (mixer, etc.) for the Audigy card
ctl.analog {
 type hw
 card 0
}

# Alias for (rate-converted) mixed analog output on the
# Audigy (hw:0,0)
#  - This will accept audio input--regardless of rate--and
# convert to the rate required for the dmix plugin
# (in this case 48000Hz)
pcm.mixed-analog {
 type plug
 slave.pcm "dmix-analog"
}

# Control device (mixer, etc.) for the Audigy card
ctl.mixed-analog {
 type hw
 card 0
}




# The following devices are not useful by themselves.  They
# require specific rates, channels, and formats.  Therefore,
# you probably do not want to use them directly.  Instead use
# of of the devices defined above.

# Alias for analog output on the Audigy (hw:0,0)
# Do not use this directly--it requires specific rate,
# channels, and format
pcm.analog-hw {
 type hw
 card 0
 # The default value for device is 0, so no need to specify
}

# Control device (mixer, etc.) for the Audigy card
ctl.analog-hw {
 type hw
 card 0
}


# Direct software mixing plugin for analog output on
# the Audigy (hw:0,0)
# Do not use this directly--it requires specific rate,
# channels, and format. You can edit the rate to use 
# another sampe rate like 9600
pcm.dmix-analog {
 type dmix
 ipc_key 1234
 slave {
   pcm "analog-hw"
   period_time 0
   period_size 1024
   buffer_size 4096
   rate 48000
 }
}

# Control device (mixer, etc.) for the Audigy card
ctl.dmix-analog {
 type hw
 card 0
}
This plays multiple audiosources, and lets 5.1 pass through.

BUT it only plays stereo on front speakers.

I tried putting
pcm surround51
channels 6

and
slave.channels 6
route_policy duplicate

Into the multiple working, where i thought they belonged, but then my soundcard gets locked up.
And letting all lines in the .asoundrc also gives troubles.

So how do i combine the two? Where to put in lines from the first, into the second to get a working .asoundrc?
And if i am very lucky, also explanation on why...

If i get the right answer i will post it on other posts on nearly the same issue, but the posts are dead, and long time since. (pops up on query)


Bonusinfo:
If i use a
Code:
pcm.ch51dup {
         slave.pcm surround51
         slave.channels 6
         type route
         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
}
to distribute the sound, i get sound on all 5.1 speakers, but the sound is very choppy, and not listenable.
studo77 is offline   Reply With Quote
Old November 15th, 2007   #2
werewolfzx8
Just Give Me the Beans!
 
werewolfzx8's Avatar
 
Join Date: May 2007
Beans: 77
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to werewolfzx8 Send a message via MSN to werewolfzx8
Unhappy Re: surround on Audigy (ca0106) .asoundrc file, (combine settings)

This is the exact thing I've been trying to do.

I can either get multiple applications to play at once, OR I can get surround sound, but I can't get both at the same time.

This is a major problem for me, because I love my surround sound in games, but I need to be able to have multiple sound applications running at the same time.

I'm probably going to end up buying a different card. That M-Audio Revolution sounded pretty good, but right now I need to get THIS card to do what I want.

I messed around with the .asoundrc file all freakin night, and was still unable to get it working.

This is so frustrating
werewolfzx8 is offline   Reply With Quote
Old November 23rd, 2007   #3
keithacole
Just Give Me the Beans!
 
Join Date: Jul 2005
Beans: 72
Send a message via AIM to keithacole Send a message via MSN to keithacole Send a message via Yahoo to keithacole
Re: surround on Audigy (ca0106) .asoundrc file, (combine settings)

just gonna chime in and say i have the same problems, i however have just been under the assumption in the past that getting multiple instances of audio was just broke under MANY MANY soundcards. i upgraded to gutsy, then went and upgraded my alsa to the latest version and my .asoundrc had to be removed for me to even get sound. but when i did get it it was only stereo through the front channels, and my left side has lower gain then the right side.but i get seemless stable sound, and multiple sounds at the same time. just need to get the surround working
__________________
modded xbox, overclocked cassiopeia, Ubuntu Box, Xubuntu Tablet, Ubuntu Studio in 4u server case, XP on Dell XPS 1210 that needs new battery, Vista Box, vonage, 108MBs wifi, podcast connoisseur, CBR F3(daily ride)...Dad
keithacole is offline   Reply With Quote
Old February 4th, 2008   #4
Neo7891
First Cup of Ubuntu
 
Join Date: Dec 2007
Beans: 1
Re: surround on Audigy (ca0106) .asoundrc file, (combine settings)

Got the same Problem with my Creative Audigy SE. Either 5.1 Sound or sound from multiple
Programs using dmixer. Both at a time doesn't work.
Hope a solution will be found soon.
Neo7891 is offline   Reply With Quote
Old February 6th, 2008   #5
darck
5 Cups of Ubuntu
 
Join Date: Nov 2007
Beans: 36
Re: surround on Audigy (ca0106) .asoundrc file, (combine settings)

I've got same problem. Can make surround or dmix, but can't both at once. I hope that someone will find solution, because it'is major issue with cards using ca0106:

SB Live 24-bit (sb0410)
SB Audigy 7.1 (sb0570)
SB X-Fi Xtreme Audio (sb0790)

I've tried with ALSA Version 1.0.15.
below code which worked for integrated ALC650, but doesn't with ca0106:
Code:
###################################    via8235
pcm.via8235-dmix {
	type dmix
	ipc_key 1024
	slave {
		pcm "hw:1,1"
		channels 4
		period_time 0
		period_size 1024
		buffer_time 0
		buffer_size 4096
	}
}

pcm.via8235 {
	type plug
	slave.pcm "via8235-dmix"
	slave.channels 4
	route_policy duplicate  #this line causes error for ca106
}

ctl.via8235 {
	type hw
	card 1
}
darck is offline   Reply With Quote
Old February 9th, 2008   #6
darck
5 Cups of Ubuntu
 
Join Date: Nov 2007
Beans: 36
Re: surround on Audigy (ca0106) .asoundrc file, (combine settings)

reported as bug at ALSA bugtracker. You can give some feedback over here:
https://bugtrack.alsa-project.org/al...ew.php?id=3755
bug id: 0003755
simple registration required
darck is offline   Reply With Quote
Old February 25th, 2008   #7
raashell
5 Cups of Ubuntu
 
Join Date: Jun 2007
Beans: 41
Re: surround on Audigy (ca0106) .asoundrc file, (combine settings)

Thanks for help! I was having a problem getting surround sound with my new Audigy SE card. The bass and center speaker weren't working. I pasted your script into a new file I named, .asoundrc , in my home directory, and rebooted. Sounds great now. With Linux on the rise I hope Creative Labs will start offering Linux drivers.

Thanks again,

John
raashell is offline   Reply With Quote
Old May 12th, 2008   #8
DkkD
Spilled the Beans
 
Join Date: Apr 2008
Beans: 13
Xubuntu 8.04 Hardy Heron
Re: surround on Audigy (ca0106) .asoundrc file, (combine settings)

Does anyone know how to solve this? Surround plus dmix on CA0106 (sb live!)?

Sorry for bringing back an old thread, but I was just going to start a new one with the same question. I have seen the problem on many forums, but nobody seems to have the solution. Thanks.
DkkD is offline   Reply With Quote
Old June 14th, 2008   #9
elgilicious
Dipped in Ubuntu
 
Join Date: May 2007
Beans: 608
Ubuntu 9.04 Jaunty Jackalope
Re: surround on Audigy (ca0106) .asoundrc file, (combine settings)

In Hardy, I can only get sound in either a) the front, front L, and front R speakers, or b) the front, rear L, and rear R speakers. Much like you, I can play sound in multiple apps. I'd much rather have surround, though.
elgilicious is offline   Reply With Quote
Old June 14th, 2008   #10
crudolphy
5 Cups of Ubuntu
 
crudolphy's Avatar
 
Join Date: Oct 2006
Location: The Woodlands (Near Houst
Beans: 14
Ubuntu 7.04 Feisty Fawn
Re: surround on Audigy (ca0106) .asoundrc file, (combine settings)

If you are running Hardy with Pulse Audio, this has worked for me in both 32 bit and 64 bit versions. Change /etc/pulse/default.pa as follows:

Code:
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

.nofail

### Load something into the sample cache
#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-access /usr/share/sounds/generic.wav

.fail

### Load audio drivers statically (it's probably better to not load
### these drivers manually, but instead use module-hal-detect --
### see below -- for doing this automatically)
#load-module module-alsa-sink
load-module module-alsa-sink device="surround51" channels=6 sink_name=sur51
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
#.ifexists module-hal-detect.so
#load-module module-hal-detect
#.else
### Alternatively use the static hardware detection module (for systems that
### lack HAL support)
#load-module module-detect
#.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP reciever module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
#load-module module-rtp-send source=rtp.monitor

### Automatically restore the volume of playback streams
load-module module-volume-restore

### Automatically restore the default sink/source when changed by the user during runtime
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### Load X11 bell module
#load-module module-x11-bell sample=x11-bell

### Register ourselves in the X11 session manager
# Deactivated by default, to avoid deadlock when PA is started as esd from gnome-session
# Instead we load this via /etc/xdg/autostart/ and "pactl load-module" now
# load-module module-x11-xsmp

### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif

### Publish connection data in the X11 root window
.ifexists module-x11-publish.so
.nofail
load-module module-x11-publish
.fail
.endif

### Make some devices default
#set-default-sink output
#set-default-source input
The main line that gets added is:
Quote:
load-module module-alsa-sink device="surround51" channels=6 sink_name=sur51
and commenting out all the stuff with "Hal detect".

I get stereo playback with Exaile and Rhythmbox through all of my 5.1 speakers and when I pop in a surround sound DVD and play it in either Totem or VLC I get 5.1 playback.

I can't guarantee it will work for you but it worked for me. I have SBLive 24 bit 7.1 card (ca0106) paired with a 5.1 speaker system. Hardy 8.04 AMD64. No issues with Flash, Divx, WMA, Quicktime, MPG, all play with sound either embedded in browser or in Totem with stereo mixed to the 5.1 speakers. My tunes sound awesome to my ears.
crudolphy is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:50 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry