From 98c6cc4c4c7b021a214ee97b6229f94922340fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Neum=C3=BCller?= Date: Fri, 1 Aug 2014 18:59:49 +0200 Subject: Disable digital noise gate (fixes CYAN-4506). This fixes CYAN-4505 (Sound cuts out at low volume) [1]. One might think that the digital noise gate (DNG) is better left enabled to reduce the static noise but in my tests, only the "payload" audio was cut off, while the static continued. For me it seems that this feature of the sound chip was not intended for use in a smartphone. [1]: https://jira.cyanogenmod.org/browse/CYAN-4506. Change-Id: I4e41c594695f85574ed35e2aef59d6b768403606 --- yamaha-mc1n2-audio/device/galaxys2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yamaha-mc1n2-audio') diff --git a/yamaha-mc1n2-audio/device/galaxys2.c b/yamaha-mc1n2-audio/device/galaxys2.c index 9bd2c43..371ce83 100644 --- a/yamaha-mc1n2-audio/device/galaxys2.c +++ b/yamaha-mc1n2-audio/device/galaxys2.c @@ -240,21 +240,21 @@ struct yamaha_mc1n2_audio_params_init galaxys2_params_init = { }, .dng_info = { - .abOnOff[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_ON, + .abOnOff[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_OFF, .abThreshold[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_THRES_60, .abHold[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_HOLD_500, .abAttack[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_ATTACK_100, .abRelease[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_RELEASE_940, .abTarget[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_TARGET_MUTE, - .abOnOff[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_ON, + .abOnOff[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_OFF, .abThreshold[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_THRES_60, .abHold[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_HOLD_500, .abAttack[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_ATTACK_100, .abRelease[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_RELEASE_940, .abTarget[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_TARGET_MUTE, - .abOnOff[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_ON, + .abOnOff[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_OFF, .abThreshold[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_THRES_60, .abHold[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_HOLD_500, .abAttack[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_ATTACK_100, -- cgit v1.1