diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /drivers/telephony | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'drivers/telephony')
| -rw-r--r-- | drivers/telephony/Kconfig | 47 | ||||
| -rw-r--r-- | drivers/telephony/Makefile | 7 | ||||
| -rw-r--r-- | drivers/telephony/ixj-ver.h | 4 | ||||
| -rw-r--r-- | drivers/telephony/ixj.c | 10552 | ||||
| -rw-r--r-- | drivers/telephony/ixj.h | 1322 | ||||
| -rw-r--r-- | drivers/telephony/ixj_pcmcia.c | 187 | ||||
| -rw-r--r-- | drivers/telephony/phonedev.c | 167 |
7 files changed, 12286 insertions, 0 deletions
diff --git a/drivers/telephony/Kconfig b/drivers/telephony/Kconfig new file mode 100644 index 00000000000..b5f78b6ed2b --- /dev/null +++ b/drivers/telephony/Kconfig | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | # | ||
| 2 | # Telephony device configuration | ||
| 3 | # | ||
| 4 | |||
| 5 | menuconfig PHONE | ||
| 6 | tristate "Telephony support" | ||
| 7 | depends on HAS_IOMEM | ||
| 8 | ---help--- | ||
| 9 | Say Y here if you have a telephony card, which for example allows | ||
| 10 | you to use a regular phone for voice-over-IP applications. | ||
| 11 | |||
| 12 | Note: this has nothing to do with modems. You do not need to say Y | ||
| 13 | here in order to be able to use a modem under Linux. | ||
| 14 | |||
| 15 | To compile this driver as a module, choose M here: the | ||
| 16 | module will be called phonedev. | ||
| 17 | |||
| 18 | if PHONE | ||
| 19 | |||
| 20 | config PHONE_IXJ | ||
| 21 | tristate "QuickNet Internet LineJack/PhoneJack support" | ||
| 22 | depends on ISA || PCI | ||
| 23 | ---help--- | ||
| 24 | Say M if you have a telephony card manufactured by Quicknet | ||
| 25 | Technologies, Inc. These include the Internet PhoneJACK and | ||
| 26 | Internet LineJACK Telephony Cards. You will get a module called | ||
| 27 | ixj. | ||
| 28 | |||
| 29 | For the ISA versions of these products, you can configure the | ||
| 30 | cards using the isapnp tools (pnpdump/isapnp) or you can use the | ||
| 31 | isapnp support. Please read <file:Documentation/telephony/ixj.txt>. | ||
| 32 | |||
| 33 | For more information on these cards, see Quicknet's web site at: | ||
| 34 | <http://www.quicknet.net/>. | ||
| 35 | |||
| 36 | If you do not have any Quicknet telephony cards, you can safely | ||
| 37 | say N here. | ||
| 38 | |||
| 39 | config PHONE_IXJ_PCMCIA | ||
| 40 | tristate "QuickNet Internet LineJack/PhoneJack PCMCIA support" | ||
| 41 | depends on PHONE_IXJ && PCMCIA | ||
| 42 | help | ||
| 43 | Say Y here to configure in PCMCIA service support for the Quicknet | ||
| 44 | cards manufactured by Quicknet Technologies, Inc. This changes the | ||
| 45 | card initialization code to work with the card manager daemon. | ||
| 46 | |||
| 47 | endif # PHONE | ||
diff --git a/drivers/telephony/Makefile b/drivers/telephony/Makefile new file mode 100644 index 00000000000..1206615d69e --- /dev/null +++ b/drivers/telephony/Makefile | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # | ||
| 2 | # Makefile for drivers/telephony | ||
| 3 | # | ||
| 4 | |||
| 5 | obj-$(CONFIG_PHONE) += phonedev.o | ||
| 6 | obj-$(CONFIG_PHONE_IXJ) += ixj.o | ||
| 7 | obj-$(CONFIG_PHONE_IXJ_PCMCIA) += ixj_pcmcia.o | ||
diff --git a/drivers/telephony/ixj-ver.h b/drivers/telephony/ixj-ver.h new file mode 100644 index 00000000000..2031ac6c888 --- /dev/null +++ b/drivers/telephony/ixj-ver.h | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | /* configuration management identifiers */ | ||
| 2 | #define IXJ_VER_MAJOR 1 | ||
| 3 | #define IXJ_VER_MINOR 0 | ||
| 4 | #define IXJ_BLD_VER 1 | ||
diff --git a/drivers/telephony/ixj.c b/drivers/telephony/ixj.c new file mode 100644 index 00000000000..d5f923bcdff --- /dev/null +++ b/drivers/telephony/ixj.c | |||
| @@ -0,0 +1,10552 @@ | |||
| 1 | /**************************************************************************** | ||
| 2 | * ixj.c | ||
| 3 | * | ||
| 4 | * Device Driver for Quicknet Technologies, Inc.'s Telephony cards | ||
| 5 | * including the Internet PhoneJACK, Internet PhoneJACK Lite, | ||
| 6 | * Internet PhoneJACK PCI, Internet LineJACK, Internet PhoneCARD and | ||
| 7 | * SmartCABLE | ||
| 8 | * | ||
| 9 | * (c) Copyright 1999-2001 Quicknet Technologies, Inc. | ||
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * Author: Ed Okerson, <eokerson@quicknet.net> | ||
| 17 | * | ||
| 18 | * Contributors: Greg Herlein, <gherlein@quicknet.net> | ||
| 19 | * David W. Erhart, <derhart@quicknet.net> | ||
| 20 | * John Sellers, <jsellers@quicknet.net> | ||
| 21 | * Mike Preston, <mpreston@quicknet.net> | ||
| 22 | * | ||
| 23 | * Fixes: David Huggins-Daines, <dhd@cepstral.com> | ||
| 24 | * Fabio Ferrari, <fabio.ferrari@digitro.com.br> | ||
| 25 | * Artis Kugevics, <artis@mt.lv> | ||
| 26 | * Daniele Bellucci, <bellucda@tiscali.it> | ||
| 27 | * | ||
| 28 | * More information about the hardware related to this driver can be found | ||
| 29 | * at our website: http://www.quicknet.net | ||
| 30 | * | ||
| 31 | * IN NO EVENT SHALL QUICKNET TECHNOLOGIES, INC. BE LIABLE TO ANY PARTY FOR | ||
| 32 | * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT | ||
| 33 | * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF QUICKNET | ||
| 34 | * TECHNOLOGIES, INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 35 | * | ||
| 36 | * QUICKNET TECHNOLOGIES, INC. SPECIFICALLY DISCLAIMS ANY WARRANTIES, | ||
| 37 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY | ||
| 38 | * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS | ||
| 39 | * ON AN "AS IS" BASIS, AND QUICKNET TECHNOLOGIES, INC. HAS NO OBLIGATION | ||
| 40 | * TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | ||
| 41 | * | ||
| 42 | ***************************************************************************/ | ||
| 43 | |||
| 44 | /* | ||
| 45 | * Revision 4.8 2003/07/09 19:39:00 Daniele Bellucci | ||
| 46 | * Audit some copy_*_user and minor cleanup. | ||
| 47 | * | ||
| 48 | * Revision 4.7 2001/08/13 06:19:33 craigs | ||
| 49 | * Added additional changes from Alan Cox and John Anderson for | ||
| 50 | * 2.2 to 2.4 cleanup and bounds checking | ||
| 51 | * | ||
| 52 | * Revision 4.6 2001/08/13 01:05:05 craigs | ||
| 53 | * Really fixed PHONE_QUERY_CODEC problem this time | ||
| 54 | * | ||
| 55 | * Revision 4.5 2001/08/13 00:11:03 craigs | ||
| 56 | * Fixed problem in handling of PHONE_QUERY_CODEC, thanks to Shane Anderson | ||
| 57 | * | ||
| 58 | * Revision 4.4 2001/08/07 07:58:12 craigs | ||
| 59 | * Changed back to three digit version numbers | ||
| 60 | * Added tagbuild target to allow automatic and easy tagging of versions | ||
| 61 | * | ||
| 62 | * Revision 4.3 2001/08/07 07:24:47 craigs | ||
| 63 | * Added ixj-ver.h to allow easy configuration management of driver | ||
| 64 | * Added display of version number in /prox/ixj | ||
| 65 | * | ||
| 66 | * Revision 4.2 2001/08/06 07:07:19 craigs | ||
| 67 | * Reverted IXJCTL_DSP_TYPE and IXJCTL_DSP_VERSION files to original | ||
| 68 | * behaviour of returning int rather than short * | ||
| 69 | * | ||
| 70 | * Revision 4.1 2001/08/05 00:17:37 craigs | ||
| 71 | * More changes for correct PCMCIA installation | ||
| 72 | * Start of changes for backward Linux compatibility | ||
| 73 | * | ||
| 74 | * Revision 4.0 2001/08/04 12:33:12 craigs | ||
| 75 | * New version using GNU autoconf | ||
| 76 | * | ||
| 77 | * Revision 3.105 2001/07/20 23:14:32 eokerson | ||
| 78 | * More work on CallerID generation when using ring cadences. | ||
| 79 | * | ||
| 80 | * Revision 3.104 2001/07/06 01:33:55 eokerson | ||
| 81 | * Some bugfixes from Robert Vojta <vojta@ipex.cz> and a few mods to the Makefile. | ||
| 82 | * | ||
| 83 | * Revision 3.103 2001/07/05 19:20:16 eokerson | ||
| 84 | * Updated HOWTO | ||
| 85 | * Changed mic gain to 30dB on Internet LineJACK mic/speaker port. | ||
| 86 | * | ||
| 87 | * Revision 3.102 2001/07/03 23:51:21 eokerson | ||
| 88 | * Un-mute mic on Internet LineJACK when in speakerphone mode. | ||
| 89 | * | ||
| 90 | * Revision 3.101 2001/07/02 19:26:56 eokerson | ||
| 91 | * Removed initialiazation of ixjdebug and ixj_convert_loaded so they will go in the .bss instead of the .data | ||
| 92 | * | ||
| 93 | * Revision 3.100 2001/07/02 19:18:27 eokerson | ||
| 94 | * Changed driver to make dynamic allocation possible. We now pass IXJ * between functions instead of array indexes. | ||
| 95 | * Fixed the way the POTS and PSTN ports interact during a PSTN call to allow local answering. | ||
| 96 | * Fixed speaker mode on Internet LineJACK. | ||
| 97 | * | ||
| 98 | * Revision 3.99 2001/05/09 14:11:16 eokerson | ||
| 99 | * Fixed kmalloc error in ixj_build_filter_cadence. Thanks David Chan <cat@waulogy.stanford.edu>. | ||
| 100 | * | ||
| 101 | * Revision 3.98 2001/05/08 19:55:33 eokerson | ||
| 102 | * Fixed POTS hookstate detection while it is connected to PSTN port. | ||
| 103 | * | ||
| 104 | * Revision 3.97 2001/05/08 00:01:04 eokerson | ||
| 105 | * Fixed kernel oops when sending caller ID data. | ||
| 106 | * | ||
| 107 | * Revision 3.96 2001/05/04 23:09:30 eokerson | ||
| 108 | * Now uses one kernel timer for each card, instead of one for the entire driver. | ||
| 109 | * | ||
| 110 | * Revision 3.95 2001/04/25 22:06:47 eokerson | ||
| 111 | * Fixed squawking at beginning of some G.723.1 calls. | ||
| 112 | * | ||
| 113 | * Revision 3.94 2001/04/03 23:42:00 eokerson | ||
| 114 | * Added linear volume ioctls | ||
| 115 | * Added raw filter load ioctl | ||
| 116 | * | ||
| 117 | * Revision 3.93 2001/02/27 01:00:06 eokerson | ||
| 118 | * Fixed blocking in CallerID. | ||
| 119 | * Reduced size of ixj structure for smaller driver footprint. | ||
| 120 | * | ||
| 121 | * Revision 3.92 2001/02/20 22:02:59 eokerson | ||
| 122 | * Fixed isapnp and pcmcia module compatibility for 2.4.x kernels. | ||
| 123 | * Improved PSTN ring detection. | ||
| 124 | * Fixed wink generation on POTS ports. | ||
| 125 | * | ||
| 126 | * Revision 3.91 2001/02/13 00:55:44 eokerson | ||
| 127 | * Turn AEC back on after changing frame sizes. | ||
| 128 | * | ||
| 129 | * Revision 3.90 2001/02/12 16:42:00 eokerson | ||
| 130 | * Added ALAW codec, thanks to Fabio Ferrari for the table based converters to make ALAW from ULAW. | ||
| 131 | * | ||
| 132 | * Revision 3.89 2001/02/12 15:41:16 eokerson | ||
| 133 | * Fix from Artis Kugevics - Tone gains were not being set correctly. | ||
| 134 | * | ||
| 135 | * Revision 3.88 2001/02/05 23:25:42 eokerson | ||
| 136 | * Fixed lockup bugs with deregister. | ||
| 137 | * | ||
| 138 | * Revision 3.87 2001/01/29 21:00:39 eokerson | ||
| 139 | * Fix from Fabio Ferrari <fabio.ferrari@digitro.com.br> to properly handle EAGAIN and EINTR during non-blocking write. | ||
| 140 | * Updated copyright date. | ||
