Re: [Alsa-user] Alsa on a Mac Mini?

2008-04-18 Thread Risto Suominen
2008/4/19, Mark Knecht <[EMAIL PROTECTED]>:
>
>  myth14 ~ # lsmod
>  Module  Size  Used by
>  ...
>  snd_atiixp 14604  0
>  snd_ac97_codec 89120  1 snd_atiixp
>  snd_ac97_bus2048  1 snd_ac97_codec

Interesting that in this case no one has opened snd_atiixp. I think
you should try to find the process that holds snd-aoa-codec-toonie
reserved.

Risto

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Alsa on a Mac Mini?

2008-04-18 Thread Mark Knecht
On Fri, Apr 18, 2008 at 1:45 PM, Risto Suominen
<[EMAIL PROTECTED]> wrote:
> 2008/4/18, Mark Knecht <[EMAIL PROTECTED]>:
>
> >I tried looking in through an ssh tunnel, removing the modules and
>  >  watching the list of modules still loaded. The first list is before I
>  >  start the rmmod and the second is during while the terminal is hung at
>  >  'Unloading Alsa modules'. No difference that I can see to apparently
>  >  whatever is causing the problem stops anything from happening.
>  >
>
>  Well, it might not be an ALSA (driver) problem, after all. Apparently
>  'Killing processes using ALSA' is not doing what it says. The topmost
>  sound driver module, snd-aoa-codec-toonie, is used by 2 (processes).
>  And kernel module unloader probably hangs.
>
>  Risto
>
Well, OK, maybe it's not the Alsa driver directly. I don't know. My
older machines are forced to run an older kernel - 2.6.19-gentoo-r5 -
due to the ATI driver dropping support for the chipset. Those machines
work as MythTV frontend machines and on those machines (as on all my
other machines) executing a restart of Alsa works. On this machine -
my first MAc/PPC machine - it doesn't.

This may well be a configuration issue caused by me. I just need to
get to the answer.

Looking at a simple x86-based mythfrontend, also running mythfronted,
the modeules loaded are far simpler.

myth14 ~ # lsmod
Module  Size  Used by
lirc_streamzap 13060  1
lirc_dev   10468  1 lirc_streamzap
fglrx 390828  0
ati_agp 6796  1
agpgart24240  2 fglrx,ati_agp
snd_atiixp 14604  0
snd_ac97_codec 89120  1 snd_atiixp
snd_ac97_bus2048  1 snd_ac97_codec
myth14 ~ # cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.13 (Tue Nov 28
14:07:24 2006 UTC).
myth14 ~ # uname -a
Linux myth14 2.6.19-gentoo-r5 #1 PREEMPT Tue May 29 14:58:25 PDT 2007
i686 Intel(R) Celeron(R) CPU 2.26GHz GenuineIntel GNU/Linux
myth14 ~ #

I looks like I must have built some of the support into the kernel,
like USB support, and that machine doesn't have 1394. udev is loading
a bunch of this stuff even though I don't really need it so I'll see
if I can get that cleaned up. I don't require ipv6, 1394 (for now
anyway). I'm not sure whether I need the drm module. Lots of things to
figure out and improve.

Still, it seems a problem that a simple restart fails.

Cheers,
Mark

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Alsa on a Mac Mini?

2008-04-18 Thread Risto Suominen
2008/4/18, Mark Knecht <[EMAIL PROTECTED]>:
>I tried looking in through an ssh tunnel, removing the modules and
>  watching the list of modules still loaded. The first list is before I
>  start the rmmod and the second is during while the terminal is hung at
>  'Unloading Alsa modules'. No difference that I can see to apparently
>  whatever is causing the problem stops anything from happening.
>

Well, it might not be an ALSA (driver) problem, after all. Apparently
'Killing processes using ALSA' is not doing what it says. The topmost
sound driver module, snd-aoa-codec-toonie, is used by 2 (processes).
And kernel module unloader probably hangs.

Risto

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Alsa on a Mac Mini?

2008-04-18 Thread Mark Knecht
On Fri, Apr 18, 2008 at 12:49 PM, Mark Knecht <[EMAIL PROTECTED]> wrote:
> On Fri, Apr 18, 2008 at 12:22 PM, Risto Suominen
>  <[EMAIL PROTECTED]> wrote:
>  > 2008/4/18, Mark Knecht <[EMAIL PROTECTED]>:
>  >  >  ...
>  >
>  > >  alias snd-card-0 snd-powermac
>  >  >  ...
>  
>
> >  >
>  >
>  >  I would try to comment out the alias above. As far as I know, you need
>  >  either snd-powermac or snd-aoa..., not both. Earlier there was only
>  >  snd-powermac, now it's replaced by snd-aoa on newer Macs. As the
>  >  snd-aoa gets loaded anyway, looks like udev has decided it's needed.
>  >
>  >  Risto
>  >
>  Thanks Risto. I got rid of snd_powermac and sound still works so the
>  system is using snd-aoa as you suggested.
>
>  However when I attempt to restart Alsa from the command line Alsa
>  still hangs when it tries to unload the modules.
>
>  login as: root
>  [EMAIL PROTECTED]'s password:
>  Last login: Fri Apr 18 12:35:42 2008 from 192.168.1.131
>  MacMini ~ # /etc/init.d/alsasound restart
>   * Storing ALSA Mixer Levels ...  [ 
> ok ]
>   * Killing processes using ALSA ...   [ 
> ok ]
>   * Unloading ALSA modules ...
>
>  I guess one step forward but not fixed yet.
>
>  Any other ideas?
>
>  Thanks,
>  Mark
>

Hi again Risto,
   I tried looking in through an ssh tunnel, removing the modules and
watching the list of modules still loaded. The first list is before I
start the rmmod and the second is during while the terminal is hung at
'Unloading Alsa modules'. No difference that I can see to apparently
whatever is causing the problem stops anything from happening.

   This Mac Mini is running MythTV while I'm restarting Alsa. That
isn't a problem on another MythTV frontend box that is X86 based as
shown at the bottom of this email.

   Maybe I should take this to alsa-dev? I'm not sure if the
developers read this list.

Thanks,
Mark


MacMini ~ # lsmod
Module  Size  Used by
radeon139656  2
drm80572  3 radeon
ipv6  266452  12
lirc_streamzap 14116  0
lirc_dev   13704  1 lirc_streamzap
usbhid 31620  0
snd_aoa_codec_toonie 2756  2
snd_aoa_fabric_layout12328  0
snd_aoa17632  2 snd_aoa_codec_toonie,snd_aoa_fabric_layout
snd_aoa_i2sbus 21028  1
snd_pcm83112  1 snd_aoa_i2sbus
snd_timer  22632  1 snd_pcm
snd_page_alloc  9128  1 snd_pcm
snd52296  6
snd_aoa_codec_toonie,snd_aoa_fabric_layout,snd_aoa,snd_aoa_i2sbus,snd_pcm,snd_timer
soundcore   7144  1 snd
snd_aoa_soundbus5924  2 snd_aoa_fabric_layout,snd_aoa_i2sbus
ohci1394   35024  0
ieee1394   92464  1 ohci1394
ehci_hcd   33356  0
ohci_hcd   33188  0
usbcore   149208  5 lirc_streamzap,usbhid,ehci_hcd,ohci_hcd
ssb32356  0
uninorth_agp9516  1
agpgart33216  2 drm,uninorth_agp


MacMini ~ # lsmod
Module  Size  Used by
radeon139656  2
drm80572  3 radeon
ipv6  266452  14
lirc_streamzap 14116  0
lirc_dev   13704  1 lirc_streamzap
usbhid 31620  0
snd_aoa_codec_toonie 2756  2
snd_aoa_fabric_layout12328  0
snd_aoa17632  2 snd_aoa_codec_toonie,snd_aoa_fabric_layout
snd_aoa_i2sbus 21028  1
snd_pcm83112  1 snd_aoa_i2sbus
snd_timer  22632  1 snd_pcm
snd_page_alloc  9128  1 snd_pcm
snd52296  6
snd_aoa_codec_toonie,snd_aoa_fabric_layout,snd_aoa,snd_aoa_i2sbus,snd_pcm,snd_timer
soundcore   7144  1 snd
snd_aoa_soundbus5924  2 snd_aoa_fabric_layout,snd_aoa_i2sbus
ohci1394   35024  0
ieee1394   92464  1 ohci1394
ehci_hcd   33356  0
ohci_hcd   33188  0
usbcore   149208  5 lirc_streamzap,usbhid,ehci_hcd,ohci_hcd
ssb32356  0
uninorth_agp9516  1
agpgart33216  2 drm,uninorth_agp
MacMini ~ #


myth12 ~ # /etc/init.d/alsasound restart
 * Storing ALSA Mixer Levels ...  [ ok ]
 * Killing processes using ALSA ...   [ ok ]
 * Unloading ALSA modules ... [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...  [ ok ]
 * Restoring Mixer Levels ... [ ok ]
myth12 ~ #

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___

Re: [Alsa-user] Alsa on a Mac Mini?

2008-04-18 Thread Mark Knecht
On Fri, Apr 18, 2008 at 12:22 PM, Risto Suominen
<[EMAIL PROTECTED]> wrote:
> 2008/4/18, Mark Knecht <[EMAIL PROTECTED]>:
>  >  ...
>
> >  alias snd-card-0 snd-powermac
>  >  ...

>  >
>
>  I would try to comment out the alias above. As far as I know, you need
>  either snd-powermac or snd-aoa..., not both. Earlier there was only
>  snd-powermac, now it's replaced by snd-aoa on newer Macs. As the
>  snd-aoa gets loaded anyway, looks like udev has decided it's needed.
>
>  Risto
>
Thanks Risto. I got rid of snd_powermac and sound still works so the
system is using snd-aoa as you suggested.

However when I attempt to restart Alsa from the command line Alsa
still hangs when it tries to unload the modules.

login as: root
[EMAIL PROTECTED]'s password:
Last login: Fri Apr 18 12:35:42 2008 from 192.168.1.131
MacMini ~ # /etc/init.d/alsasound restart
 * Storing ALSA Mixer Levels ...  [ ok ]
 * Killing processes using ALSA ...   [ ok ]
 * Unloading ALSA modules ...

I guess one step forward but not fixed yet.

Any other ideas?

Thanks,
Mark

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user