Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754265Ab2FSMri (ORCPT ); Tue, 19 Jun 2012 08:47:38 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52960 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753424Ab2FSMrh (ORCPT ); Tue, 19 Jun 2012 08:47:37 -0400 Date: Tue, 19 Jun 2012 14:47:36 +0200 Message-ID: From: Takashi Iwai To: Ezequiel Garcia Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Ralf Baechle , Jaroslav Kysela , Clemens Ladisch Subject: Re: [PATCH 2/3] swarm_cs4297: Rename AC97 registers to use sound/ac97_codec.h definitions In-Reply-To: References: <1339444731-15678-1-git-send-email-elezegarcia@gmail.com> <1339444731-15678-2-git-send-email-elezegarcia@gmail.com> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2683 Lines: 70 At Tue, 19 Jun 2012 09:41:30 -0300, Ezequiel Garcia wrote: > > On Tue, Jun 19, 2012 at 2:38 AM, Takashi Iwai wrote: > > At Mon, 18 Jun 2012 14:50:53 -0300, > > Ezequiel Garcia wrote: > >> > >> Hi Takashi, > >> > >> On Mon, Jun 18, 2012 at 11:04 AM, Takashi Iwai wrote: > >> > At Mon, 11 Jun 2012 16:58:50 -0300, > >> > Ezequiel Garcia wrote: > >> >> > >> >> This patch removes the last usage of linux/ac97_codec.h > >> >> by renaming ac97 registers to use sound/ac97_codec.h definitions. > >> >> This will enable us to remove linux/ac97_codec.h. > >> >> > >> >> Not even compilation tested. > >> >> > >> >> Cc: Ralf Baechle > >> >> Cc: Jaroslav Kysela > >> >> Cc: Takashi Iwai > >> >> Cc: Clemens Ladisch > >> >> Signed-off-by: Ezequiel Garcia > >> >> --- > >> >> Hi all, > >> >> > >> >> This patch is important so we can remove linux/ac97_codec.h usage. > >> >> Since this driver is mips related, I can't test it until I install > >> >> a mips toolchain. > >> >> If someone can compile this for me, or even test it with real > >> >> hardware I think it would be better. > >> >> If not then I can install a mips toolchain and compile it myself, > >> >> but I won't be able to test it on real hardware. > >> >> > >> >> This patch should be treated with carefully and be applied only > >> >> if someone manages to test it. > >> > > >> > A slight concern by this change is that the driver includes > >> > sound/ac97_codec.h although it's based on OSS framework. > >> > sound/ac97_codec.h is the header for ALSA ac97 structs, and this can't > >> > be mixed up with OSS. > >> > > >> > If the intention is only about AC97 register definition, we may split > >> > ac97_codec.h into ac97_regs.h and ac97_codecs.h where the former > >> > contains only the register definitions (thus framework-neutral) and > >> > the latter includes the former. > >> > > >> > > >> > >> Yes, splitting sounds good to me. It could be useful for other ac97 > >> drivers (e.g. em28xx). > > On a second thought, I'm not sure splitting the header is the best way > to proceed. Since swarm just uses some AC97 register definition > maybe we could just duplicate those (less than ten) macros in swarm > c file. > > It's a less intrusive aproach and it allows us to remove the unused > linux/ac97_codec.h. I'm OK in both ways. Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/