audio: dmic: fix compile error on arm gcc 8

Fixes invalid conversion (channel) to enum PDM LR.
GCC Permissive Error

Signed-off-by: Max van Kessel <max_van_kessel@msn.com>
This commit is contained in:
Max van Kessel 2021-02-14 22:13:06 +01:00 committed by Ioannis Glaropoulos
commit 5dc1c082d7

View file

@ -215,7 +215,7 @@ static inline void dmic_parse_channel_map(uint32_t channel_map_lo,
channel_map >>= ((channel & BIT_MASK(3)) * 4U);
*pdm = (channel >> 1) & BIT_MASK(3);
*lr = channel & BIT(0);
*lr = (enum pdm_lr) (channel & BIT(0));
}
/**