amstream: fix vmx hls playback mosaic. [1/1]
authorshihong.zheng <shihong.zheng@amlogic.com>
Wed, 21 Oct 2020 07:56:25 +0000 (15:56 +0800)
committerShihong Zheng <shihong.zheng@amlogic.com>
Wed, 21 Oct 2020 07:58:51 +0000 (00:58 -0700)
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 <shihong.zheng@amlogic.com>
drivers/stream_input/amports/amstream.c

index 6b81f1aeffcfe01e525f13d8f304693bae0d3f68..fc7092e1eb67d8e50491f23f5fd9f5ca0c98a854 100644 (file)
@@ -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) {