playback fix: reconfigure interface every time desktop audio/alsa tries to use the device

This commit is contained in:
serifpersia 2025-07-16 15:40:29 +02:00
parent de039d531b
commit 5b572c0df2
1 changed files with 6 additions and 8 deletions

View File

@ -556,15 +556,13 @@ static int tascam_pcm_hw_params(struct snd_pcm_substream *substream,
return -EINVAL;
}
/* Re-configure hardware only if the sample rate has changed */
if (tascam->current_rate != rate) {
/* Always re-configure hardware to ensure it's in a clean state */
err = us144mkii_configure_device_for_rate(tascam, rate);
if (err < 0) {
tascam->current_rate = 0;
return err;
}
tascam->current_rate = rate;
}
return 0;
}