commit
3498336239
|
@ -5,6 +5,8 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
clippy-test:
|
clippy-test:
|
||||||
|
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -301,12 +301,8 @@ impl Device {
|
||||||
return Err(err.into());
|
return Err(err.into());
|
||||||
}
|
}
|
||||||
|
|
||||||
let sample_rates = if min_rate == max_rate {
|
let sample_rates = if min_rate == max_rate ||
|
||||||
vec![(min_rate, max_rate)]
|
alsa::snd_pcm_hw_params_test_rate(handle, hw_params.0, min_rate + 1, 0) == 0
|
||||||
} else if alsa::snd_pcm_hw_params_test_rate(handle,
|
|
||||||
hw_params.0,
|
|
||||||
min_rate + 1,
|
|
||||||
0) == 0
|
|
||||||
{
|
{
|
||||||
vec![(min_rate, max_rate)]
|
vec![(min_rate, max_rate)]
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue