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