mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
pcm: Fill sw_params proto field
Fill the new proto field introduced to sw_params with the current PCM protocol version. This makes tstamp_type evaluated properly in the kernel. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
de63b942ac
commit
55c5362521
3 changed files with 4 additions and 2 deletions
|
|
@ -5610,6 +5610,7 @@ int snd_pcm_sw_params_current(snd_pcm_t *pcm, snd_pcm_sw_params_t *params)
|
|||
SNDMSG("PCM not set up");
|
||||
return -EIO;
|
||||
}
|
||||
params->proto = SNDRV_PCM_VERSION;
|
||||
params->tstamp_mode = pcm->tstamp_mode;
|
||||
params->tstamp_type = pcm->tstamp_type;
|
||||
params->period_step = pcm->period_step;
|
||||
|
|
|
|||
|
|
@ -2257,6 +2257,7 @@ static int snd_pcm_sw_params_default(snd_pcm_t *pcm, snd_pcm_sw_params_t *params
|
|||
{
|
||||
assert(pcm && params);
|
||||
assert(pcm->setup);
|
||||
params->proto = SNDRV_PCM_VERSION;
|
||||
params->tstamp_mode = SND_PCM_TSTAMP_NONE;
|
||||
params->tstamp_type = pcm->tstamp_type;
|
||||
params->period_step = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue