post_proc: reverb preset id is not mapped correctly
Array index is not correct and causes uninitialized value being used when 'Plate' is chosen. Correct index to retrieve the right preset id. Change-Id: I2ad058bc7dc5d9b74882da2f5d4c0e3570f9e952 CRs-Fixed: 630429
This commit is contained in:
parent
767e35d981
commit
ca2685b2a0
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
|
||||||
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are
|
* modification, are permitted provided that the following conditions are
|
||||||
|
@ -391,7 +391,7 @@ void offload_reverb_set_preset(struct reverb_params *reverb, int preset)
|
||||||
{
|
{
|
||||||
ALOGV("%s", __func__);
|
ALOGV("%s", __func__);
|
||||||
if (preset && (preset <= NUM_OSL_REVERB_PRESETS_SUPPORTED))
|
if (preset && (preset <= NUM_OSL_REVERB_PRESETS_SUPPORTED))
|
||||||
reverb->preset = map_reverb_opensl_preset_2_offload_preset[preset][1];
|
reverb->preset = map_reverb_opensl_preset_2_offload_preset[preset-1][1];
|
||||||
}
|
}
|
||||||
|
|
||||||
void offload_reverb_set_wet_mix(struct reverb_params *reverb, int wet_mix)
|
void offload_reverb_set_wet_mix(struct reverb_params *reverb, int wet_mix)
|
||||||
|
|
Loading…
Reference in New Issue