Pierre-Louis Bossart <pierre-louis.bossart@xxxxxxxxxxxxxxx> 於 2020年8月13日 週四 上午12:38寫道: > > > > On 8/12/20 11:08 AM, Lu, Brent wrote: > >>> > >>> I also wonder what's really missing, too :) > >>> > >>> BTW, I took a look back at the thread, and CRAS seems using a very > >>> large buffer, namely: > >>> [ 52.434791] sound pcmC1D0p: PERIOD_SIZE [240:240] > >>> [ 52.434802] sound pcmC1D0p: BUFFER_SIZE [204480:204480] > >> > >> yes, that's 852 periods and 4.260 seconds. Never seen such values :-) > > > > CRAS calls snd_pcm_hw_params_set_buffer_size_max() to use as large > > buffer as possible. So the period size is an arbitrary number in different > > platforms. Atom SST platform happens to be 256, and CML SOF platform > > is 1056 for example. > > ok, but earlier in this thread it was mentioned that values such as 432 > are not suitable. the statement above seems to mean the period actual > value is a "don't care", so I don't quite see why this specific patch2 > restricting the value to 240 is necessary. Patch1 is needed for sure, > Patch2 is where Takashi and I are not convinced. I have downloaded the patch1 but it does not work. After applying patch1, the default period size changes to 320. However, it also has the same issue with period size 320. (It can be verified by aplay.)