Skip to contentSkip to conversation

SND_SOC_DAIFMT_NB_NF meaning

DISCUSSION Troy Kisky 2 participants 2 messages Dec 17, 2008

lore
Share & tools
lore

Troy Kisky

author
#0 lore raw

A quick question here. Does SND_SOC_DAIFMT_NB_NF have a standard meaning or does it depend on what mode your in (I2S, DSP_A, right just). From looking at the sources, SND_SOC_DAIFMT_NB_NF usually means that data is valid on the rising BCLK and start of frame is rising edge if DSP mode. The reason I ask, is that I'd like to pass the same flags to the codec and the cpu_dai and have them agree with the interpretation.

Thanks
Troy

#1 lore raw
Quoted 4 lines · Troy Kisky

A quick question here. Does SND_SOC_DAIFMT_NB_NF have a standard meaning or does it depend on what mode your in (I2S, DSP_A, right just). From looking at the sources, SND_SOC_DAIFMT_NB_NF usually means that data is valid on the rising BCLK and start of frame is rising edge if DSP mode.

It means whatever is normal for the mode the bus is in (I2S, DSP_A and so on) - hence the name.

Quoted 2 lines

The reason I ask, is that I'd like to pass the same flags to the codec and the cpu_dai and have them agree with the interpretation.

That is the intention. Anything that's doing something else is buggy.