mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Added surround.conf
This commit is contained in:
parent
b72c78f887
commit
b54168e4d2
3 changed files with 103 additions and 1 deletions
|
|
@ -10,6 +10,11 @@ libpcm_la_SOURCES = atomic.c mask.c interval.c \
|
|||
noinst_HEADERS = atomic.h pcm_local.h pcm_plugin.h mask.h mask_inline.h \
|
||||
interval.h interval_inline.h plugin_ops.h
|
||||
|
||||
EXTRA_DIST = surround.conf
|
||||
|
||||
alsadir = $(datadir)/alsa
|
||||
alsa_DATA = surround.conf
|
||||
|
||||
all: libpcm.la
|
||||
|
||||
INCLUDES=-I$(top_srcdir)/include
|
||||
|
|
|
|||
|
|
@ -690,7 +690,7 @@ static int open_trid4nx(snd_pcm_surround_t *surr,
|
|||
|
||||
if ((err = snd_pcm_surround_three_streams(surr, type,
|
||||
snd_ctl_card_info_get_card(info),
|
||||
0, 0, 0, 0, -1, -1,
|
||||
0, -1, 0, -1, -1, -1,
|
||||
stream, mode)) < 0)
|
||||
return err;
|
||||
|
||||
|
|
|
|||
97
src/pcm/surround.conf
Normal file
97
src/pcm/surround.conf
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
#
|
||||
# Configuration for the surround plugin
|
||||
#
|
||||
|
||||
surround_plugin.SI_7018 { # test only
|
||||
channels.six = true;
|
||||
open_multi {
|
||||
device.0 = 0;
|
||||
subdevice.0 = -1;
|
||||
device.1 = 0;
|
||||
subdevice.1 = -1;
|
||||
device.2 = 0;
|
||||
subdevice.2 = -1;
|
||||
}
|
||||
}
|
||||
|
||||
surround_plugin.FM801 {
|
||||
channels.six = true;
|
||||
open_single {
|
||||
device.0 = 0;
|
||||
subdevice.0 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
surround_plugin.ENS1370 {
|
||||
use_fd = 1;
|
||||
open_multi {
|
||||
device.0 = 1;
|
||||
subdevice.0 = 0;
|
||||
device.1 = 0;
|
||||
subdevice.1 = 0;
|
||||
}
|
||||
# Reroute PCM0 (rear) to Line-In Jack.
|
||||
open_control.0 {
|
||||
iface = CARD;
|
||||
name = 'PCM 0 Output also on Line-In Jack';
|
||||
index = 0;
|
||||
lock = true;
|
||||
preserve = true;
|
||||
value.0 = true;
|
||||
}
|
||||
# Turn off the PCM volume, the second PCM (front speakers) uses
|
||||
# the second PCM control.
|
||||
open_control.1 {
|
||||
iface = MIXER;
|
||||
name = 'PCM Switch';
|
||||
index = 0;
|
||||
lock = true;
|
||||
preserve = true;
|
||||
value.0 = false;
|
||||
value.1 = false;
|
||||
}
|
||||
}
|
||||
|
||||
surround_plugin.YMFPCI {
|
||||
open_multi {
|
||||
device.0 = 0;
|
||||
subdevice.0 = 0;
|
||||
device.1 = 2;
|
||||
subdevice.1 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
surround_plugin.TRID4DWAVENX {
|
||||
open_multi {
|
||||
device.0 = 0;
|
||||
subdevice.0 = -1;
|
||||
device.1 = 0;
|
||||
subdevice.1 = -1;
|
||||
}
|
||||
# Enable rear path
|
||||
open_control.0 {
|
||||
iface = MIXER;
|
||||
name = 'Rear Path';
|
||||
index = subdevice1;
|
||||
lock = true;
|
||||
value.0 = true;
|
||||
}
|
||||
# Mute front volume
|
||||
open_control.1 {
|
||||
iface = MIXER;
|
||||
name = 'PCM Front Playback Volume';
|
||||
index = subdevice1;
|
||||
lock = true;
|
||||
value.0 = 0;
|
||||
value.1 = 0;
|
||||
}
|
||||
# Set reverb (rear) volume
|
||||
open_control.2 {
|
||||
iface = MIXER;
|
||||
name = 'PCM Reverb Playback Volume';
|
||||
index = subdevice1;
|
||||
lock = true;
|
||||
value.0 = 127;
|
||||
value.1 = 127;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue