KernelAdiutor icon indicating copy to clipboard operation
KernelAdiutor copied to clipboard

WCD9320 Taiko Audio Codec Control by cocafe

Open charles1018 opened this issue 9 years ago • 0 comments

Could you kindly support new sound control that would be more user friendly... Thanks for everything. source code https://github.com/cocafe/L50t_Kernel_CoCore-L/commit/7404c33e56d884c20897329da7ff3ab74d9572ca

  1. Headset analog gain:

    Enable/Disable:

    echo on/off > /sys/kernel/wcd9320/headset/hplana_gain echo on/off > /sys/kernel/wcd9320/headset/hprana_gain

    Gain: Max=0 Default=5 (Lower is louder)

    echo 5 > /sys/kernel/wcd9320/headset/hplana_gain echo 5 > /sys/kernel/wcd9320/headset/hprana_gain
  2. Headset digital gain:

    Enable/Disable

    echo on/off > /sys/kernel/wcd9320/headset/hpldig_gain echo on/off > /sys/kernel/wcd9320/headset/hprdig_gain

    Gain: Default=0 , Don't set this value too high, 24 is the maximum recommended

    echo 16 > /sys/kernel/wcd9320/headset/hpldig_gain echo 16 > /sys/kernel/wcd9320/headset/hprdig_gain
  3. Speaker on/off:

    You can turn off speaker only instead of muting all sound in system.

    echo off > /sys/kernel/wcd9320/speaker/spkdrv_on
  4. Speaker digital gain:

    Enable/Disable

    echo on/off > /sys/kernel/wcd9320/speaker/spkdig_gain

    Do not set this value too high, in order to protect the speaker,

    enabled booster by default

    echo 3 > /sys/kernel/wcd9320/speaker/spkdig_gain
  5. Headphone UHQA(Ultra High Quality Audio) mode: UHQA mode allows to have high performance audio, and it's enabled by default. Have better turn off/on music to switch the amplifier for HPH path.

    Enable/Disable

    echo on/off > /sys/kernel/wcd9320/headset/hph_uhqa

charles1018 avatar Sep 07 '15 00:09 charles1018