Skip to content
Snippets Groups Projects
Commit 13aa980f authored by Eric Laurent's avatar Eric Laurent Committed by Mike Lockwood
Browse files

ASoC: msm: extend proxy port period count and size range


Allow more choices in proxy port period size and count
for use by telephony use cases

Bug: 17573788.

Signed-off-by: default avatarEric Laurent <elaurent@google.com>
parent 4f3f2666
No related branches found
No related tags found
No related merge requests found
......@@ -34,12 +34,12 @@
#define MIN_PLAYBACK_PERIOD_SIZE (128 * 2)
#define MAX_PLAYBACK_PERIOD_SIZE (128 * 2 * 2 * 6)
#define MIN_PLAYBACK_NUM_PERIODS (32)
#define MIN_PLAYBACK_NUM_PERIODS (4)
#define MAX_PLAYBACK_NUM_PERIODS (384)
#define MIN_CAPTURE_PERIOD_SIZE (128 * 2 * 4)
#define MIN_CAPTURE_PERIOD_SIZE (128 * 2)
#define MAX_CAPTURE_PERIOD_SIZE (192 * 2 * 2 * 8 * 4)
#define MIN_CAPTURE_NUM_PERIODS (32)
#define MIN_CAPTURE_NUM_PERIODS (4)
#define MAX_CAPTURE_NUM_PERIODS (384)
static struct snd_pcm_hardware msm_afe_hardware_playback = {
......@@ -57,7 +57,7 @@ static struct snd_pcm_hardware msm_afe_hardware_playback = {
.channels_min = 1,
.channels_max = 6,
.buffer_bytes_max = MAX_PLAYBACK_PERIOD_SIZE *
MIN_PLAYBACK_NUM_PERIODS,
MAX_PLAYBACK_NUM_PERIODS,
.period_bytes_min = MIN_PLAYBACK_PERIOD_SIZE,
.period_bytes_max = MAX_PLAYBACK_PERIOD_SIZE,
.periods_min = MIN_PLAYBACK_NUM_PERIODS,
......@@ -80,7 +80,7 @@ static struct snd_pcm_hardware msm_afe_hardware_capture = {
.channels_min = 1,
.channels_max = 6,
.buffer_bytes_max = MAX_CAPTURE_PERIOD_SIZE *
MIN_CAPTURE_NUM_PERIODS,
MAX_CAPTURE_NUM_PERIODS,
.period_bytes_min = MIN_CAPTURE_PERIOD_SIZE,
.period_bytes_max = MAX_CAPTURE_PERIOD_SIZE,
.periods_min = MIN_CAPTURE_NUM_PERIODS,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment