[Pkg-alsa-devel] Bug#316837: marked as done (alsa-modules-2.4.27-2-686: oss emulation can't co-exist with native oss)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 05 Jul 2005 07:48:21 -0700


Your message dated Tue, 05 Jul 2005 10:12:46 +0200
with message-id <42CA40FE.1060207@aglu.demon.nl>
and subject line [Pkg-alsa-devel] Bug#316837: alsa-modules-2.4.27-2-686: oss emulation can't co-exist with native oss
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 4 Jul 2005 07:14:48 +0000
>From freevo@chimpanzee.homeip.net Mon Jul 04 00:14:48 2005
Return-path: <freevo@chimpanzee.homeip.net>
Received: from crux.i-cable.com [203.83.115.97] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1DpLAG-0002lE-00; Mon, 04 Jul 2005 00:14:48 -0700
Received: (qmail 7112 invoked by uid 107); 4 Jul 2005 07:14:16 -0000
Received: from freevo@chimpanzee.homeip.net by crux by uid 104 with qmail-scanner-1.22-st-qms 
 (spamassassin: 2.63.  Clear:RC:1(218.254.160.201):SA:0(-4.9/5.0):. 
 Processed in 1.60643 secs); 04 Jul 2005 07:14:16 -0000
Received: from cm218-254-160-201.hkcable.com.hk (HELO xbox.chimpanzee.homeip.net) (218.254.160.201)
  by 0 with SMTP; 4 Jul 2005 07:14:14 -0000
Received: from freevo by xbox.chimpanzee.homeip.net with local (Exim 4.50)
	id 1DpL9h-00016N-6S
	for submit@bugs.debian.org; Mon, 04 Jul 2005 15:14:13 +0800
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: freevo <freevo@chimpanzee.homeip.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: alsa-modules-2.4.27-2-686: oss emulation can't co-exist with native oss
X-Mailer: reportbug 3.8
Date: Mon, 04 Jul 2005 15:14:12 +0800
Message-Id: <E1DpL9h-00016N-6S@xbox.chimpanzee.homeip.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: alsa-modules-2.4.27-2-686
Severity: normal

This actually should be an upstream bug. The current oss emulation code(sound_oss.c)
use register_sound_special to register the minor device. register_sound_special 
would search for the first available slot. But the coding in alsa basically use a
hardcoded scheme to convert between also card number and minor number in oss.

This means that if there is any native oss driver loaded, the number will get all
mess up(card 0 should be minor 3 for PCM but if another oss driver is loaded, 
minor 3 would be occupied and the return would be 19 instead). While the current
code handles this case to abort, it makes mixing both oss and alsa not possible.

While not just take whatever returned as the valid one then stored it and 
unregistered accordingly ?

I need oss native driver because there is no alsa driver for my device but I need
alsa driver at the same time because there is another device that isn't supported
by oss driver.



-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.31-xbox-chimpanzee-vs-ll
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)

---------------------------------------
Received: (at 316837-done) by bugs.debian.org; 5 Jul 2005 08:13:25 +0000
>From jdthood@aglu.demon.nl Tue Jul 05 01:13:25 2005
Return-path: <jdthood@aglu.demon.nl>
Received: from mailservice.tudelft.nl [130.161.131.5] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DpiYX-0004ci-00; Tue, 05 Jul 2005 01:13:25 -0700
Received: from localhost (localhost [127.0.0.1])
	by rav.antivirus (Postfix) with ESMTP id C5CCE80196
	for <316837-done@bugs.debian.org>; Tue,  5 Jul 2005 10:12:53 +0200 (CEST)
Received: from aglu.demon.nl (x095.decis.nl [130.161.177.95])
	by mx4.tudelft.nl (Postfix) with ESMTP id 3657780193
	for <316837-done@bugs.debian.org>; Tue,  5 Jul 2005 10:12:50 +0200 (CEST)
Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1])
	by aglu.demon.nl (Postfix) with ESMTP id C609A402D0
	for <316837-done@bugs.debian.org>; Tue,  5 Jul 2005 10:12:46 +0200 (CEST)
Message-ID: <42CA40FE.1060207@aglu.demon.nl>
Date: Tue, 05 Jul 2005 10:12:46 +0200
From: Thomas Hood <jdthood@aglu.demon.nl>
User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: 316837-done@bugs.debian.org
Subject: Re: [Pkg-alsa-devel] Bug#316837: alsa-modules-2.4.27-2-686: oss emulation
 can't co-exist with native oss
References: <E1DpL9h-00016N-6S@xbox.chimpanzee.homeip.net>
In-Reply-To: <E1DpL9h-00016N-6S@xbox.chimpanzee.homeip.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new at tudelft.nl
Delivered-To: 316837-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

freevo wrote:

>This actually should be an upstream bug.
>


Thanks for the report.

In the future you can file reports of upstream bugs at 
https://bugtrack.alsa-project.org/alsa-bug .

> The current oss emulation code(sound_oss.c)
>use register_sound_special to register the minor device. register_sound_special 
>would search for the first available slot. But the coding in alsa basically use a
>hardcoded scheme to convert between also card number and minor number in oss.
>
>This means that if there is any native oss driver loaded, the number will get all
>mess up(card 0 should be minor 3 for PCM but if another oss driver is loaded, 
>minor 3 would be occupied and the return would be 19 instead). While the current
>code handles this case to abort, it makes mixing both oss and alsa not possible.
>  
>

Mixing OSS with ALSA is not supported.


>While not just take whatever returned as the valid one then stored it and 
>unregistered accordingly ?
>
>I need oss native driver because there is no alsa driver for my device but I need
>alsa driver at the same time because there is another device that isn't supported
>by oss driver.
>

What you want to do is unfortunately not supported currently.  I suggest 
that you
submit a wish upstream.

-- 
Thomas Hood