Merge "misc: qcom: qdsp6v2: initialize config_32"
This commit is contained in:
commit
39dfe0cc0a
12 changed files with 38 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -421,6 +421,8 @@ static long aac_in_compat_ioctl(struct file *file, unsigned int cmd,
|
|||
struct msm_audio_aac_enc_config cfg;
|
||||
struct msm_audio_aac_enc_config32 cfg_32;
|
||||
|
||||
memset(&cfg_32, 0, sizeof(cfg_32));
|
||||
|
||||
cmd = AUDIO_GET_AAC_ENC_CONFIG;
|
||||
rc = aac_in_ioctl_shared(file, cmd, &cfg);
|
||||
if (rc) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* Copyright (c) 2010-2012, 2014 The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2010-2012, 2014, 2016 The Linux Foundation.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -221,6 +222,8 @@ static long amrnb_in_compat_ioctl(struct file *file,
|
|||
struct msm_audio_amrnb_enc_config_v2 *amrnb_config;
|
||||
struct msm_audio_amrnb_enc_config_v2_32 amrnb_config_32;
|
||||
|
||||
memset(&amrnb_config_32, 0, sizeof(amrnb_config_32));
|
||||
|
||||
amrnb_config =
|
||||
(struct msm_audio_amrnb_enc_config_v2 *)audio->enc_cfg;
|
||||
amrnb_config_32.band_mode = amrnb_config->band_mode;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* Copyright (c) 2011-2012, 2014 The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2011-2012, 2014, 2016 The Linux Foundation.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -216,6 +217,8 @@ static long amrwb_in_compat_ioctl(struct file *file,
|
|||
struct msm_audio_amrwb_enc_config *amrwb_config;
|
||||
struct msm_audio_amrwb_enc_config_32 amrwb_config_32;
|
||||
|
||||
memset(&amrwb_config_32, 0, sizeof(amrwb_config_32));
|
||||
|
||||
amrwb_config =
|
||||
(struct msm_audio_amrwb_enc_config *)audio->enc_cfg;
|
||||
amrwb_config_32.band_mode = amrwb_config->band_mode;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -196,6 +196,8 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd,
|
|||
struct msm_audio_alac_config *alac_config;
|
||||
struct msm_audio_alac_config_32 alac_config_32;
|
||||
|
||||
memset(&alac_config_32, 0, sizeof(alac_config_32));
|
||||
|
||||
alac_config = (struct msm_audio_alac_config *)audio->codec_cfg;
|
||||
alac_config_32.frameLength = alac_config->frameLength;
|
||||
alac_config_32.compatVersion =
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
*
|
||||
* Copyright (C) 2008 Google, Inc.
|
||||
* Copyright (C) 2008 HTC Corporation
|
||||
* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
|
@ -205,6 +205,10 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd,
|
|||
struct msm_audio_amrwbplus_config_v2 *amrwbplus_config;
|
||||
struct msm_audio_amrwbplus_config_v2_32
|
||||
amrwbplus_config_32;
|
||||
|
||||
memset(&amrwbplus_config_32, 0,
|
||||
sizeof(amrwbplus_config_32));
|
||||
|
||||
amrwbplus_config =
|
||||
(struct msm_audio_amrwbplus_config_v2 *)
|
||||
audio->codec_cfg;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -180,6 +180,8 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd,
|
|||
struct msm_audio_ape_config *ape_config;
|
||||
struct msm_audio_ape_config_32 ape_config_32;
|
||||
|
||||
memset(&ape_config_32, 0, sizeof(ape_config_32));
|
||||
|
||||
ape_config = (struct msm_audio_ape_config *)audio->codec_cfg;
|
||||
ape_config_32.compatibleVersion = ape_config->compatibleVersion;
|
||||
ape_config_32.compressionLevel =
|
||||
|
|
|
@ -630,6 +630,8 @@ static long audio_effects_compat_ioctl(struct file *file, unsigned int cmd,
|
|||
case AUDIO_EFFECTS_GET_BUF_AVAIL32: {
|
||||
struct msm_hwacc_buf_avail32 buf_avail;
|
||||
|
||||
memset(&buf_avail, 0, sizeof(buf_avail));
|
||||
|
||||
buf_avail.input_num_avail = atomic_read(&effects->in_count);
|
||||
buf_avail.output_num_avail = atomic_read(&effects->out_count);
|
||||
pr_debug("%s: write buf avail: %d, read buf avail: %d\n",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
*
|
||||
* Copyright (C) 2008 Google, Inc.
|
||||
* Copyright (C) 2008 HTC Corporation
|
||||
* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
|
@ -302,6 +302,8 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd,
|
|||
struct msm_audio_aac_config *aac_config;
|
||||
struct msm_audio_aac_config32 aac_config_32;
|
||||
|
||||
memset(&aac_config_32, 0, sizeof(aac_config_32));
|
||||
|
||||
aac_config = (struct msm_audio_aac_config *)audio->codec_cfg;
|
||||
aac_config_32.format = aac_config->format;
|
||||
aac_config_32.audio_object = aac_config->audio_object;
|
||||
|
|
|
@ -1936,6 +1936,7 @@ static long audio_aio_compat_ioctl(struct file *file, unsigned int cmd,
|
|||
case AUDIO_GET_CONFIG_32: {
|
||||
struct msm_audio_config32 cfg_32;
|
||||
mutex_lock(&audio->lock);
|
||||
memset(&cfg_32, 0, sizeof(cfg_32));
|
||||
cfg_32.buffer_size = audio->pcm_cfg.buffer_size;
|
||||
cfg_32.buffer_count = audio->pcm_cfg.buffer_count;
|
||||
cfg_32.channel_count = audio->pcm_cfg.channel_count;
|
||||
|
@ -2032,6 +2033,7 @@ static long audio_aio_compat_ioctl(struct file *file, unsigned int cmd,
|
|||
audio->buf_cfg.frames_per_buf);
|
||||
|
||||
mutex_lock(&audio->lock);
|
||||
memset(&cfg_32, 0, sizeof(cfg_32));
|
||||
cfg_32.meta_info_enable = audio->buf_cfg.meta_info_enable;
|
||||
cfg_32.frames_per_buf = audio->buf_cfg.frames_per_buf;
|
||||
if (copy_to_user((void *)arg, &cfg_32,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
*
|
||||
* Copyright (C) 2008 Google, Inc.
|
||||
* Copyright (C) 2008 HTC Corporation
|
||||
* Copyright (c) 2009-2015, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2009-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
|
@ -217,6 +217,8 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd,
|
|||
struct msm_audio_wmapro_config *wmapro_config;
|
||||
struct msm_audio_wmapro_config32 wmapro_config_32;
|
||||
|
||||
memset(&wmapro_config_32, 0, sizeof(wmapro_config_32));
|
||||
|
||||
wmapro_config =
|
||||
(struct msm_audio_wmapro_config *)audio->codec_cfg;
|
||||
wmapro_config_32.armdatareqthr = wmapro_config->armdatareqthr;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -224,6 +224,8 @@ static long evrc_in_compat_ioctl(struct file *file,
|
|||
struct msm_audio_evrc_enc_config32 cfg_32;
|
||||
struct msm_audio_evrc_enc_config *enc_cfg;
|
||||
|
||||
memset(&cfg_32, 0, sizeof(cfg_32));
|
||||
|
||||
enc_cfg = audio->enc_cfg;
|
||||
cfg_32.cdma_rate = enc_cfg->cdma_rate;
|
||||
cfg_32.min_bit_rate = enc_cfg->min_bit_rate;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -225,6 +225,8 @@ static long qcelp_in_compat_ioctl(struct file *file,
|
|||
struct msm_audio_qcelp_enc_config32 cfg_32;
|
||||
struct msm_audio_qcelp_enc_config *enc_cfg;
|
||||
|
||||
memset(&cfg_32, 0, sizeof(cfg_32));
|
||||
|
||||
enc_cfg = (struct msm_audio_qcelp_enc_config *)audio->enc_cfg;
|
||||
cfg_32.cdma_rate = enc_cfg->cdma_rate;
|
||||
cfg_32.min_bit_rate = enc_cfg->min_bit_rate;
|
||||
|
|
Loading…
Add table
Reference in a new issue