Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /* speakup_dtlk.h - header file for speakups DoubleTalk driver. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) #define SYNTH_IO_EXTENT	0x02
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #define SYNTH_CLEAR	0x18		/* stops speech */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 	/* TTS Port Status Flags */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define TTS_READABLE	0x80	/* mask for bit which is nonzero if a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 				 * byte can be read from the TTS port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define TTS_SPEAKING	0x40	/* mask for SYNC bit, which is nonzero
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 				 * while DoubleTalk is producing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 				 * output with TTS, PCM or CVSD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 				 * synthesizers or tone generators
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 				 * (that is, all but LPC)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define TTS_SPEAKING2	0x20	/* mask for SYNC2 bit,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 				 * which falls to zero up to 0.4 sec
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 				 * before speech stops
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define TTS_WRITABLE	0x10	/* mask for RDY bit, which when set to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 				 * 1, indicates the TTS port is ready
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 				 * to accept a byte of data.  The RDY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 				 * bit goes zero 2-3 usec after
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 				 * writing, and goes 1 again 180-190
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 				 * usec later.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define TTS_ALMOST_FULL	0x08	/* mask for AF bit: When set to 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 				 * indicates that less than 300 bytes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 				 * are available in the TTS input
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 				 * buffer. AF is always 0 in the PCM,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 				 * TGN and CVSD modes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define TTS_ALMOST_EMPTY 0x04	/* mask for AE bit: When set to 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 				 * indicates that less than 300 bytes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 				 * are remaining in DoubleTalk's input
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 				 * (TTS or PCM) buffer. AE is always 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 				 * in the TGN and CVSD modes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 				/* data returned by Interrogate command */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) struct synth_settings {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	u_short serial_number;	/* 0-7Fh:0-7Fh */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	u_char rom_version[24]; /* null terminated string */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	u_char mode;		/* 0=Character; 1=Phoneme; 2=Text */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	u_char punc_level;	/* nB; 0-7 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	u_char formant_freq;	/* nF; 0-9 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	u_char pitch;		/* nP; 0-99 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	u_char speed;		/* nS; 0-9 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	u_char volume;		/* nV; 0-9 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 	u_char tone;		/* nX; 0-2 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 	u_char expression;	/* nE; 0-9 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 	u_char ext_dict_loaded; /* 1=exception dictionary loaded */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 	u_char ext_dict_status; /* 1=exception dictionary enabled */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 	u_char free_ram;	/* # pages (truncated) remaining for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 				 * text buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 	u_char articulation;	/* nA; 0-9 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 	u_char reverb;		/* nR; 0-9 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 	u_char eob;		/* 7Fh value indicating end of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 				 * parameter block
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 				 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 	u_char has_indexing;	/* nonzero if indexing is implemented */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) };