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

Commit 117a5dd6 authored by Deru Wang's avatar Deru Wang
Browse files

asoc: set min period size of capture/playback to 120



sound card open failed for capture with 128 16-bit samples at 24 kHz
because min period size of cupture is set to 320.

Change-Id: Ida818ef133e6ac6e282c798559a753618b1d1e28
Signed-off-by: default avatarDeru Wang <deruwang@codeaurora.org>
parent deec79da
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -49,11 +49,11 @@ struct msm_audio_in_frame_info {
#define PLAYBACK_MIN_NUM_PERIODS    2
#define PLAYBACK_MAX_NUM_PERIODS    8
#define PLAYBACK_MAX_PERIOD_SIZE    122880
#define PLAYBACK_MIN_PERIOD_SIZE    128
#define PLAYBACK_MIN_PERIOD_SIZE    120
#define CAPTURE_MIN_NUM_PERIODS     2
#define CAPTURE_MAX_NUM_PERIODS     8
#define CAPTURE_MAX_PERIOD_SIZE     122880
#define CAPTURE_MIN_PERIOD_SIZE     320
#define CAPTURE_MIN_PERIOD_SIZE     120

struct msm_audio {
	struct snd_pcm_substream *substream;