Skip to content

Commit

Permalink
Merge tag 'LA.AF.1.1-01310-8064.0' into android-5.0
Browse files Browse the repository at this point in the history
"LA.AF.1.1-01310-8064.0"

Change-Id: Ie23e1a32052ee108492c62963531bfc37bd1a7a6
  • Loading branch information
olivier97 committed Dec 20, 2014
2 parents a1b88cb + 6cf9350 commit 7be3e78
Show file tree
Hide file tree
Showing 8 changed files with 164 additions and 203 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/compressed/libfdt_env.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef _ARM_LIBFDT_ENV_H
#define _ARM_LIBFDT_ENV_H

#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>
#include <asm/byteorder.h>
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/configs/full_msm8960-perf_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ CONFIG_IP6_NF_FILTER=y
CONFIG_IP6_NF_TARGET_REJECT=y
CONFIG_IP6_NF_MANGLE=y
CONFIG_IP6_NF_RAW=y
CONFIG_BRIDGE_NF_EBTABLES=y
CONFIG_BRIDGE_EBT_BROUTE=y
CONFIG_BRIDGE=y
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_PRIO=y
Expand Down
11 changes: 10 additions & 1 deletion arch/arm/mach-msm/qdsp6v2/audio_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
#include <asm/ioctls.h>
#include "audio_utils.h"

#define FRAME_SIZE (1 + ((1536+sizeof(struct meta_out_dsp)) * 5))
#define MIN_FRAME_SIZE 1536
#define NUM_FRAMES 5
#define META_SIZE (sizeof(struct meta_out_dsp))
#define FRAME_SIZE (1 + ((MIN_FRAME_SIZE + META_SIZE) * NUM_FRAMES))

static int audio_in_pause(struct q6audio_in *audio)
{
int rc;
Expand Down Expand Up @@ -259,6 +263,11 @@ long audio_in_ioctl(struct file *file,
rc = -EINVAL;
break;
}
if ((cfg.buffer_size > FRAME_SIZE) ||
(cfg.buffer_count != FRAME_NUM)) {
rc = -EINVAL;
break;
}
if (cfg.buffer_size > FRAME_SIZE) {
rc = -EINVAL;
break;
Expand Down
Loading

0 comments on commit 7be3e78

Please sign in to comment.