
嵌入式
文章平均质量分 83
heanyu
这个作者很懒,什么都没留下…
展开
-
Linux内核中的循环缓冲区
Linux内核中的循环缓冲区(circular buffer)为解决某些特殊情况下的竞争问题提供了一种免锁的方法。这种特殊的情况就是当生产者和消费者都只有一个,而在其它情况下使用它也是必须要加锁的。 循环缓冲区定义在include/linux/kfifo.h中,如下: struct kfifo { unsigned char *buffer; // buffer指向存放数据的缓冲区 unsigned int size; // size是缓冲区的大小 unsign原创 2011-03-31 15:31:00 · 4207 阅读 · 1 评论 -
Linux音频编程指南
一、数字音频 音频信号是一种连续变化的模拟信号,但计算机只能处理和记录二进制的数字信号,由自然音源得到的音频信号必须经过一定的变换,成为数字音频信号之后,才能送到计算机中作进一步的处理。 数字音频系统通过将声波的波型转换成一系列二进制数据,来实现对原始声音的重现,实现这一步骤的设备常被称为模/数转换器(A/D)。A/D转换器以每秒钟上万次的速率对声波进行采样,每原创 2011-04-21 20:12:00 · 1329 阅读 · 0 评论 -
Programming /dev/dsp
/dev/dsp is the digital sampling and digital recording device, and probably the most important for multimedia applications. Writing to the device accesses the D/A converter to produce sound. Reading the device activates the A/D converter for sound recordin原创 2011-04-21 20:22:00 · 2713 阅读 · 0 评论 -
How to modify the uboot environment from userspace
OverviewThis How-To is meant to be a starting point for people to learn how access to the uboot environment from userspace.This is my fi转载 2011-10-12 19:26:30 · 3434 阅读 · 0 评论