Bug 146357 - Apple snd_powermac card not detected by system-config-soundcard, while working module exists in kernel
Apple snd_powermac card not detected by system-config-soundcard, while workin...
Status: CLOSED WORKSFORME
Product: Fedora
Classification: Fedora
Component: system-config-soundcard (Show other bugs)
rawhide
powerpc Linux
medium Severity medium
: ---
: ---
Assigned To: Bastien Nocera
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-27 09:03 EST by Wade Mealing
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version: 1.2.11-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-09 07:09:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
s-c-soundcard-pmac.patch (690 bytes, patch)
2005-02-04 04:17 EST, Bastien Nocera
no flags Details | Diff
patch to get it .. somewhat working.. I dont expect this to be complete (3.82 KB, patch)
2005-02-05 08:43 EST, Wade Mealing
no flags Details | Diff

  None (edit)
Description Wade Mealing 2005-01-27 09:03:33 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.5)
Gecko/20041112 Firefox/1.0

Description of problem:
Running system-config-soundcard application, I would expect the sound
card to be detected and configured appropriately.


The sound card is not detected as it is not PCI or USB, it uses the
MACIO bus.

After diving around, it seems like the mechanism to scan the MACIO bus
was not being used, however this feature was available in kudzu.



Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. run system-config-soundcard
2. application replies "no soundcard found"
3.
    

Actual Results:  no soundcard is found, and no soundcard is configured

Expected Results:  Soundcard to be found and configured

Additional info:

I've taken a stab at fixing this bug, and a somewhat working RPM is
available from: 

http://blog.subverted.net/personal/code/system-config-soundcard-ppc/
Comment 1 Wade Mealing 2005-01-27 09:05:25 EST
It is probably quite an ugly fix, but the long and the short is that
this application is not written to search the MACIO bus.  Create diffs
against soundcard.py and soundcardBackend.py to see what has been
changed.  

If necessary, I'll provide diffs if need be.
Comment 2 Bastien Nocera 2005-01-27 09:09:38 EST
Does the soundcard show up at any point in kudzu? Could you paste the
bit of your /etc/sysconfig/hwconf that relates to this card?
Comment 3 Wade Mealing 2005-02-03 21:33:07 EST
/etc/sysconfig/hwdata

relevant section .... 
-
class: AUDIO
bus: MACIO
detached: 0
driver: snd_powermac
desc: "Apple Computer Inc.|PowerMac Sound"
-


You will find that kudzu does not search the MACIO bus.

Comment 4 Bastien Nocera 2005-02-04 04:17:36 EST
Created attachment 110639 [details]
s-c-soundcard-pmac.patch

Look in the MACIO drivers as well, please test this patch.
Comment 5 Wade Mealing 2005-02-05 08:07:12 EST
While now it does detect the card, the volume channels are not the
same on a mac as they are in a standard x86 machine. (I might be
wrong, but this is how I see it)

I'm running Feb 2 rawhide of ppc.
Shows the correct soundcard, the correct module is shown, yet no sound
 is heard.

$ system-config-soundcard
amixer: Mixer attach default error: No such file or directory
amixer: Mixer attach default error: No such file or directory


aplay: main:508: audio open error: No such file or directory

Here is the patch that gets it mostly working..  Is it just me or is
the current
http://download.fedora.redhat.com/pub/fedora/linux/core/development/ppc/SRPMS/
system-config-soundcard*  really broken ? It doesnt seem to load
modules, or save anything to /etc/modules.conf, seems really strange
to me.  Here is a patch from a semi working version.  It tends to
double up information in modules.conf when you run the application
multiple times..

Here is something that mostly works, except for the dupicated info in
modrobe.conf.. feel free to pull it apart.. its probably quite messy.

http://blog.subverted.net/personal/code/system-config-soundcard-ppc/sc-working.patch

Wade Mealing
Comment 6 Wade Mealing 2005-02-05 08:43:48 EST
Created attachment 110692 [details]
patch to get it .. somewhat working.. I dont expect this to be complete

You'll need to hack this up, but you should see what im getting at.

It sets the correct volume controls for the snd_powermac module.
Comment 7 Wade Mealing 2005-02-08 23:33:24 EST
From what I have found out, my patch doesnt work for the imac mini,
I'm going to do a little more research into exactly which volume
controls that need to be changed.  

Changing the master volume isnt enough for Apple hardware.
Comment 8 Bastien Nocera 2005-04-02 09:11:29 EST
Fixed in CVS.

2005-04-02  Bastien Nocera  <hadess@hadess.net>

        * src/soundcard.py: remove use of deprecated gtk.FALSE and gtk.True
        (Closes: #153053)
        * src/soundcardBackend.py: scan the ISA bus (Closes: #146888), and the
        MacIO bus. Also set the "DRC Range" mixer to on for Macs
        (Closes: #146357)
Comment 9 Mike MacCana 2005-05-16 10:48:02 EDT
CLOSED RAWHIDE huh...are you sure the CVS change above has made it into a
rawhide package yet?

system-config-soundcard-1.2.11-2 doesn't seem to fix the problem - no soundcard
detected on a Mac Mini. Wade's earlier patches (when they weren't official)
worked fine on the same system.
Comment 10 Mike MacCana 2005-05-16 11:01:10 EDT
Ignore that, I see Wade's comment that the current fix doesn't work on a Mac Mini.

Should the bug be considered closed yet?
Comment 11 Bastien Nocera 2005-05-17 04:55:07 EDT
Open another bug if you're certain the bug isn't fixed for the Mac Mini.
Please also attach the output of "kudzu -p -c AUDIO" if you were to open a bug
(note, if it doesn't show anything, that means that it isn't against
system-config-soundcard that you should file a bug...).
Comment 12 Colin Charles 2005-05-17 05:16:15 EDT
(In reply to comment #11)
> Open another bug if you're certain the bug isn't fixed for the Mac Mini.
> Please also attach the output of "kudzu -p -c AUDIO" if you were to open a bug
> (note, if it doesn't show anything, that means that it isn't against
> system-config-soundcard that you should file a bug...).

Done just that: bug #157932

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