pcm config files cleanups and name hint extension

- remove device 0/subdevice 0 from configuration files (it's default)
- name_hint
  - fixed parsing slaves
  - obtain device numbers directly from 'type hw' configurations to
    avoid poluting of configurations scripts with hint.device lines
This commit is contained in:
Jaroslav Kysela 2006-10-12 16:27:23 +02:00
parent b40a116b8e
commit d7916981bf
57 changed files with 79 additions and 177 deletions

View file

@ -13,14 +13,12 @@ Audigy.pcm.front.0 {
slave.pcm {
type hw
card $CARD
device 0
}
hooks.0 {
type ctl_elems
hook_args [
{
interface PCM
device 0
name "EMU10K1 PCM Send Volume"
index { @func private_pcm_subdevice }
lock true
@ -37,7 +35,6 @@ Audigy.pcm.front.0 {
}
{
interface PCM
device 0
name "EMU10K1 PCM Send Routing"
index { @func private_pcm_subdevice }
lock true
@ -55,7 +52,6 @@ Audigy.pcm.front.0 {
]
}
}
<confdir:pcm/rear.conf>
@ -69,14 +65,12 @@ Audigy.pcm.rear.0 {
slave.pcm {
type hw
card $CARD
device 0
}
hooks.0 {
type ctl_elems
hook_args [
{
interface PCM
device 0
name "EMU10K1 PCM Send Volume"
index { @func private_pcm_subdevice }
lock true
@ -106,14 +100,12 @@ Audigy.pcm.center_lfe.0 {
slave.pcm {
type hw
card $CARD
device 0
}
hooks.0 {
type ctl_elems
hook_args [
{
interface PCM
device 0
name "EMU10K1 PCM Send Volume"
index { @func private_pcm_subdevice }
lock true
@ -130,7 +122,6 @@ Audigy.pcm.center_lfe.0 {
}
{
interface PCM
device 0
name "EMU10K1 PCM Send Routing"
index { @func private_pcm_subdevice }
lock true
@ -257,7 +248,6 @@ Audigy.pcm.iec958.0 {
slave.pcm {
type hw
card $CARD
device 0
}
hooks.0 {
@ -266,7 +256,6 @@ Audigy.pcm.iec958.0 {
{
interface PCM
name "IEC958 Playback Default"
device 0
lock true
preserve true
optional true
@ -288,7 +277,6 @@ Audigy.pcm.iec958.0 {
}
{
interface PCM
device 0
name "EMU10K1 PCM Send Volume"
index { @func private_pcm_subdevice }
lock true
@ -305,7 +293,6 @@ Audigy.pcm.iec958.0 {
}
{
interface PCM
device 0
name "EMU10K1 PCM Send Routing"
index { @func private_pcm_subdevice }
lock true