summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Li2017-03-29 16:09:52 -0500
committerPeter Li2017-03-29 16:09:52 -0500
commitfb8035985adf8f6fc84b3215510249f5419895ec (patch)
treeb5f9a9784868d9297168a427ec74e3b865aa89c7
parent12bbd272e7bc702b59ebe369317871618f5ba165 (diff)
downloadtas2557-stereo-driver-fb8035985adf8f6fc84b3215510249f5419895ec.tar.gz
tas2557-stereo-driver-fb8035985adf8f6fc84b3215510249f5419895ec.tar.xz
tas2557-stereo-driver-fb8035985adf8f6fc84b3215510249f5419895ec.zip
check power status of DAC and Class D
-rwxr-xr-xtas2557-regmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tas2557-regmap.c b/tas2557-regmap.c
index 3f2c6c1..9714bf1 100755
--- a/tas2557-regmap.c
+++ b/tas2557-regmap.c
@@ -752,7 +752,7 @@ static void irq_work_routine(struct work_struct *work)
752 dev_dbg(pTAS2557->dev, "IRQ status L: 0x%x, 0x%x\n", 752 dev_dbg(pTAS2557->dev, "IRQ status L: 0x%x, 0x%x\n",
753 nDevLInt1Status, nDevLInt2Status); 753 nDevLInt1Status, nDevLInt2Status);
754 tas2557_dev_read(pTAS2557, channel_left, TAS2557_POWER_UP_FLAG_REG, &nDevLInt1Status); 754 tas2557_dev_read(pTAS2557, channel_left, TAS2557_POWER_UP_FLAG_REG, &nDevLInt1Status);
755 if (nDevLInt1Status != 0xfc) { 755 if ((nDevLInt1Status & 0xc0) != 0xc0) {
756 dev_err(pTAS2557->dev, "%s, Critical DevA ERROR B[%d]_P[%d]_R[%d]= 0x%x\n", 756 dev_err(pTAS2557->dev, "%s, Critical DevA ERROR B[%d]_P[%d]_R[%d]= 0x%x\n",
757 __func__, 757 __func__,
758 TAS2557_BOOK_ID(TAS2557_POWER_UP_FLAG_REG), 758 TAS2557_BOOK_ID(TAS2557_POWER_UP_FLAG_REG),
@@ -829,7 +829,7 @@ static void irq_work_routine(struct work_struct *work)
829 dev_dbg(pTAS2557->dev, "IRQ status R: 0x%x, 0x%x\n", 829 dev_dbg(pTAS2557->dev, "IRQ status R: 0x%x, 0x%x\n",
830 nDevRInt1Status, nDevRInt2Status); 830 nDevRInt1Status, nDevRInt2Status);
831 tas2557_dev_read(pTAS2557, channel_right, TAS2557_POWER_UP_FLAG_REG, &nDevRInt1Status); 831 tas2557_dev_read(pTAS2557, channel_right, TAS2557_POWER_UP_FLAG_REG, &nDevRInt1Status);
832 if (nDevRInt1Status != 0xfc) { 832 if ((nDevRInt1Status & 0xc0) != 0xc0) {
833 dev_err(pTAS2557->dev, "%s, Critical DevB ERROR B[%d]_P[%d]_R[%d]= 0x%x\n", 833 dev_err(pTAS2557->dev, "%s, Critical DevB ERROR B[%d]_P[%d]_R[%d]= 0x%x\n",
834 __func__, 834 __func__,
835 TAS2557_BOOK_ID(TAS2557_POWER_UP_FLAG_REG), 835 TAS2557_BOOK_ID(TAS2557_POWER_UP_FLAG_REG),