File: README.VTCore

package info (click to toggle)
vpb-driver 4.2.52-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,508 kB
  • ctags: 5,880
  • sloc: cpp: 26,240; ansic: 19,045; sh: 3,027; perl: 1,132; makefile: 756; asm: 182
file content (100 lines) | stat: -rw-r--r-- 3,019 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
README.VTCore
=============

Last updated: 15 Jan 2007


Introduction
------------

With the introduction of our new OpenPCI card we have started a new kernel 
driver design. It is a modular design where the user space programs speak to 
the cards via the "vtcore" module. The hardware specific modules then plug
into the vtcore module. This provides a unified interface to the vpb-library
as well as offering better board interoperability (eg voice bridging). 
We plan of having a number of helper modules including:
	host echo canceller
	dtmf/tone detector
	dtmf/tone generator


Host DSP and configuration
--------------------------

With the new kernel modules there is now a new "host dsp", based along the
lines as the original hostdsp.cpp for the vpbhp (OpenSwitch) driver. The new
host dsp will actually support all of vtcore based cards. The new host dsp will
only be using the one config file for all the cards. This means that you will
still have the "vpb.conf" config file, and the new "vtcore.conf" config file.
The new file is very similar to the old "openswitch.conf" type config files.
Here is an example of a vtcore.conf file using an OpenPci and an OpenSwitch:

[general]
name  = vtcore
cards = 2

[card0]
type = openswitch
bal1 = 0xf0
bal2 = 0x5d
bal3 = 0x78
chan = 8
chan = 9
chan = 10
chan = 11

[card1]
type = openpci

hwplaygain   = 12
hwrecordgain = 12
chan = 0

hwplaygain   = -12
hwrecordgain = -12
chan = 1

The [general] section is basically the same as other config files. The [cardN]
sections can be broken down to two parts, the first part telling the library
what the card is, and the second part telling it extra configuration options.
The first part needs the "type" parameter and any options that apply to all
ports on the card, such as:

	dtmfms => set the duration for generated dtmf
	cutthrough => gain reduction while recording

The rest is a "fall through" configuration section.  This means the options
that are set will apply to all chan's that follow them.  They may be specified
multiple times if different settings are desired for individual ports or for
groups of ports.  Currently these options include:

    OpenSwitch
    ----------
	bal1, bal2, bal3 => Codec Hybrid balance registers
	hwplaygain, hwrecordgain => Codec gain values
	playgain, recordgain => software gain values
	country => override the global setting for individual ports
	logging => port is used for logging, not two-way comms.
	
    OpenPCI
    -------
	hwplaygain, hwrecordgain => Codec gain values
	playgain, recordgain => software gain values
	country => override the global setting for individual ports
	logging => port is used for logging, not two-way comms.
	fxs_impedance => override the country default impedance for fxs ports.
	fxo_impedance => override the country default impedance for fxo ports.

The "vpb.conf" file for this would look like this:

[general]
name      = general
country   = 61
verbosity = 0

[configs]
vtcore = /etc/vpb/vtcore.conf

[cards]
0 = openswitch:0
1 = openpci:1