ASoC: ssm2518: bug in ssm2518_set_tdm_slot
ASoC: ssm2518: bug in ssm2518_set_tdm_slot
The code in ssm2518_set_tdm_slot looks wrong:
if (tx_mask == 0 || tx_mask != 0)
return -EINVAL;So ssm2518_set_tdm_slot() always returns error.
Quoted 9 lines · Axel Lin
ASoC: ssm2518: bug in
ssm2518_set_tdm_slotThe code in
ssm2518_set_tdm_slotlooks wrong:if (tx_mask == 0 || tx_mask != 0) return -EINVAL;So
ssm2518_set_tdm_slot()always returns error.
Ah, damm, the second should be rx_mask. Do you want to sent a fix, or want me to do it?
Thanks,
- Lars