drm/amd/display: Only enable audio if speaker allocation exists
Alvin Lee authored

[Why]

In dm_helpers_parse_edid_caps, there is a corner case where no speakers
can be allocated even though the audio mode count is greater than 0.
Enabling audio when no speaker allocations exists can cause issues in
the video stream.

[How]

Add a check to not enable audio unless one or more speaker allocations
exist (since doing this can cause issues in the video stream).
Signed-off-by: default avatarAlvin Lee <alvin.lee2@amd.com>
Reviewed-by: default avatarJun Lei <Jun.Lei@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
6ac25e6d
Name Last commit Last update
Documentation Merge commit 'refs/for-upstream/mali-dp' of git://linux-arm.org/linux-ld into drm-next
LICENSES LICENSES: Rename other to deprecated
arch Merge branch 'topic/remove-fbcon-notifiers' into drm-misc-next
block blk-mq: remove WARN_ON(!q->elevator) from blk_mq_sched_free_requests
certs treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 36
crypto Merge tag 'spdx-5.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
drivers drm/amd/display: Only enable audio if speaker allocation exists
fs Merge tag 'gfs2-v5.2.fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2
include drm/amdgpu: extend AMDGPU_CTX_PRIORITY_NORMAL comment
init Merge tag 'char-misc-5.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
ipc treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
kernel Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
lib lib/genalloc: introduce chunk owners
mm Merge branch 'vmwgfx-next' of git://people.freedesktop.org/~thomash/linux into drm-next
net Merge tag 'spdx-5.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
samples Merge tag 'spdx-5.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
scripts scripts/decode_stacktrace.sh: prefix addr2line with $CROSS_COMPILE
security Smack: Restore the smackfsdef mount option and add missing prefixes
sound Merge tag 'sound-5.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
tools mm/devm_memremap_pages: fix final page put race
usr user/Makefile: Fix typo and capitalization in comment section
virt treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333
.clang-format Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.