[PATCH] ASoC: codecs: lpass-wsa-macro: make sure array index is set

Mark Brown broonie at kernel.org
Fri Apr 30 13:23:19 CEST 2021


On Thu, Apr 29, 2021 at 10:36:42AM -0700, trix at redhat.com wrote:

> The happens because 'ec_tx' is never initialized and there is
> no default in the switch statement that sets ec_tx.  Because there
> are only two cases for the switch, convert it to an if-else.

Add a default case that errors, that way if someone adds a new option
things are less painful.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210430/af1443cd/attachment.sig>


More information about the Alsa-devel mailing list