/* dai */ bool dai_on[MT8365_AFE_BACKEND_END]; void *dai_priv[MT8365_AFE_BACKEND_END];
};
staticinline u32 rx_frequency_palette(unsignedint fs)
{ /* * * A = (26M / fs) * 64 * B = 8125 / A * return = DEC2HEX(B * 2^23)
*/ switch (fs) { case FS_8000HZ: return 0x050000; case FS_11025HZ: return 0x06E400; case FS_12000HZ: return 0x078000; case FS_16000HZ: return 0x0A0000; case FS_22050HZ: return 0x0DC800; case FS_24000HZ: return 0x0F0000; case FS_32000HZ: return 0x140000; case FS_44100HZ: return 0x1B9000; case FS_48000HZ: return 0x1E0000; case FS_88200HZ: return 0x372000; case FS_96000HZ: return 0x3C0000; case FS_176400HZ: return 0x6E4000; case FS_192000HZ: return 0x780000; default: return 0x0;
}
}
staticinline u32 AutoRstThHi(unsignedint fs)
{ switch (fs) { case FS_8000HZ: return 0x36000; case FS_11025HZ: return 0x27000; case FS_12000HZ: return 0x24000; case FS_16000HZ: return 0x1B000; case FS_22050HZ: return 0x14000; case FS_24000HZ: return 0x12000; case FS_32000HZ: return 0x0D800; case FS_44100HZ: return 0x09D00; case FS_48000HZ: return 0x08E00; case FS_88200HZ: return 0x04E00; case FS_96000HZ: return 0x04800; case FS_176400HZ: return 0x02700; case FS_192000HZ: return 0x02400; default: return 0x0;
}
}
staticinline u32 AutoRstThLo(unsignedint fs)
{ switch (fs) { case FS_8000HZ: return 0x30000; case FS_11025HZ: return 0x23000; case FS_12000HZ: return 0x20000; case FS_16000HZ: return 0x18000; case FS_22050HZ: return 0x11000; case FS_24000HZ: return 0x0FE00; case FS_32000HZ: return 0x0BE00; case FS_44100HZ: return 0x08A00; case FS_48000HZ: return 0x07F00; case FS_88200HZ: return 0x04500; case FS_96000HZ: return 0x04000; case FS_176400HZ: return 0x02300; case FS_192000HZ: return 0x02000; default: return 0x0;
}
}
int mt8365_dai_i2s_register(struct mtk_base_afe *afe); int mt8365_dai_set_priv(struct mtk_base_afe *afe, int id, int priv_size, constvoid *priv_data);
int mt8365_afe_fs_timing(unsignedint rate);
void mt8365_afe_set_i2s_out_enable(struct mtk_base_afe *afe, bool enable); int mt8365_afe_set_i2s_out(struct mtk_base_afe *afe, unsignedint rate, int bit_width);
int mt8365_dai_adda_register(struct mtk_base_afe *afe); int mt8365_dai_enable_adda_on(struct mtk_base_afe *afe); int mt8365_dai_disable_adda_on(struct mtk_base_afe *afe);
int mt8365_dai_dmic_register(struct mtk_base_afe *afe);
int mt8365_dai_pcm_register(struct mtk_base_afe *afe);
int mt8365_dai_tdm_register(struct mtk_base_afe *afe);
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.