[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#291127: Please apply patch to allow alsa modules to be loaded with negative index option, to be interpreted as bitmask of allowed indices



Package: kernel-source-2.6.8
Version: 2.6.8-12
Severity: normal
Tags: patch

The attached patch modifies sound/core/init.c so that a negative index
value is interpreted as a bitmask indicating the allowed indices for the
driver.  This extends the current semantics according to which:

   value
   -----
   0 .. SNDRV_CARDS - 1    Set index to value
   -1 = 0xffffffff         Set index to first available

by allowing also:

   -2  = 0xfffffffe        Set index to first available > 0
   -4  = 0xfffffffc        Set index to first available > 1
   -8  = 0xfffffff8        Set index to first available > 2
   -16 = 0xfffffff0        Set index to first available > 3
   etc.

The patch is required in order to provide a convenient way of excluding
ALSA modem and TV drivers from grabbing index 0.  This issue was discussed
at:

    https://bugzilla.ubuntu.com/show_bug.cgi?id=1293

The patch is included in alsa-driver 1.0.8-1 and has been applied to
ubuntu's 2.6 kernel.  It has been accepted in principle by upstream too:

    https://bugtrack.alsa-project.org/alsa-bug/view.php?id=359


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro (charmap=ISO-8859-15)

Versions of packages kernel-source-2.6.8 depends on:
ii  binutils                      2.15-5     The GNU assembler, linker and bina
ii  bzip2                         1.0.2-1    A high-quality block-sorting file 
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities
ii  fileutils                     5.2.1-2    The GNU file management utilities 

Attachment: alsa-negative-index.dpatch
Description: application/shellscript


Reply to: