summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2004-11-12 19:11:40 +0000
committerAndrew de Quincy <devnull@localhost>2004-11-12 19:11:40 +0000
commit4012406bd05187eacf6b29fe702848894c8f3d91 (patch)
tree479ae45c66016d198a41a4fb513d8d702b87c253
parent8a6d0801b5705c568ce1a6e818f18c71f42ca4c9 (diff)
downloadmediapointer-dvb-s2-4012406bd05187eacf6b29fe702848894c8f3d91.tar.gz
mediapointer-dvb-s2-4012406bd05187eacf6b29fe702848894c8f3d91.tar.bz2
Fixed TT budget CI interface
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget-core.c b/linux/drivers/media/dvb/ttpci/budget-core.c
index c42fc407a..4f4b964af 100644
--- a/linux/drivers/media/dvb/ttpci/budget-core.c
+++ b/linux/drivers/media/dvb/ttpci/budget-core.c
@@ -176,7 +176,7 @@ int ttpci_budget_debiread (struct budget *budget, u32 config, int addr,
if (uselocks)
spin_lock_irqsave (&budget->debilock, flags);
- if ((result = saa7146_wait_for_debi_done (saa, uselocks)) < 0) {
+ if ((result = saa7146_wait_for_debi_done (saa, !uselocks)) < 0) {
if (uselocks)
spin_unlock_irqrestore (&budget->debilock, flags);
return result;
@@ -188,7 +188,7 @@ int ttpci_budget_debiread (struct budget *budget, u32 config, int addr,
saa7146_write (saa, DEBI_PAGE, 0);
saa7146_write (saa, MC2, (2 << 16) | 2);
- if ((result = saa7146_wait_for_debi_done (saa, uselocks)) < 0) {
+ if ((result = saa7146_wait_for_debi_done (saa, !uselocks)) < 0) {
if (uselocks)
spin_unlock_irqrestore (&budget->debilock, flags);
return result;
@@ -216,7 +216,7 @@ int ttpci_budget_debiwrite (struct budget *budget, u32 config, int addr,
if (uselocks)
spin_lock_irqsave (&budget->debilock, flags);
- if ((result = saa7146_wait_for_debi_done (saa, uselocks)) < 0) {
+ if ((result = saa7146_wait_for_debi_done (saa, !uselocks)) < 0) {
if (uselocks)
spin_unlock_irqrestore (&budget->debilock, flags);
return result;
@@ -229,7 +229,7 @@ int ttpci_budget_debiwrite (struct budget *budget, u32 config, int addr,
saa7146_write (saa, DEBI_AD, value);
saa7146_write (saa, MC2, (2 << 16) | 2);
- if ((result = saa7146_wait_for_debi_done (saa, uselocks)) < 0) {
+ if ((result = saa7146_wait_for_debi_done (saa, !uselocks)) < 0) {
if (uselocks)
spin_unlock_irqrestore (&budget->debilock, flags);
return result;