M1x22_phone_volume_set – Maxim Integrated 73M1822/73M1922 Control Module User Manual

Page 26

Advertising
background image

73M1822/73M1922 Control Module User Guide

UG_1x22_053

26

Rev. 1.0

6.1.5 M1X22_PHONE_VOLUME_SET

Description

The gain of both transmit and receive path can be controlled by digital and/or analog means. This IOCTL
provides an easy way to set the transmit and receive gain.

#define M1X22_PHONE_VOLUME_SET

_IOWR(0xA4,0xCA,unsigned int)


Prototype

int ioctl (

int chan_fd,

int M1X22_PHONE_VOLUME_SET,

unsigned long param );


Parameters

Data Type

Name

Description

int

chan_fd

Channel descriptor.

int

M1X22_PHONE_VOLUME_SET I/O control identifier for this operation.

unsigned long

param

Pointer to structure txrx_gain (see Section
7.4)
.


Return Values

Data Type

Description

int

0 – Successful.
(-1) – Failed.


Advertising