All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maciej Paszta <maciej.paszta@mobile.put.edu.pl>
To: alsa-devel@alsa-project.org
Subject: Re: Follow Up: "Why my linux OS has only 8 sound cards ? How can I modify it ?"
Date: Tue, 08 May 2012 16:15:24 +0200	[thread overview]
Message-ID: <4FA92A7C.2010609@mobile.put.edu.pl> (raw)
In-Reply-To: <s5hzk9in6h9.wl%tiwai@suse.de>

Thanks!

Changing to 256 made all devices appear!

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

  reply	other threads:[~2012-05-08 14:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08 12:52 Follow Up: "Why my linux OS has only 8 sound cards ? How can I modify it ?" Maciej Paszta
2012-05-08 13:02 ` Clemens Ladisch
2012-05-08 13:32   ` Takashi Iwai
2012-05-08 14:15     ` Maciej Paszta [this message]
2012-05-08 15:00       ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FA92A7C.2010609@mobile.put.edu.pl \
    --to=maciej.paszta@mobile.put.edu.pl \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.