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
parent
60b3c73d73
commit
51c16110d5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue