diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-08-17 08:21:00 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-08-17 08:21:00 +0000 |
commit | 0664e0906c39893225492bb0e8f2cff39df8a357 (patch) | |
tree | ef732e0ba9918ae9932eaf5ef795da100063cdbd /sys | |
parent | 9841a6cd3710589e1ef6519cc0ce6053fd8efebc (diff) |
drm/amd/display: Only enable audio if speaker allocation exists
From Alvin Lee
f9420bfa29f9ece0b02a5435ae95f1a48bc97723 in linux 4.19.y/4.19.67
6ac25e6d5b2fbf251e9fa2f4131d42c815b43867 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/core/dc_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c b/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c index 60ccfa833ab..53c70eea750 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c +++ b/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c @@ -1956,7 +1956,7 @@ enum dc_status resource_map_pool_resources( /* TODO: Add check if ASIC support and EDID audio */ if (!stream->sink->converter_disable_audio && dc_is_audio_capable_signal(pipe_ctx->stream->signal) && - stream->audio_info.mode_count) { + stream->audio_info.mode_count && stream->audio_info.flags.all) { pipe_ctx->stream_res.audio = find_first_free_audio( &context->res_ctx, pool, pipe_ctx->stream_res.stream_enc->id); |