Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5bf8ca2 authored by Patrick Lai's avatar Patrick Lai Committed by Banajit Goswami
Browse files

ASoC: msm: qdsp6v2: enlarge PCM platform driver capture period size



As part of effort to support greater than 48khz sample rate recording,
set the maximum period size to 16384 bytes. Original size, 4096 bytes,
only lasts 2.6 ms for 24-bit 192khz. Recording can overrun easily.

Change-Id: I076b3acac78d9522371df6219e7c06101b83cc89
Signed-off-by: default avatarPatrick Lai <plai@codeaurora.org>
parent b58f5d14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ struct snd_msm {
#define PLAYBACK_MIN_PERIOD_SIZE    128
#define CAPTURE_MIN_NUM_PERIODS     2
#define CAPTURE_MAX_NUM_PERIODS     8
#define CAPTURE_MAX_PERIOD_SIZE     4096
#define CAPTURE_MAX_PERIOD_SIZE     16384
#define CAPTURE_MIN_PERIOD_SIZE     320
#define CMD_EOS_MIN_TIMEOUT_LENGTH  50
#define CMD_EOS_TIMEOUT_MULTIPLIER  (HZ * 50)