Wolfenstein Enemy Territory - second audio card

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Wolfenstein Enemy Territory - second audio card

Postby maximus1978 » 2020-04-10 15:15

I am trying to get the sound working out of the second audio card.

Code: Select all
inxi -Ax
Audio:     Card-1 Intel NM10/ICH7 Family High Definition Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 NVIDIA GK208 HDMI/DP Audio Controller driver: snd_hda_intel bus-ID: 01:00.1
           Sound: Advanced Linux Sound Architecture v: k4.9.0-8-amd64


I want /dev/dsp to use the second audio card.
maximus1978
 
Posts: 90
Joined: 2015-03-19 12:49

Re: Wolfenstein Enemy Territory - second audio card

Postby maximus1978 » 2020-04-10 16:15

Code: Select all
modprobe snd-pcm-oss


I noticed that when I remove this with
rmmod snd-pcm-oss
It removes /dev/dsp and some other directories in

/proc/asound/card1/pcm7p/oss

oss directory specifically

When modprobe kernel module back....

modpobe snd-pcm-oss

/dev/dsp is back

I want to map this to the second audio card to use /dev/dsp which is what Wolfenstein Enemy Territory uses.
Last edited by maximus1978 on 2020-04-10 17:39, edited 2 times in total.
maximus1978
 
Posts: 90
Joined: 2015-03-19 12:49

Re: Wolfenstein Enemy Territory - second audio card

Postby Head_on_a_Stick » 2020-04-10 16:25

https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card?

Or use pavucontrol if you're running PulseAudio.

Your super-secret, mystery desktop environment may also have it's own tool to set the audio output device.
User avatar
Head_on_a_Stick
 
Posts: 12129
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Wolfenstein Enemy Territory - second audio card

Postby maximus1978 » 2020-04-10 17:13

Code: Select all
rmmod -v snd-pcm-oss


Code: Select all
modprobe -v snd-pcm-oss adsp_map=0,7


I checked for the /dev/adsp

There were 2.

Code: Select all
ls /dev/adsp
adsp   adsp1 



Code: Select all
rm /dev/dsp
ln -s /dev/adsp1 /dev/dsp


file /dev/dsp
/dev/dsp: symbolic link to /dev/adsp1

Code: Select all
echo "et.x86 0 0 direct" > /proc/asound/card1/pcm7p/oss
Last edited by maximus1978 on 2020-04-10 17:18, edited 2 times in total.
maximus1978
 
Posts: 90
Joined: 2015-03-19 12:49

Re: Wolfenstein Enemy Territory - second audio card

Postby maximus1978 » 2020-04-10 17:15

https://www.kernel.org/doc/Documentation/sound/designs/oss-emulation.rst

You can change this device mapping via the module options of
snd-pcm-oss and snd-rawmidi. In the case of PCM, the following
options are available for snd-pcm-oss:

dsp_map
PCM device number assigned to /dev/dspX
(default = 0)
adsp_map
PCM device number assigned to /dev/adspX
(default = 1)

This worked for me.

Code: Select all
modprobe -v snd-pcm-oss adsp_map=0,7
maximus1978
 
Posts: 90
Joined: 2015-03-19 12:49

Re: Wolfenstein Enemy Territory - second audio card

Postby maximus1978 » 2020-04-10 17:33

Summary

Code: Select all
rmmod snd-pcm-oss
modprobe -v snd-pcm-oss adsp_map=0,7
rm /dev/dsp
ln -s /dev/adsp1 /dev/dsp
echo "et.x86 0 0 direct" > /proc/asound/card1/pcm7p/oss


I fluked this and it is working.
I strongly suggest reading...

https://www.kernel.org/doc/Documentation/sound/designs/oss-emulation.rst

Anybody out here who wants to explain what all these steps are doing. Please welcome!!!!
I did find the url listed here very helpful.
Still confused but I got it working after 2 days.
maximus1978
 
Posts: 90
Joined: 2015-03-19 12:49

Re: Wolfenstein Enemy Territory - second audio card

Postby maximus1978 » 2020-04-12 13:20

Well after all this.

I tried this. :)

https://www.etlegacy.com/

and it works without having to screw around with the sound. :)

I found this all super interesting thou. :)
maximus1978
 
Posts: 90
Joined: 2015-03-19 12:49


Return to Hardware

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable