Author Topic: Select non-default soundcard?  (Read 7465 times)

FeistyBas

  • Posts: 6
  • Turrets: +0/-0
Select non-default soundcard?
« on: March 01, 2007, 09:51:02 am »
Is it possible to select a non-default soundcard?
There is a non-fixed bug in Feisty that doesn't let me change the default soundcard, so for every application I need to set the soundcard to the one I am using. The onboard one is pony, so I really want to use my Soundblaster.

tomek-k

  • Guest
Select non-default soundcard?
« Reply #1 on: March 01, 2007, 10:55:24 am »
try to disable your onboard soundcard in BIOS

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Select non-default soundcard?
« Reply #2 on: March 01, 2007, 05:45:36 pm »
Or even better, get rid of the kernel driver for your on-board sound card.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

vcxzet

  • Guest
Select non-default soundcard?
« Reply #3 on: March 01, 2007, 05:47:43 pm »
best method is to remove onboard chip

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Select non-default soundcard?
« Reply #4 on: March 01, 2007, 06:08:39 pm »
God dammit why can't you people answer his question?

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Select non-default soundcard?
« Reply #5 on: March 01, 2007, 06:43:47 pm »
Try export AUDIODEV=<somthing> before running trem.

also can try SDL_PATH_DSP

I got this from http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fenvvars?action=highlight&value=environment+variable
and there are more options there.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

FeistyBas

  • Posts: 6
  • Turrets: +0/-0
Select non-default soundcard?
« Reply #6 on: March 01, 2007, 06:56:05 pm »
Quote from: "tomek-k"
try to disable your onboard soundcard in BIOS

already did that, but my Feisty is so cool to still find and install it. It doesn't show in Wondiws so it's probably a linux 'feature'.

Quote from: "next_ghost"
Or even better, get rid of the kernel driver for your on-board sound card.

if I knew how, i wouldn't be asking questions on a forum, would I?
So please give some hints how.

Quote from: "vcxzet"
best method is to remove onboard chip

see above.

Quote from: "Odin"
God dammit why can't you people answer his question?

LOL!!! Relax mate, i'm not in a rush or anything.. :-)

Quote from: "David"
Try export AUDIODEV=<somthing> before running trem.

also can try SDL_PATH_DSP

I got this from http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fenvvars?action=highlight&value=environment+variable
and there are more options there.


Thanks, I'm working on it right now.

[edit]
the export AUDIODEV=<something> worked for me, thanks for the help!!
[/edit]

tomek-k

  • Guest
Select non-default soundcard?
« Reply #7 on: March 01, 2007, 07:51:05 pm »
Quote from: "Odin"
God dammit why can't you people answer his question?

 :roll:
Quote from: "FeistyBas"
Quote from: "tomek-k"
try to disable your onboard soundcard in BIOS

already did that, but my Feisty is so cool to still find and install it. It doesn't show in Wondiws so it's probably a linux 'feature'.


 :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:

FeistyBas

  • Posts: 6
  • Turrets: +0/-0
Select non-default soundcard?
« Reply #8 on: March 01, 2007, 08:40:33 pm »
Quote from: "tomek-k"


 :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:


I'm not joking here, I'll look into it later on, but I know how to disable my soundcard in bios. Could be just a failing mobo.

Caveman

  • Guest
Select non-default soundcard?
« Reply #9 on: March 01, 2007, 09:07:19 pm »
Sounds to me more like a windows-user installed linux with a mouse, without reading up anything in a manual .)

See the sections about installing modules, modules.conf and the like. ("man modprobe|rmmod")

FeistyBas

  • Posts: 6
  • Turrets: +0/-0
Select non-default soundcard?
« Reply #10 on: March 01, 2007, 09:45:09 pm »
Quote from: "Caveman"
Sounds to me more like a windows-user installed linux with a mouse, without reading up anything in a manual .)

See the sections about installing modules, modules.conf and the like. ("man modprobe|rmmod")


Thanks man, you're really a big help. Keep up the good work.

TinMan

  • Posts: 1019
  • Turrets: +49/-70
    • http://neonpulse.net
Select non-default soundcard?
« Reply #11 on: March 01, 2007, 10:07:24 pm »
http://ubuntuforums.org/showthread.php?t=205449
"Configuring default soundcards / stopping multiple soundcards from switching"
is probably the part you want to read, setting the option to index=-2 will prevent the card from grabbing any open slots, it's what I did to disable my default sound card.
Code: [Select]
Linux: ~/.tremulous/base/
Mac: ~/Library/Application\ Support/Tremulous/base/
Windows: C:\Documents and Settings\username\Local Settings\Application Data\Tremulous\base\
NeonPulse
http://neonpulse.net/media/games/tremulous/base/autoexec.cfg

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Select non-default soundcard?
« Reply #12 on: March 01, 2007, 11:25:49 pm »
Quote from: "FeistyBas"
Quote from: "next_ghost"
Or even better, get rid of the kernel driver for your on-board sound card.

if I knew how, i wouldn't be asking questions on a forum, would I?
So please give some hints how.


Most distros have kernel sound drivers as kernel modules. Run `lsmod` and look for lines that begin with snd_..., one of them should be named similar to the onboard sound card. If you're still not sure which one(s) it is, skip these modules:

Code: [Select]
snd_pcm_oss
snd_mixer_oss
snd_seq_oss
snd_seq_midi_event
snd_seq
snd_seq_device
snd_pcm
snd_timer
snd
snd_page_alloc


These ones are ALSA core modules, don't even think about touching them! Next to them, there should be the soundblaster modules and the rest are the modules you want to get rid of. You'll find them somewhere in /lib/modules/kernel-version/, use `find -name` to locate them, they're most likely called 'lsmod_name.ko'.

DO NOT delete them yet, use some package manager tool to query those files to find out which package they belong to. Then try reinstalling that package without them if it's possible. If not, post the names of those modules here to make sure you really don't delete something important.

Oh, and yes, Linux kernel does detect the devices without help from BIOS. However, you can disable that feature when you compile the kernel (disable Plug and Play ACPI support in device drivers configuration).
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

tomek-k

  • Guest
Select non-default soundcard?
« Reply #13 on: March 01, 2007, 11:44:06 pm »
Quote from: "FeistyBas"
Quote from: "tomek-k"


 :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:


I'm not joking here, I'll look into it later on, but I know how to disable my soundcard in bios. Could be just a failing mobo.


hmm... so I must check my integrated sound card if it behaves the same way...

I thought it is pretty weird because I was convinced that disabling in BIOS such elements as integrated controllers means also cutting off their power, so the OS wouldn't be able to see 'em.

For examle, I've disabled the floppy controller in my BIOS and linux doesn't sees it (I've checked the dmesg output).

But maby it just depends on the mb?

vcxzet

  • Guest
Select non-default soundcard?
« Reply #14 on: March 02, 2007, 05:21:59 am »
Quote from: "tomek-k"
Quote from: "FeistyBas"
Quote from: "tomek-k"


 :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:  :eek:


I'm not joking here, I'll look into it later on, but I know how to disable my soundcard in bios. Could be just a failing mobo.


hmm... so I must check my integrated sound card if it behaves the same way...

I thought it is pretty weird because I was convinced that disabling in BIOS such elements as integrated controllers means also cutting off their power, so the OS wouldn't be able to see 'em.

For examle, I've disabled the floppy controller in my BIOS and linux doesn't sees it (I've checked the dmesg output).

But maby it just depends on the mb?

as I said removing the  onboard sound chip is the best method

FeistyBas

  • Posts: 6
  • Turrets: +0/-0
Select non-default soundcard?
« Reply #15 on: March 02, 2007, 08:19:30 am »
Quote from: "next_ghost"



Oh, and yes, Linux kernel does detect the devices without help from BIOS. However, you can disable that feature when you compile the kernel (disable Plug and Play ACPI support in device drivers configuration).


Thanks, having a look into that tonight, unfortunately I'm at work at the moment...

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Select non-default soundcard?
« Reply #16 on: March 02, 2007, 11:16:46 am »
Quote from: "FeistyBas"
Thanks, having a look into that tonight, unfortunately I'm at work at the moment...


If you're going to compile your own kernel, you can as well skip seaching for the modules and simply disable them in kernel configuration (unless you use external ALSA modules package from apt). Use `make menuconfig` in the kernel sources base directory to run the interactive kernel configuration tool.

Don't forget to get the .config file from your distro kernel package. It should be in /proc/config.gz (gzipped) or included in the kernel apt package. Ungzip/copy it to your kernel sources base directory (eg. /usr/src/linux/.config) before you run `make menuconfig`. Otherwise you'll have to configure the kernel from scratch.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

tomek-k

  • Guest
Select non-default soundcard?
« Reply #17 on: March 02, 2007, 01:00:14 pm »
Quote from: "vcxzet"
as I said removing the  onboard sound chip is the best method


yeah... I think that would work :D

FeistyBas

  • Posts: 6
  • Turrets: +0/-0
Select non-default soundcard?
« Reply #18 on: March 08, 2007, 05:59:18 pm »
This did work and is a bit faster than recompiling the kernel:
Code: [Select]

sudo asoundconf list


I got back:

Names of available sound cards:
V8237
Live

Then do:

Code: [Select]
sudo asoundconf set-default-card Live

followed by a reboot

Sure enough, the Live is now set to default.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Select non-default soundcard?
« Reply #19 on: March 08, 2007, 06:41:10 pm »
Wouldn't `/etc/init.d/alsasound restart` or whatever your ALSA init script is called work even without restart?
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.