1
0
Fork 0

MLK-19716-2 sound: asoc: fix quality select switch

Value read from register was shifted and compared
with a non-shifted val and the behaviour was that
it allways went on the default branch.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
pull/10/head
Cosmin-Gabriel Samoila 2018-10-02 16:02:43 +03:00 committed by Jason Liu
parent 60b3c73d73
commit 51c16110d5
1 changed files with 1 additions and 2 deletions

View File

@ -745,8 +745,7 @@ static inline int get_pdm_clk(struct fsl_micfil *micfil,
>> MICFIL_CTRL2_CICOSR_SHIFT);
regmap_read(micfil->regmap, REG_MICFIL_CTRL2, &ctrl2_reg);
qsel = ((ctrl2_reg & MICFIL_CTRL2_QSEL_MASK)
>> MICFIL_CTRL2_QSEL_SHIFT);
qsel = ctrl2_reg & MICFIL_CTRL2_QSEL_MASK;
switch (qsel) {
case MICFIL_HIGH_QUALITY: