playback fix: reconfigure interface every time desktop audio/alsa tries to use the device
This commit is contained in:
parent
de039d531b
commit
5b572c0df2
|
|
@ -556,15 +556,13 @@ static int tascam_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Re-configure hardware only if the sample rate has changed */
|
/* Always re-configure hardware to ensure it's in a clean state */
|
||||||
if (tascam->current_rate != rate) {
|
|
||||||
err = us144mkii_configure_device_for_rate(tascam, rate);
|
err = us144mkii_configure_device_for_rate(tascam, rate);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
tascam->current_rate = 0;
|
tascam->current_rate = 0;
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
tascam->current_rate = rate;
|
tascam->current_rate = rate;
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue