diff options
| author | Anish Kumar <kanish@codeaurora.org> | 2014-08-24 19:45:01 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:10:54 -0700 |
| commit | f1031ca0f7123695125f3b4a54d5723071441a37 (patch) | |
| tree | 47ec83285c7e7fc3cba2e334df28ff3e33bd622c /sound/soc/soc-pcm.c | |
| parent | 80e8ef2c046ea5daeea06a5d0f6feaf9a360c1b1 (diff) | |
ASoC: pcm: increase the hostless buffer size
PAGE_SIZE buffer is not enough in all use cases.This
limits the amount of buffer that can be passed from
userspace. Not increasing this causes failure in pcm_native
when rules are checked against all hw_params passed
from userspace.
Change-Id: Iddc280f78d54a1959be8718055bdb5ef0270653c
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
| -rw-r--r-- | sound/soc/soc-pcm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index da457f0b7a56..24b32e4d044e 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -65,7 +65,12 @@ static const struct snd_pcm_hardware no_host_hardware = { .period_bytes_max = PAGE_SIZE >> 1, .periods_min = 2, .periods_max = 4, - .buffer_bytes_max = PAGE_SIZE, + /* + * Increase the max buffer bytes as PAGE_SIZE bytes is + * not enough to encompass all the scenarios sent by + * userspapce. + */ + .buffer_bytes_max = PAGE_SIZE * 4, }; /** |
