aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-07-02 12:48:35 +0100
committerMark Brown <[email protected]>2020-07-02 17:18:50 +0100
commitc950e9fcc79b8fedd3126ede4dcd70add8ea5339 (patch)
tree13dbd15bacc983108fb477680d718901d89be77f /tools/perf/scripts/python
parentc8e22990d2e962f398207d94a2f1c493f4fa6713 (diff)
ASoC: Intel: bxt-da7219-max98357a: return -EINVAL on unrecognized speaker amplifier
Currently if the ctx->spkamp is not recognized an error message is reported but the code continues to set up the device with uninitialized variables such as the number of widgets. Fix this by returning -EINVAL for unrecognized speaker amplifier types. Fixes: e1435a1feb18 ("ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Pierre-Louis Bossart <[email protected]> Addresses-Coverity: ("Uninitialized scalar variable") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions