[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] alsa audio driver only accepting huge period size
From: |
Marcus Weseloh |
Subject: |
Re: [fluid-dev] alsa audio driver only accepting huge period size |
Date: |
Fri, 7 May 2021 22:14:31 +0200 |
Hi,
my guess is that it's a hardware limitation. It seems like your phone
is using the QTi LPass ASoC driver, which has a fixed number for
period size and periods:
https://gitlab.com/postmarketOS/linux-postmarketos/-/blob/qcom-msm8974-5.11.y/sound/soc/qcom/lpass-platform.c#L46
.period_size_min = .period_size_max = LPASS_PLATFORM_BUFFER_SIZE /
LPASS_PLATFORM_PERIODS
So that's 24 * 1024 = 24576. And if you divide that by 4 bytes (max
32bit resolution), you get 6144. Seems to fit.
Cheers
Marcus