On 05/09/2007, James Pearson james-p@moving-picture.com wrote:
Takashi Iwai wrote:
Does the patch (to alsa-driver tree) fix the problem?
Takashi
diff -r adfe4179d670 misc/ac97_bus.c --- a/misc/ac97_bus.c Fri Aug 31 12:22:35 2007 +0200 +++ b/misc/ac97_bus.c Wed Sep 05 18:09:42 2007 +0200 @@ -1,1 +1,3 @@ +#include <sound/driver.h> +#include <sound/core.h> #include "../alsa-kernel/ac97_bus.c"
Yes ... I did something similar - copied in ../alsa-kernel/ac97_bus.c and patched with alsa-driver-1.0.13/pci/ac97/ac97_bus.patch - which makes it compile
Just to follow up on this, your patch that just adds:
#include <sound/driver.h> #include <sound/core.h>
to misc/ac97_bus.c is not enough for it to compile on RHEL4/CentOS4 ... however, copying in ../alsa-kernel/ac97_bus.c and patching with alsa-driver-1.0.13/pci/ac97/ac97_bus.patch does work. It still needs the #ifdef CONFIG_SND_OLD_DRIVER_SUSPEND stuff
James Pearson