mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
mISDN: Implement MISDN_CTRL_FILL_EMPTY for more drivers
MISDN_CTRL_FILL_EMPTY is a meachanism to send a fixed value (normally silence) as long no data from upper layers is available. It can be used when recording voice messages or with unidirectional protocols. Signed-off-by: Karsten Keil <kkeil@linux-pingi.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
034005a011
commit
6d1ee48fd0
11 changed files with 243 additions and 161 deletions
|
|
@ -72,7 +72,7 @@
|
|||
#define FLG_LL_OK 24
|
||||
#define FLG_LL_CONN 25
|
||||
#define FLG_DTMFSEND 26
|
||||
|
||||
#define FLG_TX_EMPTY 27
|
||||
/* workq events */
|
||||
#define FLG_RECVQUEUE 30
|
||||
#define FLG_PHCHANGE 31
|
||||
|
|
@ -142,6 +142,7 @@ extern int create_l1(struct dchannel *, dchannel_l1callback *);
|
|||
struct layer1;
|
||||
extern int l1_event(struct layer1 *, u_int);
|
||||
|
||||
#define MISDN_BCH_FILL_SIZE 4
|
||||
|
||||
struct bchannel {
|
||||
struct mISDNchannel ch;
|
||||
|
|
@ -153,6 +154,7 @@ struct bchannel {
|
|||
int slot; /* multiport card channel slot */
|
||||
struct timer_list timer;
|
||||
/* receive data */
|
||||
u8 fill[MISDN_BCH_FILL_SIZE];
|
||||
struct sk_buff *rx_skb;
|
||||
unsigned short maxlen;
|
||||
unsigned short init_maxlen; /* initial value */
|
||||
|
|
|
|||
Loading…
Reference in a new issue