mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -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
|
|
@ -1038,6 +1038,7 @@ int snd_pcm_dmix_open(snd_pcm_t **pcmp, const char *name,
|
|||
dmix->ipc_key = opts->ipc_key;
|
||||
dmix->ipc_perm = opts->ipc_perm;
|
||||
dmix->ipc_gid = opts->ipc_gid;
|
||||
dmix->tstamp_type = opts->tstamp_type;
|
||||
dmix->semid = -1;
|
||||
dmix->shmid = -1;
|
||||
|
||||
|
|
@ -1237,6 +1238,9 @@ pcm.name {
|
|||
# roundup
|
||||
# rounddown
|
||||
# auto (default)
|
||||
tstamp_type STR # timestamp type
|
||||
# STR can be one of the below strings :
|
||||
# default, gettimeofday, monotonic, monotonic_raw
|
||||
slave STR
|
||||
# or
|
||||
slave { # Slave definition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue