wctdm24xxp: Check if the FXS signaling setting is valid.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9928 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Shaun Ruffell
2011-06-02 20:00:29 +00:00
parent 6d9baa3f99
commit 8f5f051b92
2 changed files with 11 additions and 0 deletions

View File

@@ -1743,6 +1743,11 @@ static void wctdm_fxs_hooksig(struct wctdm *wc, const int card, enum dahdi_txsig
SLIC_LF_RING_OPEN :
SLIC_LF_TIP_OPEN;
break;
default:
WARN_ONCE(1, "%x is an invalid signaling state for "
"an FXS module.\n",
wc->aspan->span.chans[card]->sig);
break;
}
break;
case DAHDI_TXSIG_OFFHOOK:

View File

@@ -1395,6 +1395,12 @@ typedef u32 __bitwise pm_message_t;
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
#endif
/* WARN_ONCE first showed up in the kernel in 2.6.27 but it may have been
* backported. */
#ifndef WARN_ONCE
#define WARN_ONCE(condition, format...) WARN_ON_ONCE(condition)
#endif
#define DAHDI_CTL 0
#define DAHDI_TRANSCODE 250
#define DAHDI_TIMER 253