mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-08 13:30:03 -05:00
Fixed right rate find
This commit is contained in:
parent
41499be5ab
commit
a7ffd8e399
1 changed files with 1 additions and 1 deletions
|
|
@ -410,7 +410,7 @@ int snd_pcm_plug_slave_rate(unsigned int rate, snd_pcm_params_info_t *slave_info
|
|||
continue;
|
||||
if (snd_pcm_rates[k].rate < rate) {
|
||||
rate1 = snd_pcm_rates[k].rate;
|
||||
} else if (snd_pcm_rates[k].rate > rate) {
|
||||
} else if (snd_pcm_rates[k].rate >= rate) {
|
||||
rate2 = snd_pcm_rates[k].rate;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue