LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-27-2004, 08:02 PM   #1
taphos
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
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
 
Old 03-28-2004, 07:29 AM   #2
leckie
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
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.
 
Old 03-28-2004, 09:12 AM   #3
taphos
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change default character encoding alepou192 Ubuntu 2 05-23-2005 05:56 AM
Check to see if a file has a certain character in it krock923 Programming 2 11-25-2004 04:30 PM
Character Device kernel(2.4.18) - module problem shibdas Programming 2 11-11-2004 04:52 AM
end of file character hyperriven Programming 2 04-08-2004 12:09 AM
Java: Change first character in word to upper AMMullan Programming 4 04-05-2004 04:16 PM


All times are GMT -5. The time now is 01:56 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration