LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to change character device file name? (https://www.linuxquestions.org/questions/linux-general-1/how-to-change-character-device-file-name-163175/)

taphos 03-27-2004 07:02 PM

How to change character device file name?
 
I have two sound cards on my system. (A and B)
after compiling a kernel i found my card B under /dev/dsp
and card A under /dev/dsp1
most programs use /dev/dsp by default
But i preffer to use my A sound card and i have to tell every program to use alternate device.
How could i exchange my card devices?

P.S. I am using devfs

leckie 03-28-2004 06:29 AM

change where they point most nodes(if not all) in the root /dev directory are links to other nodes which are in seperate directories.
example
lr-xr-xr-x 1 root root 9 Mar 26 16:05 /dev/dsp -> /dev/sound/dsp

So you can either change where they point to, or simply rename them to each other.

taphos 03-28-2004 08:12 AM

Already tryed this.
But i think, it is a rude way to solve the problem.
Some programs (like xmms) show the names of sound cards. And with this solution, when i want to play through card A, i have to choose card B.


All times are GMT -5. The time now is 12:43 PM.