Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44114
b: refs/heads/master
c: 88bbdf7
h: refs/heads/master
v: v3
  • Loading branch information
Hartmut Birr authored and Mauro Carvalho Chehab committed Dec 10, 2006
1 parent 298cefe commit f01fdcf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 122b5dbea6fa3727fc99fbdc2cf5e4d9b8a5bb00
refs/heads/master: 88bbdf74fcfa7ed1fd1a3c825ee5575752344326
18 changes: 14 additions & 4 deletions trunk/include/media/saa7146.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,20 @@ extern unsigned int saa7146_debug;
#define DEB_INT(x) if (0!=(DEBUG_VARIABLE&0x20)) { DEBUG_PROLOG; printk x; } /* interrupt debug messages */
#define DEB_CAP(x) if (0!=(DEBUG_VARIABLE&0x40)) { DEBUG_PROLOG; printk x; } /* capture debug messages */

#define SAA7146_IER_DISABLE(x,y) \
saa7146_write(x, IER, saa7146_read(x, IER) & ~(y));
#define SAA7146_IER_ENABLE(x,y) \
saa7146_write(x, IER, saa7146_read(x, IER) | (y));
#define SAA7146_IER_DISABLE(x,y) \
do { \
unsigned int flags; \
spin_lock_irqsave(&x->int_slock, flags); \
saa7146_write(x, IER, saa7146_read(x, IER) & ~(y)); \
spin_unlock_irqrestore(&x->int_slock, flags); \
} while(0)
#define SAA7146_IER_ENABLE(x,y) \
do { \
unsigned int flags; \
spin_lock_irqsave(&x->int_slock, flags); \
saa7146_write(x, IER, saa7146_read(x, IER) | (y)); \
spin_unlock_irqrestore(&x->int_slock, flags); \
} while(0)
#define SAA7146_ISR_CLEAR(x,y) \
saa7146_write(x, ISR, (y));

Expand Down

0 comments on commit f01fdcf

Please sign in to comment.