Skip to contentSkip to conversation

ASoC: ssm2518: bug in ssm2518_set_tdm_slot

DISCUSSION Axel Lin 2 participants 2 messages Jun 10, 2013

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

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.

#1 lore raw
Quoted 9 lines · Axel Lin

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.

Ah, damm, the second should be rx_mask. Do you want to sent a fix, or want me to do it?

Thanks,
- Lars