Re: OSS spdif by default - was - M-Audio Revolution 7.1 microphone level

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hal V. Engel wrote:
> How do I get output from OSS based applications to use spdif by
> default or at all?

The default mapping of OSS devices to ALSA devices is as follows:
/dev/dsp0  -> hw:0,0  (first device on first card)
/dev/adsp0 -> hw:0,1  (second device on first card)
/dev/dsp1  -> hw:1,0  (first device on second card)
/dev/adsp1 -> hw:1,1  (second device on second card)
...
(Often, /dev/dsp instead of /dev/dsp0 is used.)

You can tell the OSS application to use /dev/adsp0 if the SPDIF output
is the second device (this should be the case with the Revo7.1).

If your application doesn't allow changing the device, or if you want
to change the default for all applications, or if you want to map to
a hw:X,2 device, you can change the mapping with the dsp_map and
adsp_map options of the snd-pcm-oss module.  These options specify, for
each card, which subdevice (the number after the comma) to use.  The
default settings are "dsp_map=0,0,0,0,0,0,0,0" and
"adsp_map=1,1,1,1,1,1,1,1", where each number is for one sound card.

For example, to map /dev/dsp to hw:0,1, add the line
      options snd-pcm-oss dsp_map=2
to /etc/modprobe.conf (or whatever file contains ALSA module options).


HTH
Clemens

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux