audasc.c
来自「台湾凌阳方案300万数码相机源代码」· C语言 代码 · 共 75 行
C
75 行
/*++
Copyright (c) 2001 Sunplus Technology Co., Ltd.
Module Name:
audasc.c
Abstract:
Module related to alternate setting change of audio interface
Environment:
Keil C51 Compiler
Revision History:
08/28/2001 Chi-Yeh Tsai created
--*/
//=============================================================================
//Header file
//=============================================================================
#include "general.h"
#if (AUDIO_OPTION == 1)
#include "audio.h"
#include "audasc.h"
//=============================================================================
//Symbol
//=============================================================================
//-----------------------------------------------------------------------------
//Constant
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//Variable
//-----------------------------------------------------------------------------
//=============================================================================
//Program
//=============================================================================
//-----------------------------------------------------------------------------
//AUDASC_Packet
//-----------------------------------------------------------------------------
/*++
Routine Description:
process alternate setting change of audio interface
Arguments:
none
Return Value:
none
--*/
void AUDASC_Packet(void) USING_1
{
BYTE audAS;
audAS = L2_GetUsbAudioAlternateSetting();
L2_WrAC97Reg(K_AC_Index_SampleRate0, AudAS_SampleRate[audAS]);
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?