mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
pcm_rate fix
This commit is contained in:
parent
3126678e72
commit
87f9071c08
3 changed files with 9 additions and 5 deletions
|
|
@ -279,8 +279,8 @@ static int snd_pcm_rate_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *
|
|||
_snd_pcm_hw_param_set(sparams, SND_PCM_HW_PARAM_SUBFORMAT,
|
||||
SND_PCM_SUBFORMAT_STD, 0);
|
||||
}
|
||||
_snd_pcm_hw_param_set(sparams, SND_PCM_HW_PARAM_RATE,
|
||||
rate->srate, 0);
|
||||
_snd_pcm_hw_param_minmax(sparams, SND_PCM_HW_PARAM_RATE,
|
||||
rate->srate, 0, rate->srate + 1, -1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue