redchenjs / mt762x-wm8960

MT762X WM8960 ALSA SoC machine driver
GNU General Public License v2.0
27 stars 22 forks source link

Change I2S clock speed #14

Closed huybk213 closed 1 year ago

huybk213 commented 1 year ago

Dear Redchenjs,

Thanks for your good code, i have a question about i2s clock. System only show clock of i2s ~ 480khz, how can i increase? Thank you

`.i2c /dev entries driver [ 9.539208] gdma-rt2880 10002800.gdma: revision: 3, channels: 16

[ 9.576443] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support

[ 9.603849] ralink-i2s 10000a00.i2s: mclk 480KHz ->>>>>>>>>>>>>>>>>>>>>>>>>>>>>> HERE

[ 9.632978] mt762x-wm8960 sound: wm8960-hifi <-> 10000a00.i2s mapping ok

[ 9.646364] mt762x-wm8960 sound: ASoC: no sink widget found for Speaker

[ 9.659478] mt762x-wm8960 sound: ASoC: Failed to add route SPK_LN -> direct -> Speaker

[ 9.675167] mt762x-wm8960 sound: ASoC: no sink widget found for Speaker

[ 9.688274] mt762x-wm8960 sound: ASoC: Failed to add route SPK_LP -> direct -> Speaker

[ 9.703964] mt762x-wm8960 sound: ASoC: no sink widget found for Speaker

[ 9.717070] mt762x-wm8960 sound: ASoC: Failed to add route SPK_RN -> direct -> Speaker

[ 9.732758] mt762x-wm8960 sound: ASoC: no sink widget found for Speaker

[ 9.745863] mt762x-wm8960 sound: ASoC: Failed to add route SPK_RP -> direct -> Speaker

[ 9.761554] mt762x-wm8960 sound: ASoC: no sink widget found for Microphone

[ 9.775174] mt762x-wm8960 sound: ASoC: Failed to add route MICB -> direct -> Microphone

[ 9.791036] mt762x-wm8960 sound: ASoC: no source widget found for Microphone

[ 9.805001] mt762x-wm8960 sound: ASoC: Failed to add route Microphone -> direct -> LINPUT1`

redchenjs commented 1 year ago

Hi @huybk213, 480 kHz is just a typo, it is fixed in this patch. Now the dmesg will show 480 MHz instead.

Note that 480 MHz is only the internal clock used by the I2S hardware, not the REFCLK output. The REFCLK is always 12 MHz.

huybk213 commented 1 year ago

Tks @redchenjs