Re: [PATCH][next] ASoC: Intel: bxt-da7219-max98357a: return -EINVAL on unrecognized speaker amplifier

2020-07-03 Thread Mark Brown
On Thu, 2 Jul 2020 12:48:35 +0100, Colin King wrote: > 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

Re: [PATCH][next] ASoC: Intel: bxt-da7219-max98357a: return -EINVAL on unrecognized speaker amplifier

2020-07-02 Thread Pierre-Louis Bossart
On 7/2/20 6:48 AM, Colin King wrote: From: Colin Ian King 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

[PATCH][next] ASoC: Intel: bxt-da7219-max98357a: return -EINVAL on unrecognized speaker amplifier

2020-07-02 Thread Colin King
From: Colin Ian King 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. Addresses-Coverity: