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:
parent
6e0ef1cdd9
commit
5dc1c082d7
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue