Hi,
the current ALSA driver for SPORT/I2S4 just support slave mode, so clock and frame sync are generated externally by the audio codec.
How do I enable CBS_CFS mode so the SPORT becomes clock and framesync master ?
Regards,
Sebastian
ADSP-SC594
Production
Reaching speeds of up to 1 GHz, the ADSP-SC59x processors are members of the SHARC® family of products. The ADSP-SC59x processor is a dual-SHARC+® core...
Datasheet
ADSP-SC594 on Analog.com
Hi,
the current ALSA driver for SPORT/I2S4 just support slave mode, so clock and frame sync are generated externally by the audio codec.
How do I enable CBS_CFS mode so the SPORT becomes clock and framesync master ?
Regards,
Sebastian
I have solved it by adding
case SND_SOC_DAIFMT_CBS_CFS:
param.spctl |= (SPORT_CTL_ICLK | SPORT_CTL_IFS);
param.div = ((8*sport->wdsize)-1)<<16;
param.div |= (16-1); //TODO: ADapt to sample rate and sys clkj
printk("SPORT CLK DIV: %08X\r\n",param.div);
to
sc5xx_dai_set_dai_fmt
I have solved it by adding
case SND_SOC_DAIFMT_CBS_CFS:
param.spctl |= (SPORT_CTL_ICLK | SPORT_CTL_IFS);
param.div = ((8*sport->wdsize)-1)<<16;
param.div |= (16-1); //TODO: ADapt to sample rate and sys clkj
printk("SPORT CLK DIV: %08X\r\n",param.div);
to
sc5xx_dai_set_dai_fmt