[svn-commits] sruffell: linux/trunk r9421 - in /linux/trunk: drivers/dahdi/ include/dahdi/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Sep 29 17:00:22 CDT 2010
Author: sruffell
Date: Wed Sep 29 17:00:22 2010
New Revision: 9421
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9421
Log:
dahdi: Anonymous member in dahdi_echocan_events union.
Make explicit what part of the union is being accessed.
(closes issue #15908)
Reported by: ys
Patches:
dahdi-dahdi_echocan_events.diff uploaded by ys (license 281)
Signed-off-by: Kinsey Moore <kmoore at digium.com>
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Modified:
linux/trunk/drivers/dahdi/dahdi-base.c
linux/trunk/include/dahdi/kernel.h
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9421&r1=9420&r2=9421
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Wed Sep 29 17:00:22 2010
@@ -7261,7 +7261,7 @@
{
union dahdi_echocan_events events = chan->ec_state->events;
- if (events.CED_tx_detected) {
+ if (events.bit.CED_tx_detected) {
dahdi_qevent_nolock(chan, DAHDI_EVENT_TX_CED_DETECTED);
if (chan->ec_state) {
if (chan->ec_state->status.mode == ECHO_MODE_ACTIVE)
@@ -7271,7 +7271,7 @@
}
}
- if (events.CED_rx_detected) {
+ if (events.bit.CED_rx_detected) {
dahdi_qevent_nolock(chan, DAHDI_EVENT_RX_CED_DETECTED);
if (chan->ec_state) {
if (chan->ec_state->status.mode == ECHO_MODE_ACTIVE)
@@ -7281,18 +7281,18 @@
}
}
- if (events.CNG_tx_detected)
+ if (events.bit.CNG_tx_detected)
dahdi_qevent_nolock(chan, DAHDI_EVENT_TX_CNG_DETECTED);
- if (events.CNG_rx_detected)
+ if (events.bit.CNG_rx_detected)
dahdi_qevent_nolock(chan, DAHDI_EVENT_RX_CNG_DETECTED);
- if (events.NLP_auto_disabled) {
+ if (events.bit.NLP_auto_disabled) {
dahdi_qevent_nolock(chan, DAHDI_EVENT_EC_NLP_DISABLED);
chan->ec_state->status.mode = ECHO_MODE_FAX;
}
- if (events.NLP_auto_enabled) {
+ if (events.bit.NLP_auto_enabled) {
dahdi_qevent_nolock(chan, DAHDI_EVENT_EC_NLP_ENABLED);
chan->ec_state->status.mode = ECHO_MODE_ACTIVE;
}
Modified: linux/trunk/include/dahdi/kernel.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/include/dahdi/kernel.h?view=diff&rev=9421&r1=9420&r2=9421
==============================================================================
--- linux/trunk/include/dahdi/kernel.h (original)
+++ linux/trunk/include/dahdi/kernel.h Wed Sep 29 17:00:22 2010
@@ -377,7 +377,7 @@
/*! The echocan enabled its NLP automatically.
*/
u32 NLP_auto_enabled:1;
- };
+ } bit;
} events;
};
More information about the svn-commits
mailing list