Bug 12545 - wrong sound module loaded on Dell OptiPlex GXa or GX1
Summary: wrong sound module loaded on Dell OptiPlex GXa or GX1
Status: REJECTED INVALID
Alias: None
Product: Other
Classification: Unclassified
Component: Modules (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_modules
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-26 13:43 UTC by Bruce Robson
Modified: 2009-03-20 06:06 UTC (History)
0 users

See Also:
Kernel Version: 2.6.18
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Bruce Robson 2009-01-26 13:43:09 UTC
Latest working kernel version: n/a
Earliest failing kernel version: n/a
Distribution: Debian
Hardware Environment: Dell OptiPlex GXa or GX1
Software Environment: Debian etch
Problem Description:

The Dell OptiPlex GXa and GX1 contain sound hardware
based on the CS4236B. This hardware is supported by
the snd-cs4236 driver. However, Debian etch distribution
loads the snd-cs4232 driver.

The contents of files under /sys/devices/pnp1/01:01 are
                Filename        Contents
                card_id         CSC6835
                name            CS4236B
                01:01.00/id     CSC0000
                01:01.01/id     CSC000f
                01:01.02/id     CSC0010
                01:01.03/id     CSC0003

01:01.01 is the game port that has its own driver. Hence
the full alias information for the sound card is
        pnp:cCSC6835dCSC0000dCSC0010dCSC0003*

A grep of modules.alias shows that snd_cs4236 claims this
full alias. However examination of modules.alias also shows
that snd_cs4232 claims
    pnp:dCSC0000*

Module loading needs to select the snd-cs4236 driver as
it matches the full allias in preference to snd-cs4232
that only partially matches. However, this does not
happen.

I changed file cs4236.c (both the snd-cs4232 and
snd-cs4236 are built from this file) to stop the
snd-cs4232 driver from claiming pnp:dCSC000*.
After this neither the snd-cs4232 or snd-cs4236
driver were loaded (I could force loading of
snd-cs4236 by editting /etc/modules).

There is a Debian bug report for this problem at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=450742

This contains a comment that the problem also
occurs with 2.6.22.

Steps to reproduce:
boot debian etch on a Dell OptiPlex GXa or GX1
Comment 1 Alan 2009-03-20 06:06:05 UTC
Ordering priority for wildcarding isn't a kernel feature it is handled by user space - closing. Please pursue this further with your distribution module tools maintainer

Note You need to log in before you can comment on or make changes to this bug.