[alsa-devel] [PATCH RESEND] ASoC: rt1011: set tx/rx slots from tx/rx_mask in TDM case

Mark Brown broonie at kernel.org
Wed Oct 9 16:15:22 CEST 2019


On Tue, Oct 08, 2019 at 09:32:05AM +0000, Shuming [范書銘] wrote:

> +		if (first_bit == 0 || first_bit == 2 ||
> +			first_bit == 4 || first_bit == 6) {


> +		} else {
> +		}

This would be more idiomatically written as a switch statement, as would
the equivalent stuff on the TX side.
-------------- 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/20191009/4bec2060/attachment.sig>


More information about the Alsa-devel mailing list