3 ifx_tapi_pcm_cfg_set, 4 ifx_tapi_pcm_cfg_get, Ifx_tapi_pcm_cfg_set – Maxim Integrated 73M1866B/73M1966B Infineon TAPI High-Level Driver User Manual
Page 11: Ifx_tapi_pcm_cfg_get
UG_1x66B_021
73M1866B/73M1966B TAPI High-Level Driver User Guide
Rev. 2.2
11
3.3 IFX_TAPI_PCM_CFG_SET
Description
This ioctl configure the time slot for the PCM channel.
#define IFX_TAPI_PCM_CFG_SET _IO(IFX_TAPI_IOC_MAGIC, 0x04)
Prototype
int ioctl (
int chan_fd,
int IFX_TAPI_PCM_CFG_SET,
unsigned long param );
Parameters
Data Type
Name
Description
int
chan_fd
Channel descriptor.
int
IFX_TAPI_PCM_CFG_SET
I/O control identifier for this operation.
unsigned long
param
The parameter points to a
IFX_TAPI_PCM_CFG_t
structure.
Return Values
Data Type
Description
int
IFX_ERROR – Failed to configure PCM channel.
IFX_SUCCESS – Successful.
3.4 IFX_TAPI_PCM_CFG_GET
Description
This ioctl retrieves the current time slot configuration for the PCM channel.
#define IFX_TAPI_PCM_CFG_GET _IO(IFX_TAPI_IOC_MAGIC, 0x05)
Prototype
int ioctl (
int chan_fd,
int IFX_TAPI_PCM_CFG_GET,
unsigned long param );
Parameters
Data Type
Name
Description
int
chan_fd
Channel descriptor.
int
IFX_TAPI_PCM_CFG_GET
I/O control identifier for this operation.
unsigned long
param
The parameter points to a
IFX_TAPI_PCM_CFG_t
structure.
Return Values
Data Type
Description
int
IFX_ERROR – Failed to retrieve PCM config.
IFX_SUCCESS – Successful.