From: shihong.zheng Date: Wed, 21 Oct 2020 07:56:25 +0000 (+0800) Subject: amstream: fix vmx hls playback mosaic. [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f0be229c30a510d85ec3191873dc474dc1d2346;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git amstream: fix vmx hls playback mosaic. [1/1] PD#RSP-1143 Problem: streambuf size changed in tvp mode. Solution: return when use external streambuf. Verify: S905X4 Change-Id: If7d2c20822559d54a3a30943be96727875f82383 Signed-off-by: shihong.zheng --- diff --git a/drivers/stream_input/amports/amstream.c b/drivers/stream_input/amports/amstream.c index 6b81f1a..fc7092e 100644 --- a/drivers/stream_input/amports/amstream.c +++ b/drivers/stream_input/amports/amstream.c @@ -533,8 +533,9 @@ EXPORT_SYMBOL(get_audio_info); static void amstream_change_vbufsize(struct port_priv_s *priv, struct stream_buf_s *pvbuf) { - if (pvbuf->buf_start != 0) { - pr_info("streambuf is alloced before\n"); + if (pvbuf->buf_start != 0 || pvbuf->ext_buf_addr != 0) { + pr_info("streambuf is alloced, buf_start 0x%lx, extbuf 0x%lx\n", + pvbuf->buf_start, pvbuf->ext_buf_addr); return; } if (priv->port->is_4k) {