From ba1305a0b902a3a5db465086f8768a9ea26b9871 Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Fri, 3 Jul 2020 15:50:27 +0200 Subject: [PATCH] Added fix to ALSA/RAVENNA driver to revert changes done to mr_alsa_audio_pcm_capture_copy_internal() in ALSA/RAVENNA driver version 1.1.93. This fixes issue #14 --- 3rdparty/patches/ravenna-alsa-lkm-fixes.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/3rdparty/patches/ravenna-alsa-lkm-fixes.patch b/3rdparty/patches/ravenna-alsa-lkm-fixes.patch index 577eb50..6f50158 100644 --- a/3rdparty/patches/ravenna-alsa-lkm-fixes.patch +++ b/3rdparty/patches/ravenna-alsa-lkm-fixes.patch @@ -93,3 +93,14 @@ index 3d9debd..0ff2dfc 100644 return 0; } +@@ -1292,8 +1290,7 @@ static int mr_alsa_audio_pcm_playback_copy_internal( struct snd_pcm_substream *s + struct mr_alsa_audio_chip *chip = snd_pcm_substream_chip(substream); + struct snd_pcm_runtime *runtime = substream->runtime; + int chn = 0; +- //int interleaved = ((channel == -1 && runtime->channels > 1)? 1 : 0); +- int interleaved = runtime->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED || SNDRV_PCM_ACCESS_MMAP_INTERLEAVED ? 1 : 0; ++ int interleaved = ((channel == -1 && runtime->channels > 1)? 1 : 0); + unsigned int nb_logical_bits = snd_pcm_format_width(runtime->format); + unsigned int strideIn = snd_pcm_format_physical_width(runtime->format) >> 3; + unsigned int strideOut = snd_pcm_format_physical_width(SNDRV_PCM_FORMAT_S32_LE) >> 3; +