mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
pcm: dmix: fix sw_params handling of timestamp types in direct plugins
In pcms using direct plugins (dmix/dsnoop/dshare), the timestamp type could be different from the terminating hw plugin, then the kernel driver. Be sure such pcms have plugins using consistently the same timestamp type. signed-off-by: Sylvain Bertrand <sylvain.bertrand@legeek.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
fb48ad9e4f
commit
d12df1dc9c
9 changed files with 60 additions and 1 deletions
|
|
@ -69,6 +69,7 @@ defaults.pcm.minperiodtime 5000 # in us
|
|||
defaults.pcm.ipc_key 5678293
|
||||
defaults.pcm.ipc_gid audio
|
||||
defaults.pcm.ipc_perm 0660
|
||||
defaults.pcm.tstamp_type "default"
|
||||
defaults.pcm.dmix.max_periods 0
|
||||
defaults.pcm.dmix.channels 2
|
||||
defaults.pcm.dmix.rate 48000
|
||||
|
|
|
|||
|
|
@ -56,6 +56,10 @@ pcm.!dmix {
|
|||
@func refer
|
||||
name defaults.pcm.ipc_perm
|
||||
}
|
||||
tstamp_type {
|
||||
@func refer
|
||||
name defaults.pcm.tstamp_type
|
||||
}
|
||||
slave {
|
||||
pcm {
|
||||
type hw
|
||||
|
|
|
|||
|
|
@ -49,6 +49,10 @@ pcm.!dsnoop {
|
|||
@func refer
|
||||
name defaults.pcm.ipc_perm
|
||||
}
|
||||
tstamp_type {
|
||||
@func refer
|
||||
name defaults.pcm.tstamp_type
|
||||
}
|
||||
slave {
|
||||
pcm {
|
||||
type hw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue