Linux-2.6.32 ported to mini2440 development board - ported UDA1341 audio driver

Publisher:Yuexiang666Latest update time:2024-06-19 Source: elecfansKeywords:linux  mini2440  UDA1341 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Add UDA1341 device structure to the initialization file
Linux-2.6.32.2 has perfectly supported the driver of UDA1341 audio chip. We only need to register the control port of UDA1341 platform device in arch/arm/mach-s3c2440/mach-mini2440.c file. Open mach-mini2440.c and add the following content: ; Add header file #include

to the beginning of the file ; Add UDA1341 device structure after LCD platform device static struct s3c24xx_uda134x_platform_data s3c24xx_uda134x_data = { .l3_clk = S3C2410_GPB(4), .l3_data = S3C2410_GPB(3), .l3_mode = S3C2410_GPB(2), .model = UDA134X_UDA1341, }; static struct platform_device s3c24xx_uda134x = { .name = "s3c24xx_uda134x", .dev = { .platform_data = &s3c24xx_uda134x_data, } }; ;Register UDA1341 device platform to the kernel static struct platform_device *mini2440_devices[] __initdata = { &s3c_device_usb, &s3c_device_rtc, &s3c_device_lcd, &s3c_device_wdt, &s3c_device_i2c0, &s3c_device_iis, &mini2440_device_eth, &s3c24xx_uda134x, &s3c_device_nand, }; In this way, we have basically added the driver of the UDA1341 audio device. Next, we configure the driver in the kernel.



























2 Configure UDA1341 device driver in the kernel
Enter: make menuconfig in the kernel source code directory to start configuring the kernel, select the following submenus in turn, and find the audio driver configuration menu:
Device Drivers --->
<*> Sound card support --->
As shown in the figure, press the spacebar to select "[*] Preclaim OSS device numbers", then select "<*> Advanced Linux Sound Architecture --->", and press Enter to enter the submenu. The audio driver architecture menu appears. Here, we select the configuration options related to the OSS interface. It should
be noted that the OSS interface here is actually created based on the ALSA interface, because the new kernel has now switched to ALSA design. This is done for compatibility with previous software. Select the following

<*>OSS Mix API

<*>OSS PCM API

<*>verbose procfs cotnets

and then select the "<*> ALSA for SoC audio support --->" submenu and press Enter to enter. Our development board uses the UDA1341 audio chip, so of course we have to select "-*- SoC I2S Audio support UDA134X wired to a S3C24XX".
Exit to save the above configurations.


Keywords:linux  mini2440  UDA1341 Reference address:Linux-2.6.32 ported to mini2440 development board - ported UDA1341 audio driver

Previous article:Linux-2.6.32 transplanted on mini2440 development board - SD card driver transplanted
Next article:linux-2.6.32 ported to mini2440 development board - ported I2C-EEPROM driver

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号