Skip to content

Commit 5dc1c08

Browse files
maxvankesselioannisg
authored andcommitted
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 <[email protected]>
1 parent 6e0ef1c commit 5dc1c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/audio/dmic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static inline void dmic_parse_channel_map(uint32_t channel_map_lo,
215215
channel_map >>= ((channel & BIT_MASK(3)) * 4U);
216216

217217
*pdm = (channel >> 1) & BIT_MASK(3);
218-
*lr = channel & BIT(0);
218+
*lr = (enum pdm_lr) (channel & BIT(0));
219219
}
220220

221221
/**

0 commit comments

Comments
 (0)