uda1341声卡驱动 平台:S3C2440+Linux 2.6.18.2 GCC:3.4.1 编译环境:RedHat 9.0 内核配置: Sound card support S3C2440 Sound devices --> S3C2440 uda1341TS driver 声卡的IC是uda1341TS,如果此时编译内核make uImage会返回 sound/built-in.o:(.text+0xXXXX)In funcion '$a' undefine reference 'l3_write': ... 信息.这是因为你的内核没有支持 L3 Sopport 这样make的时候就没有把L3的头头文件包含进来. L3...
by owen0725 - Linux文档专区 - 2007-06-28 23:04:52 阅读(704) 回复(0)
平台信息:Linux2.6.28+s3c2440 前言:由于最近需要在s3c2440上调试声卡驱动,达到左右声道可以同时录放音的功能。 我在google上搜索,网上像分析uda1341驱动的真的很多,有人多高手都分析的相当到位,呵呵,小弟学习了他们的经验的基础上,终于调试出了可以做全双工使用的声卡驱动。同时编写了上层接口函数,测试完全通过。 static int __init s3c2410_uda1341_init ( void ) { memzero ( &input_stream, sizeof ( a...
static struct device *this_dev; typedef struct { int size; /* buffer size */ char *start; /* point to actual buffer */ dma_addr_t dma_addr; /* physical buffer address */ struct semaphore sem; /* down before touching the buffer */ int master; /* owner for buffer allocation, contain size when true */ int dma_size; } audio_buf_t; typedef struct { audio_buf_t *buffers; /* pointer to audio ...
uda1341播、录音[zt] 2008-05-15 15:16:15 转自:http://www.hhcn.com/cgi-bin/topic.cgi?forum=3&topic=613 static ssize_t smdk2410_audio_read(struct file *file, char *buffer, size_t count, loff_t * ppos) { const char *buffer0 = buffer; audio_stream_t *s = &input_stream; int chunksize, ret = 0; DPRINTK("audio_read: count=%d\n", count); /* if (ppos != &file->f_pos) return -ESPIPE; */ if (!s...
将音频驱动从2.6.12上移植到2.6.18内核中。不知道我的方法对不对?直接将音频驱动编译成模块再插入。在网上有的人编译三个模块(snd.ko、soundcore.ko和s3c2410-uda1341.ko)我只有一个,也不知道另个两个是那个文件编译得来的! 之前的音频驱动是静态加载到内核到中,后面我移植到18内核上是采用模块式的。编译可以通过,再进行插入模块也没有问题!可是一运行测试DOME程序时,就出现下面的问题! Unable to handle kernel NULL p...
将音频驱动从2.6.12上移植到2.6.18内核中。不知道我的方法对不对?直接将音频驱动编译成模块再插入。在网上有的人编译三个模块(snd.ko、soundcore.ko和s3c2410-uda1341.ko)我只有一个,也不知道另个两个是那个文件编译得来的! 之前的音频驱动是静态加载到内核到中,后面我移植到18内核上是采用模块式的。编译可以通过,再进行插入模块也没有问题!可是一运行测试DOME程序时,就出现下面的问题! Unable to handle kernel NULL p...
/* * Philips uda1341 Audio Device Driver for S3C2410 Linux * * Copyright (C) 2002 MIZI Research, Inc. * history: * 2004-6-18 chang function audio_set_dsp_speed() for other audio sample * by threewater * */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inc...