1214d
![]() |
|
|
|
|
|||||||
| System Hardware Internal storage, motherboards, PCI cards, stuff inside the case. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have three sound cards in this machine and the handbook doesn't appear to address this problem. One card works with one driver and the other two work with another. For now, I have set the single card using /boot/loader.conf and have sound, but I would like to use the other two cards as well.
1. How do I set the default card? 2. How do I switch between them? |
|
#2
|
||||
|
||||
|
Create a softlink /dev/dsp pointing at the correct one.
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
OJ (December 15th, 2009) | ||
|
#3
|
||||
|
||||
|
For example, typing the following will change your default audio device from 0 to 1 (as root, of course).
Code:
# sysctl hw.snd.default_unit=1 Code:
# cat /dev/sndstat Code:
# cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386) Installed devices: pcm0: <AudioPCI ES1371-A> at io 0x2040 irq 16 kld snd_es137x [MPSAFE] (2p:1v/1r:1v channels duplex default) Last edited by joel@; December 15th, 2009 at 12:41. |
|
#4
|
|||
|
|||
|
Thanks joel@ sysctl works!
I haven't tested all the outputs yet but I assume there will be all five choices which are listed in /dev/sndstat when I load all drivers. My next problem will be how to use different cards at once, but I haven't lined up all my programs yet so this is good for now. @SirDice: your idea is interesting to me, but I don't know how to make links yet. I will have a look at the ln man pages. |
|
#5
|
|||
|
|||
|
Quote:
I'd take a look at /etc/devfs.conf for examples as well as to actually set it up. |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
|||
|
|||
|
Quote:
Code:
link dsp1 dsp |
|
#8
|
|||
|
|||
|
Based on the sysctl idea, I've built a tiny command line tool which allows you to list available sound devices and set the default one. It may also be used to detect sound devices using the generic audio driver.
Maybe this helps someone. Available via mercurial or as .tar.bz2 archive. |
|
#9
|
|||
|
|||
|
Making a symlink won't work, because chances are that there is alrady a /dev/dsp that was set up at boot time.
This line: Code:
link dsp1 dsp DOES NOT WORK! The only way I found to permanantly and effectively change my soundcard, is to add the follwing line to my /etc/sysctl.conf: Code:
hw.snd.default_unit=1 This problem has buggered me for way too long, considering how simple the solution is. I would represent that this is may be a stumbling block for the novice user, espceially since lots of systems have multiple soundcards these days. Perhaps a small addition to the handbook may be in order? Last edited by Woland; January 10th, 2011 at 20:13. Reason: included title with some keywords for easier searching. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sound card | lumiwa | System Hardware | 2 | September 14th, 2009 00:30 |
| [Solved] Sound card detected, but no sound on freebsd 7.2 | sasha-fbsd | System Hardware | 6 | September 12th, 2009 04:04 |
| How to change default source address | wazigster | Networking | 9 | August 23rd, 2009 13:51 |
| Sound card not detected... Help? | spoon | System Hardware | 17 | June 13th, 2009 00:19 |
| No Sound Card Driver ? | mdg | System Hardware | 5 | June 7th, 2009 18:42 |