beautypg.com

M1966_phone_volume_set – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual

Page 35

background image

UG_1x66B_015

73M1866B/73M1966B Reference Driver User Guide

Rev. 2.7

35

6.1.17 M1966_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 M1966_PHONE_VOLUME_SET

_IOWR(0xA4,0xCA,unsigned int)


Prototype

int ioctl (

int chan_fd,

int M1966_PHONE_VOLUME_SET,

unsigned long param );


Parameters

Data Type

Name

Description

int

chan_fd

Channel descriptor.

int

M1966_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.