diff options
| author | Colin Ian King <colin.king@canonical.com> | 2018-09-06 11:41:52 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-25 15:53:49 +0100 |
| commit | 2792933670dd893796b6f159dc28c5b7d08d915b (patch) | |
| tree | fed57dbfcbdafebe877cac973d15e41b7f54339e /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | adb5b0917f69970e48db91256e95f3df457388bb (diff) | |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
