[1/3][PATCH][upstream]Adding documentation for TDM

David Laight David.Laight at ACULAB.COM
Mon Jul 23 22:32:20 EST 2012


> +3. TDM has programmable slot length (8 bits or 16 bits). This can be
> +   configured by:
> +
> +	#define NUM_BYTES_PER_SLOT	8

I presume you meant NUM_BITS_PER_SLOT ?
These constants need name-space protection

> +or
> +	#define NUM_BYTES_PER_SLOT	16
> +
> +depending on the type of sample. For example the sample could be 16
> +bit linear +or 8bit u-law encoded etc.
> +Presently only word length of 16 is supported
> +which is the default configuration.

For flexibility you need to allow for 8bit samples
being converted as:
1) 8bit raw ulaw or alaw data (unchanged from line).
2) 8bit raw data, bit reversed, any hdlc protocol
   is bit reversed from audio [1].
3) 8bit audio, converted from alaw to ulaw
4) 8bit audio, converted from ulaw to alaw
5) 16bit linear converted to/from alaw or ulaw
and on a per-timeslot basis.

[1] most hdlc stuff probably can't stand the 10ms
epochs though, so this is limited use for serious work.

	David





More information about the Linuxppc-dev mailing list