From: Indrajit Das <[email protected]>

Change-Id: Ib61bf88eb16da50017944556995d3789735aea0c
Signed-off-by: Indrajit Das <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Acked-by: Harry Wentland <[email protected]>
---
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c 
b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index 6202b4b3e597..50b0385bffce 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -1278,7 +1278,7 @@ static struct audio *find_first_free_audio(
 {
        int i;
        for (i = 0; i < pool->audio_count; i++) {
-               if (res_ctx->is_audio_acquired[i] == false) {
+               if ((res_ctx->is_audio_acquired[i] == false) && 
(res_ctx->is_stream_enc_acquired[i] == true)) {
                        return pool->audios[i];
                }
        }
-- 
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to