/*****************************************************************************
 * Copyright (C) Gemalto M2M GmbH
 *****************************************************************************
 * Project: IMC-RIL-Driver
 *****************************************************************************
 * Author : Wireless Modules RD SW A2
 *****************************************************************************
 * $Workfile: Y:/z_ms-d/src/working/Quinn/RilDrv/voice.h $
 * $Revision: /main/ms-d/14 $
 *     $Date: 2013-03-04 13:20:03 $
 *   $Author: pmackent $
 *****************************************************************************
 * Target:
 *  Microsoft Windows Mobile 5.0
 *****************************************************************************
 * Description:
 *  Gemalto IMC RIL
 *****************************************************************************
 *
 * $Log: Y:/z_ms-d/src/working/Quinn/RilDrv/voice.h$ 
 * 
 * /main/ms-d/14   2013-03-04 13:20:03   pmackent 
 * Adaptions for EHS5 1.300
 *
 * /main/ms-d/13   2012-10-24 10:55:37   pmackent
 * Allow different audio configuration for CDMA and GSM
 *
 * /main/ms-d/12   2012-01-13 10:09:49   ctna0256
 * Implement audio workaround with SNFO/SNFI set to 0 (IPIS100076299)
 *
 * /main/ms-d/11   2012-01-06 14:34:08   ctna0256
 * New workaround for SNFO/SNFI settings (IPIS100076299)
 *
 * /main/ms-d/10   2011-12-22 10:45:20   ctna0256
 * Optional separation of audio commands (IPIS100076299)
 *
 * /main/ms-d/9   2011-01-20 15:04:03   ctna0256
 * Newly supported RIL-API: RIL_GetAudioDevices()
 *
 * /main/ms-d/8   2010-07-02 15:58:45   ctna0256
 * Introduce SAIC-settings and modified SNFO for PH8
 *
 * /main/ms-d/7   2009-05-05 10:21:57   ctna0256
 * Deactivate AT^SNFO and AT^SNFI with registry key.
 *
 * /main/ms-d/6   2009-01-22 10:17:32   ctna0256
 * Optional re-call of RHA_ConfirmAudioMode after RHA_ActivateVoicePath
 *
 * /main/ms-d/5   2008-09-23 16:14:53   ctna0256
 * Mute during VTS (optional)
 *
 * /main/ms-d/4   2008-08-22 10:28:32   ctna0256
 * Set Cinterion copyright text
 *
 * /main/ms-d/3   2008-08-21 09:33:47   ctna0256
 * Prepared for new disclaimer handling
 *
 * /main/ms-d/2   2007-04-26 14:24:45   mp49210
 * IPIS100035548: new RIL option: disable audio settings
 *
 * /main/ms-d/1   2006-10-25 16:52:36   wm36264
 * First transformation from classic RIL
 *
*/

//////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2008 Gemalto M2M GmbH
// Copyright (C) 2006-2008 Siemens AG
// Copyright (C) 2003 Intrinsyc Europe Ltd.
//
// Version: 1.0
// Date:    dummy
//
//////////////////////////////////////////////////////////////////////////////

/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) 1995-1999  Microsoft Corporation
--*/

#pragma once

HRESULT RILDrv_GetAudioGain(DWORD dwParam);
HRESULT RILDrv_SetAudioGain(DWORD dwParam, const RILGAININFO* lpGainInfo);
HRESULT RILDrv_GetAudioDevices(DWORD dwParam);
HRESULT RILDrv_SetAudioDevices(DWORD dwParam, const RILAUDIODEVICEINFO* lpAudioDeviceInfo);
HRESULT RILDrv_GetAudioMuting(DWORD dwParam);
HRESULT RILDrv_SetAudioMuting(DWORD dwParam, BOOL fEnable);

HRESULT ParseGetAudioMuting(LPCSTR szRsp, void*& pBlob, UINT& cbBlob, LPVOID pParam);
void GenerateAudioATCmd(char *szCmd, char *szCmd2, DWORD dwDevice, CRilHandle *pDevice);
void PerformDoubleAudioCheck(CRilHandle *pDevice, DWORD dwDevice);
const char *GetResetAudioParams(BOOL fFullATCmd);

extern BOOL g_fNoAudioSettings;
extern DWORD g_dwUseSNFOSNFI;
extern DWORD g_dwSeparateAudioATCmds;
extern DWORD g_dwModifyAudioSettingsFirst;
extern DWORD g_dwAlwaysZeroAudioParameters;
extern UINT g_dwLastMuteSetting;
extern DWORD g_dwCacheUplinkVolume;
extern DWORD g_dwCacheDownlinkVolume;
