mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-24 07:00:01 -05:00
Peter Zubaj <pzad@pobox.sk>:
- Added surround71 and side pcm definitions. - Added the support of side speakers on Audigy 2 ZS.
This commit is contained in:
parent
43cee7b8c1
commit
b9a25e2ac8
5 changed files with 202 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
cfg_files = front.conf rear.conf center_lfe.conf \
|
||||
cfg_files = front.conf rear.conf center_lfe.conf side.conf\
|
||||
surround40.conf surround41.conf \
|
||||
surround50.conf surround51.conf \
|
||||
iec958.conf
|
||||
surround71.conf iec958.conf
|
||||
|
||||
EXTRA_DIST = $(cfg_files)
|
||||
|
||||
|
|
|
|||
47
src/conf/pcm/side.conf
Normal file
47
src/conf/pcm/side.conf
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
#
|
||||
# Hardware output from side speakers
|
||||
#
|
||||
|
||||
pcm.!side {
|
||||
@args [ CARD DEV ]
|
||||
@args.CARD {
|
||||
type string
|
||||
default {
|
||||
@func getenv
|
||||
vars [
|
||||
ALSA_SIDE_CARD
|
||||
ALSA_PCM_CARD
|
||||
ALSA_CARD
|
||||
]
|
||||
default {
|
||||
@func refer
|
||||
name defaults.pcm.side.card
|
||||
}
|
||||
}
|
||||
}
|
||||
@args.DEV {
|
||||
type integer
|
||||
default {
|
||||
@func igetenv
|
||||
vars [
|
||||
ALSA_SIDE_DEVICE
|
||||
]
|
||||
default {
|
||||
@func refer
|
||||
name defaults.pcm.side.device
|
||||
}
|
||||
}
|
||||
}
|
||||
@func refer
|
||||
name {
|
||||
@func concat
|
||||
strings [
|
||||
"cards."
|
||||
{
|
||||
@func card_driver
|
||||
card $CARD
|
||||
}
|
||||
".pcm.side." $DEV ":CARD=" $CARD
|
||||
]
|
||||
}
|
||||
}
|
||||
56
src/conf/pcm/surround71.conf
Normal file
56
src/conf/pcm/surround71.conf
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
#
|
||||
# Hardware output from 7.1 speakers
|
||||
# Samples must be positioned:
|
||||
# chn0 - front left
|
||||
# chn1 - front right
|
||||
# chn2 - rear left
|
||||
# chn3 - rear right
|
||||
# chn4 - center
|
||||
# chn5 - lfe
|
||||
# chn7 - side left
|
||||
# chn8 - side right
|
||||
#
|
||||
|
||||
pcm.!surround71 {
|
||||
@args [ CARD DEV ]
|
||||
@args.CARD {
|
||||
type string
|
||||
default {
|
||||
@func getenv
|
||||
vars [
|
||||
ALSA_SURROUND71_CARD
|
||||
ALSA_PCM_CARD
|
||||
ALSA_CARD
|
||||
]
|
||||
default {
|
||||
@func refer
|
||||
name defaults.pcm.surround71.card
|
||||
}
|
||||
}
|
||||
}
|
||||
@args.DEV {
|
||||
type integer
|
||||
default {
|
||||
@func igetenv
|
||||
vars [
|
||||
ALSA_SURROUND71_DEVICE
|
||||
]
|
||||
default {
|
||||
@func refer
|
||||
name defaults.pcm.surround71.device
|
||||
}
|
||||
}
|
||||
}
|
||||
@func refer
|
||||
name {
|
||||
@func concat
|
||||
strings [
|
||||
"cards."
|
||||
{
|
||||
@func card_driver
|
||||
card $CARD
|
||||
}
|
||||
".pcm.surround71." $DEV ":CARD=" $CARD
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue