Lines Matching refs:tdm_con
478 unsigned int tdm_con = 0; in mtk_dai_tdm_hw_params() local
513 tdm_con |= 1 << LRCK_INVERSE_SFT; in mtk_dai_tdm_hw_params()
516 tdm_con |= 1 << DELAY_DATA_SFT; in mtk_dai_tdm_hw_params()
517 tdm_con |= get_tdm_lrck_width(format) << LRCK_TDM_WIDTH_SFT; in mtk_dai_tdm_hw_params()
519 tdm_con |= 0 << DELAY_DATA_SFT; in mtk_dai_tdm_hw_params()
520 tdm_con |= 0 << LRCK_TDM_WIDTH_SFT; in mtk_dai_tdm_hw_params()
523 tdm_con |= 1 << LEFT_ALIGN_SFT; in mtk_dai_tdm_hw_params()
524 tdm_con |= get_tdm_wlen(format) << WLEN_SFT; in mtk_dai_tdm_hw_params()
525 tdm_con |= get_tdm_ch(out_channels_per_sdata) << CHANNEL_NUM_SFT; in mtk_dai_tdm_hw_params()
526 tdm_con |= get_tdm_channel_bck(format) << CHANNEL_BCK_CYCLES_SFT; in mtk_dai_tdm_hw_params()
527 regmap_write(afe->regmap, AFE_TDM_CON1, tdm_con); in mtk_dai_tdm_hw_params()
533 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
534 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
535 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
536 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
540 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
541 tdm_con |= TDM_CH_START_O32_O33 << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
542 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
543 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
547 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
548 tdm_con |= TDM_CH_START_O32_O33 << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
549 tdm_con |= TDM_CH_START_O34_O35 << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
550 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
554 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
555 tdm_con |= TDM_CH_START_O32_O33 << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
556 tdm_con |= TDM_CH_START_O34_O35 << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
557 tdm_con |= TDM_CH_START_O36_O37 << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
560 tdm_con = 0; in mtk_dai_tdm_hw_params()
563 tdm_con = TDM_CH_START_O30_O31 << ST_CH_PAIR_SOUT0_SFT; in mtk_dai_tdm_hw_params()
564 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT1_SFT; in mtk_dai_tdm_hw_params()
565 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT2_SFT; in mtk_dai_tdm_hw_params()
566 tdm_con |= TDM_CH_ZERO << ST_CH_PAIR_SOUT3_SFT; in mtk_dai_tdm_hw_params()
569 regmap_write(afe->regmap, AFE_TDM_CON2, tdm_con); in mtk_dai_tdm_hw_params()