Fix to patch for corruption in read-write mode to preserve playback buffer cleanup (mute) on first IO start but to avoid it at subsequent

This commit is contained in:
Andrea Bondavalli 2021-02-05 12:26:12 +01:00
parent 77cf7bdb28
commit af25380763

View File

@ -14,13 +14,14 @@ index 3d9debd..cc6240e 100644
index 5a90eca..8023708 100644 index 5a90eca..8023708 100644
--- a/driver/manager.c --- a/driver/manager.c
+++ b/driver/manager.c +++ b/driver/manager.c
@@ -279,7 +279,7 @@ @@ -271,6 +271,10 @@
} return false;
else {
printk(KERN_DEBUG "starting playback I/O\n"); MTAL_DP("MergingRAVENNAAudioDriver::startIO\n");
- MuteOutputBuffer(self); + if (is_playback && self->m_bIsPlaybackIO)
+ //MuteOutputBuffer(self); + return true;
self->m_bIsPlaybackIO = true; + if (!is_playback && self->m_bIsRecordingIO)
} + return true;
if (!is_playback) {
printk(KERN_DEBUG "starting capture I/O\n");