From: Takashi Iwai Subject: Re: alsa-driver patches Date: Wed, 12 May 2010 10:25:05 +0200 Message-ID: References: <4BE9FEF2.6080803@audioscience.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id E383A2497D for ; Wed, 12 May 2010 10:25:06 +0200 (CEST) In-Reply-To: <4BE9FEF2.6080803@audioscience.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Eliot Blennerhassett Cc: ALSA development List-Id: alsa-devel@alsa-project.org At Wed, 12 May 2010 13:05:54 +1200, Eliot Blennerhassett wrote: > > Hi Takashi, > > since the acceptance of asihpi driver, and move to alsa-kernel, you > created a couple of patch files in alsa-driver/pci/asihpi > (that add conditional compilation for older kernels) > > Can you tell me how these patches are generated and maintained? > (I guess this applies to any driver with this kind of patch). This is simply a diff against to the corresponding file in alsa-kernel tree. If older kernels require some changes (e.g. ifdef's), we patch it locally in alsa-driver tree at building. In the case of asihpi, it's generated like: % cd alsa-driver/pci/asihpi % diff -u ../../alsa-kernel/pci/asihpi/hpios.c hpios.c > hpios.patch > I think that this arrangement means that my one upstream file needs to > be converted to two files (kernel .c + patch) when I submit updates? If your change in the kernel conflicts with the existing patch, yes, it'd be appreciated if you give the patch, too. Usually I make a patch by myself. thanks, Takashi