trxcon/sched_mframe.c: do not hard-code lchan combinations
commit08a1990272ee376a0b65101a0e9e4223cd38a5b6
authorVadim Yanitskiy <axilirator@gmail.com>
Tue, 28 May 2019 12:19:00 +0000 (28 19:19 +0700)
committerVadim Yanitskiy <axilirator@gmail.com>
Tue, 28 May 2019 12:20:38 +0000 (28 19:20 +0700)
tree0185d9e64beb20ebd0a5597509abf947b63e387c
parent189da79ebb6c3f3485498100f69d4045d6cd1f96
trxcon/sched_mframe.c: do not hard-code lchan combinations

Having magic pre-calculated hex-masks gives one quite high chances
to shoot oneself in the foot, and decreases readability in general.

Let's do this pre-calculation during the compilation process, so
it's much easier to read, extend and spot potential bugs.

Change-Id: If945b3654e35c83fc0220fdd6d99c1c7a0503386
src/host/trxcon/sched_mframe.c