build/patch/kernel/meson64-dev/4-0016-ASOC-meson-fix-build-error-under-5.3.y.patch
Zhang Ning f49c6f8e2b [meson64-dev] update to 5.3 and refresh all patches
1: update meson 4K support patches:
2, HDMI i2s improvement patches:
3, update vdec patches:
4, update meson audio patches:
5, add meson crypto engine driver
6, remove disabled patches:
7  remove unknown patch or no need
8, remove merged patches:
9, remove unknown patches from khadas should be covered by patches set 2
10, rename patches for better grouping
11, update kernel config accordingly

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-08-15 08:48:52 +08:00

46 lines
1.6 KiB
Diff

From 475139057d96fd8c5447d22527be1551f9ed398b Mon Sep 17 00:00:00 2001
From: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
Date: Fri, 9 Aug 2019 11:28:03 +0800
Subject: [PATCH 16/16] ASOC: meson fix build error under 5.3.y
Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
---
sound/soc/meson-gx/aiu-i2s.c | 3 ++-
sound/soc/meson-gx/aiu-spdif.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/sound/soc/meson-gx/aiu-i2s.c b/sound/soc/meson-gx/aiu-i2s.c
index 450f1d20a1d6..21e335498112 100644
--- a/sound/soc/meson-gx/aiu-i2s.c
+++ b/sound/soc/meson-gx/aiu-i2s.c
@@ -313,9 +313,10 @@ static int meson_aiu_i2s_dma_new(struct snd_soc_pcm_runtime *rtd)
struct snd_card *card = rtd->card->snd_card;
size_t size = meson_aiu_i2s_dma_hw.buffer_bytes_max;
- return snd_pcm_lib_preallocate_pages_for_all(rtd->pcm,
+ snd_pcm_lib_preallocate_pages_for_all(rtd->pcm,
SNDRV_DMA_TYPE_DEV,
card->dev, size, size);
+ return 0;
}
#define AIU_CLK_CTRL_I2S_DIV_EN BIT(0)
diff --git a/sound/soc/meson-gx/aiu-spdif.c b/sound/soc/meson-gx/aiu-spdif.c
index 17cfe134e8f7..a54544d8f065 100644
--- a/sound/soc/meson-gx/aiu-spdif.c
+++ b/sound/soc/meson-gx/aiu-spdif.c
@@ -332,9 +332,10 @@ static int meson_aiu_spdif_dma_new(struct snd_soc_pcm_runtime *rtd)
struct snd_card *card = rtd->card->snd_card;
size_t size = meson_aiu_spdif_dma_hw.buffer_bytes_max;
- return snd_pcm_lib_preallocate_pages_for_all(rtd->pcm,
+ snd_pcm_lib_preallocate_pages_for_all(rtd->pcm,
SNDRV_DMA_TYPE_DEV,
card->dev, size, size);
+ return 0;
}
#define AIU_CLK_CTRL_958_DIV_EN BIT(1)
--
2.20.1