Lines Matching refs:tdm_con
527 unsigned int tdm_con = 0; in mtk_dai_tdm_hw_params() local
563 tdm_con |= 1 << LRCK_INVERSE_SFT; in mtk_dai_tdm_hw_params()
566 tdm_con |= 1 << DELAY_DATA_SFT; in mtk_dai_tdm_hw_params()
567 tdm_con |= get_tdm_lrck_width(format) << LRCK_TDM_WIDTH_SFT; in mtk_dai_tdm_hw_params()
569 tdm_con |= 1 << DELAY_DATA_SFT; in mtk_dai_tdm_hw_params()
570 tdm_con |= 0 << LRCK_TDM_WIDTH_SFT; in mtk_dai_tdm_hw_params()
572 tdm_con |= 0 << DELAY_DATA_SFT; in mtk_dai_tdm_hw_params()
573 tdm_con |= 0 << LRCK_TDM_WIDTH_SFT; in mtk_dai_tdm_hw_params()
576 tdm_con |= 1 << LEFT_ALIGN_SFT; in mtk_dai_tdm_hw_params()
577 tdm_con |= get_tdm_wlen(format) << WLEN_SFT; in mtk_dai_tdm_hw_params()
578 tdm_con |= get_tdm_ch(out_channels_per_sdata) << CHANNEL_NUM_SFT; in mtk_dai_tdm_hw_params()
579 tdm_con |= get_tdm_channel_bck(format) << CHANNEL_BCK_CYCLES_SFT; in mtk_dai_tdm_hw_params()
580 regmap_write(afe->regmap, AFE_TDM_CON1, tdm_con); in mtk_dai_tdm_hw_params()
586 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
587 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
588 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
589 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
593 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
594 tdm_con |= TDM_CH_START_O32_O33 << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
595 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
596 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
600 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
601 tdm_con |= TDM_CH_START_O32_O33 << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
602 tdm_con |= TDM_CH_START_O34_O35 << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
603 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
607 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
608 tdm_con |= TDM_CH_START_O32_O33 << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
609 tdm_con |= TDM_CH_START_O34_O35 << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
610 tdm_con |= TDM_CH_START_O36_O37 << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
613 tdm_con = 0; in mtk_dai_tdm_hw_params()
616 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
617 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
618 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
619 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
622 regmap_write(afe->regmap, AFE_TDM_CON2, tdm_con); in mtk_dai_tdm_hw_params()