Hi,

I'm trying to build alsa-1.0.22 driver for my wm8974 codec on i.Mx27 platform. The kernel for i.MX27 is 2.6.19.  I need to cross compile it on x86 platform for i.Mx27. And I'm sure the cross compile environment works well. Here is my configure options for alsa driver:

/configure --with-cross=arm-linux- --with-kernel=<path-to-mx27-kernel>
--with-build=<path-to-mx27-kernel>

When configure process completes, a "toplevel.config" file is generated. But in the toplevel.config file, the following config options are not set by the configure process( which prevents wm8974 driver from being built):

CONFIG_SND_MX1_MX2_SOC=
CONFIG_ARCH_MX2=
CONFIG_ARCH_MX1=
CONFIG_SND_MXC_SOC_SSI=
CONFIG_SND_SOC_MX27VIS_WM8974=
CONFIG_MACH_MX27=
CONFIG_MACH_IMX27_VISSTRIM_M10=

Since the default value of "--with-cards" is "all", why these options are not
set? Event I specifiy --with-cards=soc, mx1-mx2-soc, soc-mx27vis-wm8974, these options are still not empty in toplevel.config.

Is there anything wrong with my configuration process?
Any idea?

Regards,
Jie