tdm-slot.txt 1.1 KB

1234567891011121314151617181920212223242526272829
  1. TDM slot:
  2. This specifies audio DAI's TDM slot.
  3. TDM slot properties:
  4. dai-tdm-slot-num : Number of slots in use.
  5. dai-tdm-slot-width : Width in bits for each slot.
  6. dai-tdm-slot-tx-mask : Transmit direction slot mask, optional
  7. dai-tdm-slot-rx-mask : Receive direction slot mask, optional
  8. For instance:
  9. dai-tdm-slot-num = <2>;
  10. dai-tdm-slot-width = <8>;
  11. dai-tdm-slot-tx-mask = <0 1>;
  12. dai-tdm-slot-rx-mask = <1 0>;
  13. And for each spcified driver, there could be one .of_xlate_tdm_slot_mask()
  14. to specify a explicit mapping of the channels and the slots. If it's absent
  15. the default snd_soc_of_xlate_tdm_slot_mask() will be used to generating the
  16. tx and rx masks.
  17. For snd_soc_of_xlate_tdm_slot_mask(), the tx and rx masks will use a 1 bit
  18. for an active slot as default, and the default active bits are at the LSB of
  19. the masks.
  20. The explicit masks are given as array of integers, where the first
  21. number presents bit-0 (LSB), second presents bit-1, etc. Any non zero
  22. number is considered 1 and 0 is 0. snd_soc_of_xlate_tdm_slot_mask()
  23. does not do anything, if either mask is set non zero value.