linux_dsm_epyc7002/sound/soc/intel
Colin Ian King c950e9fcc7
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: e1435a1feb ("ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Addresses-Coverity: ("Uninitialized scalar variable")
Link: https://lore.kernel.org/r/20200702114835.37889-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-07-02 17:18:50 +01:00
..
atom ASoC: Intel: atom: fix 'defined but not used' warning 2020-07-01 20:58:30 +01:00
baytrail ASoC: Intel: baytrail: Fix register access 2020-05-12 14:20:29 +01:00
boards ASoC: Intel: bxt-da7219-max98357a: return -EINVAL on unrecognized speaker amplifier 2020-07-02 17:18:50 +01:00
common ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp 2020-07-01 19:28:28 +01:00
haswell mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
keembay ASoC: Intel: KeemBay: Fix header guard 2020-07-01 17:21:04 +01:00
skylake ASoC: Intel: Skylake: Replace zero-length array with flexible-array 2020-05-12 17:14:33 +01:00
Kconfig ASoC: Intel: Add makefiles and kconfig changes for KeemBay 2020-06-15 19:45:35 +01:00
Makefile ASoC: Intel: Add makefiles and kconfig changes for KeemBay 2020-06-15 19:45:35 +01:00