⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sound_ioctl.h

📁 (1)基于部分u-boot代码自己调试的vxworks BSP (2)实现了nand/nor flash的tffs文件系统 (3)实现了对spi dataflash的访问 (4)实现了对启动参数
💻 H
字号:
/* sound_ioctl.h - Sound driver generic interface *//* Copyright 1999-2002 Wind River Systems, Inc. *//*modification history--------------------01b,26apr02,dat  Adding cplusplus protection, SPR 7501701a,03oct99,spm  created.*/#ifndef _INCsound_ioctlh#define _INCsound_ioctlh#ifndef linux#include "ioLib.h"#endif#ifdef __cplusplusextern "C" {#endiftypedef struct{  unsigned long rate;       /* Samples per second      */  unsigned int stereo;      /* 0=mono, 1=stereo        */  unsigned int sampleSize;  /* 8 or 16 bits per sample */  unsigned int uLaw;        /* 1 = uLaw, 0 = PCM       */} snd_info_t;#define SNDCTL_BASE                    0x4000#define SNDCTL_DSP_SYNC                (SNDCTL_BASE + 0x01)#define SNDCTL_DSP_GETBLKSIZE          (SNDCTL_BASE + 0x02)#define SNDCTL_DSP_SPEED               (SNDCTL_BASE + 0x11)#define SNDCTL_DSP_STEREO              (SNDCTL_BASE + 0x12)#define SNDCTL_DSP_SAMPLESIZE          (SNDCTL_BASE + 0x13)#define SNDCTL_DSP_SETFORMAT           (SNDCTL_BASE + 0x14)#define SNDCTL_GET_INFO                (SNDCTL_BASE + 0x21)#define SNDCTL_SET_INFO                (SNDCTL_BASE + 0x22)#define SNDCTL_SET_VOLUME              (SNDCTL_BASE + 0x23)#define SNDCTL_GET_VOLUME              (SNDCTL_BASE + 0x24)#ifdef __cplusplus}#endif#endif /* __INCsound_ioctlh */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -