xpp: card_pri: fix clocking initialization

Fix PCM synchronization between PRI module and the main board.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
Tzafrir Cohen 2017-05-21 13:16:08 +03:00
parent d4ac65d0c1
commit e2ee1eb30b

View File

@ -708,7 +708,7 @@ static void set_clocking(xpd_t *xpd)
/* Now set it */ /* Now set it */
if (best_xpd if (best_xpd
&& ((struct PRI_priv_data *)(best_xpd->priv))->clock_source == 0) { && ((struct PRI_priv_data *)(best_xpd->priv))->clock_source == 0) {
__u8 reg_pc_init[] = { VAL_PC_GPI, VAL_PC_GPI, VAL_PC_GPI }; __u8 reg_pc_init[] = { VAL_PC_SYPR, VAL_PC_GPI, VAL_PC_GPI };
for (i = 0; i < ARRAY_SIZE(reg_pc_init); i++) { for (i = 0; i < ARRAY_SIZE(reg_pc_init); i++) {
__u8 reg_pc = reg_pc_init[i]; __u8 reg_pc = reg_pc_init[i];