diff options
| author | Colin Ian King <colin.king@canonical.com> | 2018-09-06 11:41:52 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2018-09-06 12:07:39 +0100 |
| commit | 9ab708aef61f5620113269a9d1bdb1543d1207d0 (patch) | |
| tree | b281c5a2c65e29a2d4dddddc65745a7928229029 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ASoC: rsnd: don't use %p for dev_dbg() (diff) | |
| download | linux-9ab708aef61f5620113269a9d1bdb1543d1207d0.tar.gz linux-9ab708aef61f5620113269a9d1bdb1543d1207d0.zip | |
ASoC: sgtl5000: avoid division by zero if lo_vag is zero
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
