From: Takashi Iwai Subject: Re: Follow Up: "Why my linux OS has only 8 sound cards ? How can I modify it ?" Date: Tue, 08 May 2012 17:00:00 +0200 Message-ID: References: <4FA9170E.60306@mobile.put.edu.pl> <4FA91969.10000@ladisch.de> <4FA92A7C.2010609@mobile.put.edu.pl> 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 EFBA824369 for ; Tue, 8 May 2012 17:00:00 +0200 (CEST) In-Reply-To: <4FA92A7C.2010609@mobile.put.edu.pl> 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: Maciej Paszta Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 08 May 2012 16:15:24 +0200, Maciej Paszta wrote: > > Thanks! > > Changing to 256 made all devices appear! OK, I'll queue the fixes for 3.5 kernel. thanks, Takashi > On 2012-05-08 15:32, Takashi Iwai wrote: > > At Tue, 08 May 2012 15:02:33 +0200, > > Clemens Ladisch wrote: > >> Maciej Paszta wrote: > >>> Quick reminder: I have 10 sound cards which need to have oss emulation > >>> enabled. However, I only see 8 devices (dsp-dsp7). Takashi suggested a > >>> patch to workaround this problem: > >>> http://mailman.alsa-project.org/pipermail/alsa-devel/2011-November/045764.html > >>> I've applied it to kernel 3.0.0 and the only result I get is message > >>> appearing in kernel logs: "unable to register OSS PCM device 8:0". I've > >>> done some debugging and the registration fails on these lines > >>> (sound/core/sound_oss.c): > >>> register1 = register_sound_special_device(f_ops, minor, carddev); > >> Try replacing 128 with 256 in register_sound_special_device() in > >> sound/sound_core.c. > > Actually it should be 256, instead of 256 + unit, like the patch below. > > > > > > Takashi > > > > --- > > diff --git a/sound/sound_core.c b/sound/sound_core.c > > index c6e81fb..fb9255c 100644 > > --- a/sound/sound_core.c > > +++ b/sound/sound_core.c > > @@ -361,7 +361,7 @@ int register_sound_special_device(const struct file_operations *fops, int unit, > > struct device *dev) > > { > > const int chain = unit % SOUND_STEP; > > - int max_unit = 128 + chain; > > + int max_unit = 256; > > const char *name; > > char _name[16]; > > > > _______________________________________________ > > Alsa-devel mailing list > > Alsa-devel@alsa-project.org > > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > > > -- > Maciej Paszta > Mobile Systems Research Labs, Poznan University of Technology > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >