android_kernel_oneplus_msm8998/sound/soc
Colin Ian King 2792933670 ASoC: sgtl5000: avoid division by zero if lo_vag is zero
[ Upstream commit 9ab708aef61f5620113269a9d1bdb1543d1207d0 ]

In the case where lo_vag <= SGTL5000_LINE_OUT_GND_BASE, lo_vag
is set to zero and later vol_quot is computed by dividing by
lo_vag causing a division by zero error.  Fix this by avoiding
a zero division and set vol_quot to zero in this specific case
so that the lowest setting for i is correctly set.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-25 15:53:49 +01:00
..
adi
atmel
au1x
bcm
blackfin
cirrus
codecs ASoC: sgtl5000: avoid division by zero if lo_vag is zero 2019-11-25 15:53:49 +01:00
davinci ASoC: ti: davinci-mcasp: Correct slot_width posed constraint 2019-09-06 10:18:06 +02:00
dwc
fsl ASoC: fsl: Fix of-node refcount unbalance in fsl_ssi_probe_from_dt() 2019-10-05 12:27:38 +02:00
generic
intel ASoC: Intel: Fix use of potentially uninitialized variable 2019-10-05 12:27:53 +02:00
jz4740
kirkwood
mediatek
mxs
nuc900
omap ASoC: omap-dmic: Add pm_qos handling to avoid overruns with CPU_IDLE 2018-12-17 21:55:10 +01:00
pxa
qcom
rockchip ASoc: rockchip: i2s: Fix RPM imbalance 2019-11-10 11:21:06 +01:00
samsung
sh ASoC: rsnd: Reinitialize bit clock inversion flag for every format setting 2019-10-29 09:13:26 +01:00
sirf ASoC: sirf: Fix potential NULL pointer dereference 2018-09-05 09:18:39 +02:00
spear ASoC: spear: fix error return code in spdif_in_probe() 2018-11-10 07:41:40 -08:00
sti
sunxi
tegra
txx9
ux500
xtensa
zte
Kconfig
Makefile
soc-ac97.c
soc-cache.c
soc-compress.c
soc-core.c ASoC: dapm: Recalculate audio map forcely when card instantiated 2018-12-17 21:55:10 +01:00
soc-dapm.c ASoC: dapm: change snprintf to scnprintf for possible overflow 2019-03-23 08:44:19 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: dmaengine: Make the pcm->name equal to pcm->id if the name is not set 2019-10-05 12:27:50 +02:00
soc-io.c
soc-jack.c
soc-ops.c
soc-pcm.c ASoC: dpcm: Properly initialise hw->rate_max 2019-11-25 15:53:46 +01:00
soc-topology.c ASoC: topology: free created components in tplg load error 2019-03-23 08:44:33 +01:00
soc-utils.c