From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [alsa-devel] NULL pointer dereference in ALSA triggered through saa7134-alsa Date: Mon, 10 Aug 2009 17:50:07 +0200 Message-ID: References: <4A8025BF.7030404@pardus.org.tr> <4A803FDC.8070005@pardus.org.tr> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <4A803FDC.8070005@pardus.org.tr> Sender: linux-media-owner@vger.kernel.org To: Ozan =?UTF-8?B?w4dhxJ9sYXlhbg==?= Cc: alsa-devel@alsa-project.org, linux-media@vger.kernel.org List-Id: alsa-devel@alsa-project.org At Mon, 10 Aug 2009 18:42:20 +0300, Ozan =C3=87a=C4=9Flayan wrote: >=20 > Takashi Iwai wrote: > > At Mon, 10 Aug 2009 16:50:55 +0300, > > Ozan =C3=87a=C4=9Flayan wrote: > > =20 > >> Hi, > >> > >> I've finally succesfully compiled and linked saa7134-alsa driver u= sing > >> an external alsa-driver and its Module.symvers file. Everything se= ems > >> okay, no undefined symbol or something else: > >> > >> - An installed 2.6.30.4 kernel which only builds and brings soundc= ore > >> and sound_firmware, > >> - Latest alsa-driver built externally and installed, > >> - Latest saa7134-alsa, cx88-alsa, etc. code from linus-2.6 (seen t= hat > >> they don't affected by some API/ABI changes) patched on top of the > >> alsa-driver tarball, > >> =20 > > > > The external drivers using ALSA API have to be built with the > > newer ALSA header files from alsa-driver tree. It's not enough to > > change snd_card_new() with snd_card_create(). The core structure > > was changed, so the whole build has to be adjusted, too. > > =20 > Actually that was the 0th step that I forgot to mention. I'm installi= ng > the headers from the alsa-driver snapshot into /usr/include/sound and > then I build alsa-driver. Then I use the symvers from the alsa-driver > build alltogether with the headers that I've already installed into > /usr/include/sound to build the V4L ones. But /usr/include/sound isn't used for building kernel modules normally. Unless any hack is added, these files have to be installed to the kernel header directory. Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-media" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html