diff options
author | Peter Li | 2017-06-19 11:00:08 -0500 |
---|---|---|
committer | Peter Li | 2017-06-19 11:00:08 -0500 |
commit | 0c4a4ceefc134e159af0895185aec9dabaf0dec6 (patch) | |
tree | 6077742e3037e3e3e6222a92c73d72811ab80e83 | |
parent | 8b1eb3ff9343d71762e4fc620aee199a0280f992 (diff) | |
download | tas2559-android-driver-0c4a4ceefc134e159af0895185aec9dabaf0dec6.tar.gz tas2559-android-driver-0c4a4ceefc134e159af0895185aec9dabaf0dec6.tar.xz tas2559-android-driver-0c4a4ceefc134e159af0895185aec9dabaf0dec6.zip |
correct for DSP configuration
-rwxr-xr-x | tas2559-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tas2559-core.c b/tas2559-core.c index aefa3bc..fef6557 100755 --- a/tas2559-core.c +++ b/tas2559-core.c | |||
@@ -720,13 +720,13 @@ int tas2559_set_VBoost(struct tas2559_priv *pTAS2559, int vboost, bool bPowerOn) | |||
720 | if (pConfiguration->mnDevices & DevA) { | 720 | if (pConfiguration->mnDevices & DevA) { |
721 | if (!(pTAS2559->mnVBoostState & TAS2559_VBST_A_ON)) { | 721 | if (!(pTAS2559->mnVBoostState & TAS2559_VBST_A_ON)) { |
722 | #ifdef DSP_CTL_VBST_LEVEL | 722 | #ifdef DSP_CTL_VBST_LEVEL |
723 | nResult = pTAS2559->update_bits(pTAS2559, DevA, TAS2559_VBOOST_CTL_REG, 0x40, 0x40); | 723 | nResult = pTAS2559->update_bits(pTAS2559, DevA, TAS2559_VBOOST_CTL_REG, 0xc0, 0xc0); |
724 | if (nResult < 0) | 724 | if (nResult < 0) |
725 | #else | 725 | #else |
726 | nResult = tas2559_update_VBstVolt(pTAS2559, DevA); | 726 | nResult = tas2559_update_VBstVolt(pTAS2559, DevA); |
727 | if (nResult < 0) | 727 | if (nResult < 0) |
728 | goto end; | 728 | goto end; |
729 | nResult = pTAS2559->update_bits(pTAS2559, DevA, TAS2559_VBOOST_CTL_REG, 0xc0, 0xc0); | 729 | nResult = pTAS2559->update_bits(pTAS2559, DevA, TAS2559_VBOOST_CTL_REG, 0x40, 0x40); |
730 | if (nResult < 0) | 730 | if (nResult < 0) |
731 | goto end; | 731 | goto end; |
732 | #endif | 732 | #endif |
@@ -749,14 +749,14 @@ int tas2559_set_VBoost(struct tas2559_priv *pTAS2559, int vboost, bool bPowerOn) | |||
749 | if (pConfiguration->mnDevices & DevB) { | 749 | if (pConfiguration->mnDevices & DevB) { |
750 | if (!(pTAS2559->mnVBoostState & TAS2559_VBST_B_ON)) { | 750 | if (!(pTAS2559->mnVBoostState & TAS2559_VBST_B_ON)) { |
751 | #ifdef DSP_CTL_VBST_LEVEL | 751 | #ifdef DSP_CTL_VBST_LEVEL |
752 | nResult = pTAS2559->update_bits(pTAS2559, DevB, TAS2560_VBOOST_CTL_REG, 0x01, 0x01); | 752 | nResult = pTAS2559->update_bits(pTAS2559, DevB, TAS2560_VBOOST_CTL_REG, 0x03, 0x03); |
753 | if (nResult < 0) | 753 | if (nResult < 0) |
754 | goto end; | 754 | goto end; |
755 | #else | 755 | #else |
756 | nResult = tas2559_update_VBstVolt(pTAS2559, DevB); | 756 | nResult = tas2559_update_VBstVolt(pTAS2559, DevB); |
757 | if (nResult < 0) | 757 | if (nResult < 0) |
758 | goto end; | 758 | goto end; |
759 | nResult = pTAS2559->update_bits(pTAS2559, DevB, TAS2560_VBOOST_CTL_REG, 0x03, 0x03); | 759 | nResult = pTAS2559->update_bits(pTAS2559, DevB, TAS2560_VBOOST_CTL_REG, 0x01, 0x01); |
760 | if (nResult < 0) | 760 | if (nResult < 0) |
761 | goto end; | 761 | goto end; |
762 | #endif | 762 | #endif |