11 Aug
2014
11 Aug
'14
3:35 p.m.
soc_pcm_hw_params() sets the parameters in this order: link, codec, cpu, platform
This is tripping me up when switching between the 44100 and 48000 families. If previous song was 44100 then the codec has sysclk set to the 44100 family.
Now I play a 48000 family song. codec gets new hardware params and errors out because sysclk is still in the 44100 family.
I have code in the cpu set_hw_params which will switch the sysclk, but it never gets to run because the codec set_hw_params() has already errored out.
Shouldn't this order be: platform, link, cpu, codec
--
Jon Smirl
jonsmirl@gmail.com