VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
kernel at tekno-soft.it Guest
|
Posted: Thu Nov 05, 2015 12:37 pm Post subject: [asterisk-users] DAHDI driver question for custom card |
|
|
Hi All,
Not sure if this is the right mailing list since the dahdi-dev seems not really active, so I'll try here.
I'm developing a new DAHDI driver for a custom board. In this card I've implemented the reading of
the TDM slots by 2 DMA channels, TX and RX. Each DMA channel has its own callback that
decompose the each slot into a per-channel linear buffer useful for calling the related dahdi_transmit()
and dahdi_receive() functions.
The question is, can I call the dahdi_transmit() from the TX DMA callback and the dahdi_receive() from
the RX DMA callback or should use a particular order for them?
Looking at the DAHDI drivers it seems that the sequence is always: dahdi_ec_chunk() -> dahdi_receive()
and then dahdi_transmit().
Thanks in advance,
Roberto Fichera.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
rmeyerriecks at digium... Guest
|
Posted: Thu Nov 05, 2015 2:57 pm Post subject: [asterisk-users] DAHDI driver question for custom card |
|
|
On Thu, Nov 5, 2015 at 11:36 AM, Roberto Fichera <kernel@tekno-soft.it> wrote:
Quote: | The question is, can I call the dahdi_transmit() from the TX DMA callback and the dahdi_receive() from
the RX DMA callback or should use a particular order for them?
|
I don't think it will be a problem to call them asynchronously.
Depending on your signal, _dahdi_transmit() and _dahdi_recieve() can
potentially do a lot of processing. They're better suited in a bottom
half than in interrupt context.
--
Russ Meyerriecks
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
direct: +1 256-428-6025
Check us out at: www.digium.com & www.asterisk.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
kernel at tekno-soft.it Guest
|
Posted: Thu Nov 05, 2015 4:26 pm Post subject: [asterisk-users] DAHDI driver question for custom card |
|
|
On 11/05/2015 08:56 PM, Russ Meyerriecks wrote:
Quote: | On Thu, Nov 5, 2015 at 11:36 AM, Roberto Fichera <kernel@tekno-soft.it> wrote:
Quote: | The question is, can I call the dahdi_transmit() from the TX DMA callback and the dahdi_receive() from
the RX DMA callback or should use a particular order for them?
| I don't think it will be a problem to call them asynchronously.
Depending on your signal, _dahdi_transmit() and _dahdi_recieve() can
potentially do a lot of processing. They're better suited in a bottom
half than in interrupt context.
| Ok! Then I'll just copy the data and schedule the related TX or RX work.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|