Add default dmix rate and format definitions in alsa.conf

Added defaults.pcm.dmix_format and dmix_rate definitions to
alsa.conf.  They are referred as the default values of standard
dmix/dsnoop PCM.
This commit is contained in:
Takashi Iwai 2006-06-16 19:27:35 +02:00
parent 9984a0a4b4
commit da17b50892
3 changed files with 18 additions and 4 deletions

View file

@ -58,6 +58,8 @@ defaults.pcm.ipc_key 5678293
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
defaults.pcm.dmix_max_periods 0
defaults.pcm.dmix_rate 48000
defaults.pcm.dmix_format S16_LE
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card

View file

@ -18,11 +18,17 @@ pcm.!dmix {
}
@args.FORMAT {
type string
default S16_LE
default {
@func refer
name defaults.pcm.dmix_format
}
}
@args.RATE {
type integer
default 48000
default {
@func refer
name defaults.pcm.dmix_rate
}
}
type dmix
ipc_key {

View file

@ -18,11 +18,17 @@ pcm.!dsnoop {
}
@args.FORMAT {
type string
default S16
default {
@func refer
name defaults.pcm.dmix_format
}
}
@args.RATE {
type integer
default 48000
default {
@func refer
name defaults.pcm.dmix_rate
}
}
type dsnoop
ipc_key {