From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934189AbZHEKpR (ORCPT ); Wed, 5 Aug 2009 06:45:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934176AbZHEKpQ (ORCPT ); Wed, 5 Aug 2009 06:45:16 -0400 Received: from cantor.suse.de ([195.135.220.2]:59478 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933965AbZHEKpO (ORCPT ); Wed, 5 Aug 2009 06:45:14 -0400 Date: Wed, 05 Aug 2009 12:45:14 +0200 Message-ID: From: Takashi Iwai To: Alan Cox Cc: Colin Guthrie , Tejun Heo , Greg KH , Al Viro , Linux Kernel Subject: Re: [PATCH 2/2] sound: make OSS device number claiming optional In-Reply-To: <20090805112649.4a59ce70@lxorguk.ukuu.org.uk> References: <4A79283E.7030202@kernel.org> <4A79296A.4090600@suse.de> <20090805101551.6ee053e5@lxorguk.ukuu.org.uk> <4A794FB9.30403@mandriva.org> <20090805105916.28f84a05@lxorguk.ukuu.org.uk> <20090805112649.4a59ce70@lxorguk.ukuu.org.uk> User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/22.3 (x86_64-suse-linux-gnu) MULE/5.0 (SAKAKI) 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 At Wed, 5 Aug 2009 11:26:49 +0100, Alan Cox wrote: > > > As far as I understand, the current problem is that ALSA core becomes > > dependent when you build with CONFIG_SND_*_OSS config, even if you > > load no snd-*-oss modules and use only ALSA-native ones. It's because > > the OSS device registration is done through the ALSA snd module. > > Thus, loading ALSA modules always results in loading soundcore > > module, too. > > That isn't a bug, but a feature. Not really :) The soundcore is only for OSS device files. As long as you use only ALSA-native APIs, you don't need it. But, currently it's loaded and initialized just because of the module dependency. This is no bug but also not an intended feature. > > So... instead of hacking around soundcore stuff, splitting off the OSS > > (soundcore) dependency from ALSA snd module could be another solution? > > Then soundcore doesn't have to be loaded unless you load snd-*-oss or > > any real OSS modules. > > This makes it worse. Well, the only regression would be the case where you create static /dev/dsp (or else) devices and let auto-loading through sound-slot-* or sound-service-*-* aliases. Of course, this still works if you load soundcore in some way. What I suggested in the above is to cut off an unneeded dependency between soundcore and ALSA-native stuff instead of hacking soundcore. It won't change anything else, so everything else can coexist as before. Just my $0.02, though... Takashi