https://github.com/torvalds/linux
Revision 83f8bf4b837b0e3417f0e5c717a43fcf71ecc992 authored by Thierry Reding on 16 April 2019, 12:43:26 UTC, committed by Thierry Reding on 17 April 2019, 07:28:43 UTC
The audio configuration is only valid if the HDMI codec has been
properly set up. Do not attempt to set up audio before that happens
because it causes a division by zero.

Note that this is only problematic on Tegra20 and Tegra30. Later chips
implement the division instructions which return zero when dividing by
zero and don't throw an exception.

Fixes: db5adf4d6dce ("drm/tegra: hdmi: Fix audio to work with any pixel clock rate")
Reported-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent 8bbad1b
History
Tip revision: 83f8bf4b837b0e3417f0e5c717a43fcf71ecc992 authored by Thierry Reding on 16 April 2019, 12:43:26 UTC
drm/tegra: hdmi: Setup audio only if configured
Tip revision: 83f8bf4
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 13.9 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.5 KB
.mailmap -rw-r--r-- 10.8 KB
COPYING -rw-r--r-- 423 bytes
CREDITS -rw-r--r-- 96.9 KB
Kbuild -rw-r--r-- 1.5 KB
Kconfig -rw-r--r-- 563 bytes
MAINTAINERS -rw-r--r-- 490.8 KB
Makefile -rw-r--r-- 58.4 KB
README -rw-r--r-- 727 bytes

README

back to top