M1966_sample_rate – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual
Page 38

73M1866B/73M1966B Reference Driver User Guide
UG_1x66B_015
38
Rev. 2.7
6.1.20 M1966_SAMPLE_RATE
Description
Select PCM sample rate. The 1x66 device can operate in one of two sample rates – 8 kHz or 16 kHz
sample rate. The device defaults to 8 kHz operation upon startup and can be changed to run at 16 kHz
using this ioctl.
Notes: Changing of PCM sample rate will affect the followings:
1. Data presented in PCM timeslots - reallocation of transmit and receive timeslots may be
necessary or required to properly communicate with peer interface.
2. Barrier interface operation - a momentarily lost of synchronization on the barrier interface is
expected. However, the driver will automatically attempt to recover barrier synchronization. The
SYNC lost event is sent and should be followed by SYNC restored event when the barrier is
synced up again.
#define M1966_SAMPLE_RATE _IOWR(0xA4, 0xA8, unsigned int)
Prototype
int ioctl (
int chan_fd,
int M1966_SAMPLE_RATE,
unsigned long param );
Parameters
Data Type
Name
Description
int
chan_fd
Channel descriptor.
int
M1966_SAMPLE_RATE
I/O control identifier for this operation.
unsigned long
Param
Sample rate selection as defined in
M1966_SAMPLE_RATE_SELECTION.
Return Values
Data Type
Description
int
0 – Successful.
-EFAULT– Failed to set sample rate.