3
0

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
This commit is contained in:
Christian Neumüller 2014-08-01 18:59:49 +02:00
parent 872308190d
commit 98c6cc4c4c

View File

@ -240,21 +240,21 @@ struct yamaha_mc1n2_audio_params_init galaxys2_params_init = {
}, },
.dng_info = { .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, .abThreshold[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_THRES_60,
.abHold[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_HOLD_500, .abHold[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_HOLD_500,
.abAttack[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_ATTACK_100, .abAttack[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_ATTACK_100,
.abRelease[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_RELEASE_940, .abRelease[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_RELEASE_940,
.abTarget[MCDRV_DNG_ITEM_HP] = MCDRV_DNG_TARGET_MUTE, .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, .abThreshold[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_THRES_60,
.abHold[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_HOLD_500, .abHold[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_HOLD_500,
.abAttack[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_ATTACK_100, .abAttack[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_ATTACK_100,
.abRelease[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_RELEASE_940, .abRelease[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_RELEASE_940,
.abTarget[MCDRV_DNG_ITEM_SP] = MCDRV_DNG_TARGET_MUTE, .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, .abThreshold[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_THRES_60,
.abHold[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_HOLD_500, .abHold[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_HOLD_500,
.abAttack[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_ATTACK_100, .abAttack[MCDRV_DNG_ITEM_RC] = MCDRV_DNG_ATTACK_100,