LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 684|回复: 2

请教:声卡移植的问题,

[复制链接]
发表于 2007-1-31 18:47:21 | 显示全部楼层 |阅读模式
这两个平台的 声卡芯片都是一样的,内核都是2。6,区别是版本不一样,平台的其他硬件不同;
该如何作,需要修改那些东西?
多谢指教!
 楼主| 发表于 2007-2-1 10:16:29 | 显示全部楼层
直接copy驱动,然后加入内核模块:修改Kconfig和Makefile,
1。Kconfig
menu "ALSA ARM devices"
        depends on SND!=n && ARM

config SND_S3C2410
        tristate "S3C24XX Sound core"
        depends on ARCH_S3C2410 && SND
        #select I2C_SENSOR
        select SND_PCM
        select SND_AC97_CODEC
        help
          Say Y here if you want to use the inbuilt audio controller
          on the S3C2410 or S3C2440
config SND_S3C24xx_AC97
        tristate "AC 97 driver for the cirrus S3C24xx chip"
        depends on ARCH_S3C2410&&SND
        select SND_S3C24xx_PCM
        select SND_AC97_CODEC
        help
         Say Y or M if you want to support any AC97 codec attached to the S3C24x         x  Ac97 interface
config SND_S3C24xx_PCM
        tristate
        select SND_PCM
"Kconfig" 25L, 639C                                           14,2-9        Top
2。Makefile:中加入代码
obj-$(CONFIG_SND_S3C24xx_PCM)+=s3c24xx-alsa-pcm.o
obj-$(CONFIG_SND_S2C24xx_AC97)+=s3c24xx-alsa-ac97.o

3。在make    menuconfig中选择:
AC 97 driver for the cirrus S3C24xx chip

4编译:make
5。出现如下错误:
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/compile.h
  CHK     usr/initramfs_list
  CC      sound/arm/s3c24xx-alsa-pcm.o
In file included from sound/arm/s3c24xx-alsa-pcm.c:39:
include/asm/arch/dma.h:237: error: parse error before "channel"
include/asm/arch/dma.h:238: warning: function declaration isn't a prototype
include/asm/arch/dma.h:246: error: parse error before "channel"
include/asm/arch/dma.h:246: warning: function declaration isn't a prototype
include/asm/arch/dma.h:253: error: parse error before "channel"
include/asm/arch/dma.h:254: warning: function declaration isn't a prototype
include/asm/arch/dma.h:261: error: parse error before "channel"
include/asm/arch/dma.h:261: warning: function declaration isn't a prototype
include/asm/arch/dma.h:270: error: parse error before "channel"
include/asm/arch/dma.h:271: warning: function declaration isn't a prototype
include/asm/arch/dma.h:278: error: parse error before "channel"
include/asm/arch/dma.h:278: warning: function declaration isn't a prototype
include/asm/arch/dma.h:293: error: parse error before "channel"
include/asm/arch/dma.h:294: warning: function declaration isn't a prototype
include/asm/arch/dma.h:296: error: parse error before "s3c2410_dma_opfn_t"
include/asm/arch/dma.h:296: warning: function declaration isn't a prototype
include/asm/arch/dma.h:297: error: parse error before "s3c2410_dma_cbfn_t"
include/asm/arch/dma.h:297: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c:40:32: asm/arch/regs_ac97.h: No such file or directory
In file included from sound/arm/s3c24xx-alsa-pcm.c:41:
sound/arm/ep93xx-alsa-pcm.h:82: error: parse error before "ep93xx_dma_int_t"
sound/arm/ep93xx-alsa-pcm.h:82: warning: no semicolon at end of struct or union
sound/arm/ep93xx-alsa-pcm.h:95: error: parse error before '}' token
sound/arm/ep93xx-alsa-pcm.h:95: warning: type defaults to `int' in declaration of `audio_stream_t'
sound/arm/ep93xx-alsa-pcm.h:95: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:102: error: parse error before "audio_stream_t"
sound/arm/ep93xx-alsa-pcm.h:102: warning: no semicolon at end of struct or union
sound/arm/ep93xx-alsa-pcm.h:103: warning: type defaults to `int' in declaration of `input_stream'
sound/arm/ep93xx-alsa-pcm.h:103: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:105: error: parse error before "output_dma"
sound/arm/ep93xx-alsa-pcm.h:105: warning: type defaults to `int' in declaration of `output_dma'
sound/arm/ep93xx-alsa-pcm.h:105: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:106: error: parse error before "input_dma"
sound/arm/ep93xx-alsa-pcm.h:106: warning: type defaults to `int' in declaration of `input_dma'
sound/arm/ep93xx-alsa-pcm.h:106: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:111: error: parse error before ':' token
sound/arm/ep93xx-alsa-pcm.h:112: error: parse error before ':' token
sound/arm/ep93xx-alsa-pcm.h:142: error: parse error before '}' token
sound/arm/ep93xx-alsa-pcm.h:142: warning: type defaults to `int' in declaration of `audio_state_t'
sound/arm/ep93xx-alsa-pcm.h:142: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:149: error: parse error before "audio_state_t"
sound/arm/ep93xx-alsa-pcm.h:149: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c:164: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:165: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_set_format':
sound/arm/s3c24xx-alsa-pcm.c:167: error: `val' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:167: error: (Each undeclared identifier is reported only once
sound/arm/s3c24xx-alsa-pcm.c:167: error: for each function it appears in.)
sound/arm/s3c24xx-alsa-pcm.c:170: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:207: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:212: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_U16_LE_CM':
sound/arm/s3c24xx-alsa-pcm.c:213: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:214: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:215: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:222: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:249: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:254: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_U16_LE':
sound/arm/s3c24xx-alsa-pcm.c:255: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:256: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:257: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:259: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:285: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:290: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_S16_LE_CM':
sound/arm/s3c24xx-alsa-pcm.c:291: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:292: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:293: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:300: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:327: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:332: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_S16_LE':
sound/arm/s3c24xx-alsa-pcm.c:333: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:334: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:335: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:337: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:363: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:368: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_S8_CM':
sound/arm/s3c24xx-alsa-pcm.c:369: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:370: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:371: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:374: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:401: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:406: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_S8':
sound/arm/s3c24xx-alsa-pcm.c:407: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:408: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:409: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:411: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:437: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:442: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_U8_CM':
sound/arm/s3c24xx-alsa-pcm.c:443: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:444: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:445: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:448: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:475: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:480: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_U8':
sound/arm/s3c24xx-alsa-pcm.c:481: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:482: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:483: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:485: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:516: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:521: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_with_conversion':
sound/arm/s3c24xx-alsa-pcm.c:524: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:534: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:539: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:539: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:593: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:598: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U16_LE_CM':
sound/arm/s3c24xx-alsa-pcm.c:601: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:602: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:603: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:604: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:652: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:657: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U16_LE':
sound/arm/s3c24xx-alsa-pcm.c:660: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:661: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:662: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:663: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:705: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:710: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_S16_LE_CM':
sound/arm/s3c24xx-alsa-pcm.c:713: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:714: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:715: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:716: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:755: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:760: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_S16_LE':
sound/arm/s3c24xx-alsa-pcm.c:763: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:764: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:765: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:766: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:808: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:813: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_S8_CM':
sound/arm/s3c24xx-alsa-pcm.c:816: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:817: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:818: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:819: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:857: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:862: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_S8':
sound/arm/s3c24xx-alsa-pcm.c:865: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:866: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:867: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:868: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:910: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:915: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U8_CM':
sound/arm/s3c24xx-alsa-pcm.c:916: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:917: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:920: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:922: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:960: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:965: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U8':
sound/arm/s3c24xx-alsa-pcm.c:966: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:967: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:971: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:972: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1015: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1020: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U32':
sound/arm/s3c24xx-alsa-pcm.c:1021: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1021: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1021: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1036: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1041: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_n_convert':
sound/arm/s3c24xx-alsa-pcm.c:1044: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1053: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1058: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1058: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1132: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1133: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `scale_to_expanded_samples':
sound/arm/s3c24xx-alsa-pcm.c:1134: error: `input_bufsize' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1137: error: `os' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1138: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:1140: error: `dir' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1141: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1212: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1213: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_dma_start':
sound/arm/s3c24xx-alsa-pcm.c:1216: warning: implicit declaration of function `ep93xx_dma_start'
sound/arm/s3c24xx-alsa-pcm.c:1216: error: `stream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1220: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1228: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1229: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_dma_pause':
sound/arm/s3c24xx-alsa-pcm.c:1231: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1232: error: `stream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1235: warning: implicit declaration of function `ep93xx_dma_pause'
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1240: error: parse error before "audio_state_t"
sound/arm/s3c24xx-alsa-pcm.c:1241: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_prime_dma':
sound/arm/s3c24xx-alsa-pcm.c:1245: error: `totsize' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1246: error: `externedtotsize' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1248: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1261: warning: implicit declaration of function `ep93xx_dma_add_buffer'
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1288: error: parse error before "audio_stream_t"
sound/arm/s3c24xx-alsa-pcm.c:1289: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_deallocate_buffers':
sound/arm/s3c24xx-alsa-pcm.c:1291: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1291: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1296: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1302: warning: implicit declaration of function `ep93xx_dma_flush'
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1348: error: parse error before "audio_stream_t"
sound/arm/s3c24xx-alsa-pcm.c:1349: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_allocate_buffers':
sound/arm/s3c24xx-alsa-pcm.c:1356: error: `substream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1358: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1538: error: parse error before "DMAInt"
sound/arm/s3c24xx-alsa-pcm.c:1542: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_dma_tx_callback':
sound/arm/s3c24xx-alsa-pcm.c:1548: error: `user_data' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1549: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1549: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1550: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1554: error: `device' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1556: error: `DMATx_I2S3' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1560: error: `DMATx_I2S2' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1564: error: `DMATx_I2S1' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1579: warning: implicit declaration of function `ep93xx_dma_remove_buffer'
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1648: error: parse error before "DMAInt"
sound/arm/s3c24xx-alsa-pcm.c:1652: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_dma_rx_callback':
sound/arm/s3c24xx-alsa-pcm.c:1657: error: `user_data' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1658: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1658: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1659: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1660: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:1663: error: `device' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1665: error: `DMARx_I2S3' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1669: error: `DMARx_I2S2' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1673: error: `DMARx_I2S1' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_sync':
sound/arm/s3c24xx-alsa-pcm.c:1743: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1743: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1744: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1745: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_release':
sound/arm/s3c24xx-alsa-pcm.c:1830: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1830: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1844: warning: implicit declaration of function `ep93xx_dma_free'
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_hw_params':
sound/arm/s3c24xx-alsa-pcm.c:1892: warning: unused variable `err'
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_prepare':
sound/arm/s3c24xx-alsa-pcm.c:1959: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1959: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1963: error: `sTriggerStream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1965: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_trigger':
sound/arm/s3c24xx-alsa-pcm.c:2017: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2017: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:2018: error: `sTriggerStream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2021: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_pointer':
sound/arm/s3c24xx-alsa-pcm.c:2227: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2227: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:2228: error: `sStream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2230: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:2235: warning: implicit declaration of function `ep93xx_dma_get_position'
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_open':
sound/arm/s3c24xx-alsa-pcm.c:2264: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2265: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:2267: error: `os' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2268: error: `is' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2269: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:2289: warning: implicit declaration of function `ep93xx_dma_request'
sound/arm/s3c24xx-alsa-pcm.c:2301: warning: implicit declaration of function `ep93xx_dma_config'
sound/arm/s3c24xx-alsa-pcm.c:2302: error: `IGNORE_CHANNEL_ERROR' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_close':
sound/arm/s3c24xx-alsa-pcm.c:2397: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2398: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_copy':
sound/arm/s3c24xx-alsa-pcm.c:2437: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2437: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_capture_copy':
sound/arm/s3c24xx-alsa-pcm.c:2471: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2471: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:2472: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:2576: error: parse error before "audio_state_t"
sound/arm/s3c24xx-alsa-pcm.c:2577: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_new':
sound/arm/s3c24xx-alsa-pcm.c:2579: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2589: error: `card' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2665: error: `rpcm' undeclared (first use in this function)
make[2]: *** [sound/arm/s3c24xx-alsa-pcm.o] Error 1
make[1]: *** [sound/arm] Error 2
make: *** [sound] Error 2
___________________________________________________________________________________________________
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/compile.h
  CHK     usr/initramfs_list
  CC      sound/arm/s3c24xx-alsa-pcm.o
In file included from sound/arm/s3c24xx-alsa-pcm.c:39:
include/asm/arch/dma.h:237: error: parse error before "channel"
include/asm/arch/dma.h:238: warning: function declaration isn't a prototype
include/asm/arch/dma.h:246: error: parse error before "channel"
include/asm/arch/dma.h:246: warning: function declaration isn't a prototype
include/asm/arch/dma.h:253: error: parse error before "channel"
include/asm/arch/dma.h:254: warning: function declaration isn't a prototype
include/asm/arch/dma.h:261: error: parse error before "channel"
include/asm/arch/dma.h:261: warning: function declaration isn't a prototype
include/asm/arch/dma.h:270: error: parse error before "channel"
include/asm/arch/dma.h:271: warning: function declaration isn't a prototype
include/asm/arch/dma.h:278: error: parse error before "channel"
include/asm/arch/dma.h:278: warning: function declaration isn't a prototype
include/asm/arch/dma.h:293: error: parse error before "channel"
include/asm/arch/dma.h:294: warning: function declaration isn't a prototype
include/asm/arch/dma.h:296: error: parse error before "s3c2410_dma_opfn_t"
include/asm/arch/dma.h:296: warning: function declaration isn't a prototype
include/asm/arch/dma.h:297: error: parse error before "s3c2410_dma_cbfn_t"
include/asm/arch/dma.h:297: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c:40:32: asm/arch/regs_ac97.h: No such file or directory
In file included from sound/arm/s3c24xx-alsa-pcm.c:41:
sound/arm/ep93xx-alsa-pcm.h:82: error: parse error before "ep93xx_dma_int_t"
sound/arm/ep93xx-alsa-pcm.h:82: warning: no semicolon at end of struct or union
sound/arm/ep93xx-alsa-pcm.h:95: error: parse error before '}' token
sound/arm/ep93xx-alsa-pcm.h:95: warning: type defaults to `int' in declaration of `audio_stream_t'
sound/arm/ep93xx-alsa-pcm.h:95: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:102: error: parse error before "audio_stream_t"
sound/arm/ep93xx-alsa-pcm.h:102: warning: no semicolon at end of struct or union
sound/arm/ep93xx-alsa-pcm.h:103: warning: type defaults to `int' in declaration of `input_stream'
sound/arm/ep93xx-alsa-pcm.h:103: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:105: error: parse error before "output_dma"
sound/arm/ep93xx-alsa-pcm.h:105: warning: type defaults to `int' in declaration of `output_dma'
sound/arm/ep93xx-alsa-pcm.h:105: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:106: error: parse error before "input_dma"
sound/arm/ep93xx-alsa-pcm.h:106: warning: type defaults to `int' in declaration of `input_dma'
sound/arm/ep93xx-alsa-pcm.h:106: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:111: error: parse error before ':' token
sound/arm/ep93xx-alsa-pcm.h:112: error: parse error before ':' token
sound/arm/ep93xx-alsa-pcm.h:142: error: parse error before '}' token
sound/arm/ep93xx-alsa-pcm.h:142: warning: type defaults to `int' in declaration of `audio_state_t'
sound/arm/ep93xx-alsa-pcm.h:142: warning: data definition has no type or storage class
sound/arm/ep93xx-alsa-pcm.h:149: error: parse error before "audio_state_t"
sound/arm/ep93xx-alsa-pcm.h:149: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c:164: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:165: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_set_format':
sound/arm/s3c24xx-alsa-pcm.c:167: error: `val' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:167: error: (Each undeclared identifier is reported only once
sound/arm/s3c24xx-alsa-pcm.c:167: error: for each function it appears in.)
sound/arm/s3c24xx-alsa-pcm.c:170: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:207: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:212: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_U16_LE_CM':
sound/arm/s3c24xx-alsa-pcm.c:213: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:214: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:215: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:222: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:249: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:254: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_U16_LE':
sound/arm/s3c24xx-alsa-pcm.c:255: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:256: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:257: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:259: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:285: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:290: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_S16_LE_CM':
sound/arm/s3c24xx-alsa-pcm.c:291: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:292: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:293: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:300: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:327: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:332: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_S16_LE':
sound/arm/s3c24xx-alsa-pcm.c:333: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:334: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:335: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:337: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:363: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:368: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_S8_CM':
sound/arm/s3c24xx-alsa-pcm.c:369: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:370: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:371: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:374: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:401: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:406: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_S8':
sound/arm/s3c24xx-alsa-pcm.c:407: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:408: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:409: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:411: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:437: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:442: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_U8_CM':
sound/arm/s3c24xx-alsa-pcm.c:443: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:444: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:445: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:448: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:475: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:480: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_U8':
sound/arm/s3c24xx-alsa-pcm.c:481: error: `to_count' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:482: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:483: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:485: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:516: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:521: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_to_user_with_conversion':
sound/arm/s3c24xx-alsa-pcm.c:524: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:534: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:539: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:539: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:593: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:598: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U16_LE_CM':
sound/arm/s3c24xx-alsa-pcm.c:601: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:602: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:603: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:604: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:652: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:657: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U16_LE':
sound/arm/s3c24xx-alsa-pcm.c:660: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:661: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:662: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:663: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:705: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:710: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_S16_LE_CM':
sound/arm/s3c24xx-alsa-pcm.c:713: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:714: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:715: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:716: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:755: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:760: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_S16_LE':
sound/arm/s3c24xx-alsa-pcm.c:763: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:764: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:765: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:766: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:808: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:813: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_S8_CM':
sound/arm/s3c24xx-alsa-pcm.c:816: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:817: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:818: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:819: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:857: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:862: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_S8':
sound/arm/s3c24xx-alsa-pcm.c:865: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:866: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:867: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:868: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:910: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:915: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U8_CM':
sound/arm/s3c24xx-alsa-pcm.c:916: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:917: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:920: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:922: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:960: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:965: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U8':
sound/arm/s3c24xx-alsa-pcm.c:966: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:967: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:971: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:972: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1015: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1020: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_from_user_U32':
sound/arm/s3c24xx-alsa-pcm.c:1021: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1021: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1021: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1036: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1041: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `copy_n_convert':
sound/arm/s3c24xx-alsa-pcm.c:1044: error: `toCount' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1053: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1058: error: `to' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1058: error: `from' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1132: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1133: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `scale_to_expanded_samples':
sound/arm/s3c24xx-alsa-pcm.c:1134: error: `input_bufsize' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1137: error: `os' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1138: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:1140: error: `dir' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1141: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1212: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1213: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_dma_start':
sound/arm/s3c24xx-alsa-pcm.c:1216: warning: implicit declaration of function `ep93xx_dma_start'
sound/arm/s3c24xx-alsa-pcm.c:1216: error: `stream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1220: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1228: error: parse error before '*' token
sound/arm/s3c24xx-alsa-pcm.c:1229: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_dma_pause':
sound/arm/s3c24xx-alsa-pcm.c:1231: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1232: error: `stream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1235: warning: implicit declaration of function `ep93xx_dma_pause'
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1240: error: parse error before "audio_state_t"
sound/arm/s3c24xx-alsa-pcm.c:1241: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_prime_dma':
sound/arm/s3c24xx-alsa-pcm.c:1245: error: `totsize' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1246: error: `externedtotsize' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1248: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1261: warning: implicit declaration of function `ep93xx_dma_add_buffer'
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1288: error: parse error before "audio_stream_t"
sound/arm/s3c24xx-alsa-pcm.c:1289: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_deallocate_buffers':
sound/arm/s3c24xx-alsa-pcm.c:1291: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1291: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1296: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1302: warning: implicit declaration of function `ep93xx_dma_flush'
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1348: error: parse error before "audio_stream_t"
sound/arm/s3c24xx-alsa-pcm.c:1349: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_allocate_buffers':
sound/arm/s3c24xx-alsa-pcm.c:1356: error: `substream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1358: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1538: error: parse error before "DMAInt"
sound/arm/s3c24xx-alsa-pcm.c:1542: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_dma_tx_callback':
sound/arm/s3c24xx-alsa-pcm.c:1548: error: `user_data' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1549: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1549: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1550: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1554: error: `device' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1556: error: `DMATx_I2S3' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1560: error: `DMATx_I2S2' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1564: error: `DMATx_I2S1' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1579: warning: implicit declaration of function `ep93xx_dma_remove_buffer'
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:1648: error: parse error before "DMAInt"
sound/arm/s3c24xx-alsa-pcm.c:1652: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_dma_rx_callback':
sound/arm/s3c24xx-alsa-pcm.c:1657: error: `user_data' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1658: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1658: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1659: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1660: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:1663: error: `device' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1665: error: `DMARx_I2S3' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1669: error: `DMARx_I2S2' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1673: error: `DMARx_I2S1' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_sync':
sound/arm/s3c24xx-alsa-pcm.c:1743: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1743: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1744: error: `s' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1745: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: In function `audio_release':
sound/arm/s3c24xx-alsa-pcm.c:1830: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1830: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1844: warning: implicit declaration of function `ep93xx_dma_free'
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_hw_params':
sound/arm/s3c24xx-alsa-pcm.c:1892: warning: unused variable `err'
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_prepare':
sound/arm/s3c24xx-alsa-pcm.c:1959: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1959: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:1963: error: `sTriggerStream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:1965: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_trigger':
sound/arm/s3c24xx-alsa-pcm.c:2017: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2017: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:2018: error: `sTriggerStream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2021: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_pointer':
sound/arm/s3c24xx-alsa-pcm.c:2227: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2227: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:2228: error: `sStream' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2230: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:2235: warning: implicit declaration of function `ep93xx_dma_get_position'
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_open':
sound/arm/s3c24xx-alsa-pcm.c:2264: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2265: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:2267: error: `os' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2268: error: `is' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2269: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c:2289: warning: implicit declaration of function `ep93xx_dma_request'
sound/arm/s3c24xx-alsa-pcm.c:2301: warning: implicit declaration of function `ep93xx_dma_config'
sound/arm/s3c24xx-alsa-pcm.c:2302: error: `IGNORE_CHANNEL_ERROR' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_close':
sound/arm/s3c24xx-alsa-pcm.c:2397: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2398: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_copy':
sound/arm/s3c24xx-alsa-pcm.c:2437: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2437: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_capture_copy':
sound/arm/s3c24xx-alsa-pcm.c:2471: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2471: error: parse error before ')' token
sound/arm/s3c24xx-alsa-pcm.c:2472: warning: ISO C90 forbids mixed declarations and code
sound/arm/s3c24xx-alsa-pcm.c: At top level:
sound/arm/s3c24xx-alsa-pcm.c:2576: error: parse error before "audio_state_t"
sound/arm/s3c24xx-alsa-pcm.c:2577: warning: function declaration isn't a prototype
sound/arm/s3c24xx-alsa-pcm.c: In function `ep93xx_ac97_pcm_new':
sound/arm/s3c24xx-alsa-pcm.c:2579: error: `state' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2589: error: `card' undeclared (first use in this function)
sound/arm/s3c24xx-alsa-pcm.c:2665: error: `rpcm' undeclared (first use in this function)
make[2]: *** [sound/arm/s3c24xx-alsa-pcm.o] Error 1
make[1]: *** [sound/arm] Error 2
make: *** [sound] Error 2


请指教
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-2-1 11:29:10 | 显示全部楼层
如果自己写,该怎么写,具体框架,和流程。。
请有经验的朋友赐教,还有就是声卡的工作流程。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表