Skip to contentSkip to conversation

snd-aoa: Sound gone after snd-aoa updates, on PB5,8

DISCUSSION Wolfgang Pfeiffer 3 participants 6 messages May 29, 2006 – May 30, 2006

lore
Share & tools
lore
#0 lore raw

Hi

After some updates from http://johannes.sipsolutions.net/snd-aoa.git/
in the last few hours/minutes sound's gone here. Without changing sound settings intentionally here.

$ cat /proc/cpuinfo 
processor       : 0
cpu             : 7447A, altivec supported
clock           : 833.333000MHz
revision        : 0.5 (pvr 8003 0105)
bogomips        : 16.57
timebase        : 8320000
platform        : PowerMac
machine         : PowerBook5,8
motherboard     : PowerBook5,8 MacRISC3 Power Macintosh 
detected as     : 287 (PowerBook G4 15")
pmac flags      : 00000019
L2 cache        : 512K unified
pmac-generation : NewWorld

/var/log/boot:

Mon May 29 03:08:52 2006: ^[[9;0]^[[14;0]Setting up ALSA...warning: 'alsactl restore' failed with error message 'ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0 Mon May 29 03:08:52 2006: alsactl: set_controls:1088: snd_ctl_open error: No such file or directory'...ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0 Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
Mon May 29 03:08:52 2006: amixer: Mixer attach hw:0 error: No such file or directory
Mon May 29 03:08:52 2006: done.

Excerpts from /var/log/kern.log:
--------------------------------------

May 29 03:08:54 debby1-6 kernel: [   24.296157] i2sbus: !!!!! WARNING !!!!!
May 29 03:08:54 debby1-6 kernel: [   24.305857] i2sbus: control: couldn't allocate resource
May 29 03:08:54 debby1-6 kernel: [   24.315558] i2sbus: going ahead

anyway

May 29 03:08:54 debby1-6 kernel: [   25.140174] snd-aoa-fabric-layout: found bus with layout 82 (using)
May 29 03:08:54 debby1-6 kernel: [   34.230912] snd-aoa-codec-onyx: found pcm3052
May 29 03:08:54 debby1-6 kernel: [   34.232445] snd-aoa-fabric-layout: can use this codec
May 29 03:08:54 debby1-6 kernel: [   34.307453] snd-aoa-codec-onyx: attached to onyx codec via i2c
May 29 03:08:54 debby1-6 kernel: [   34.318072] snd-aoa-codec-onyx: created and attached onyx instance
May 29 03:08:54 debby1-6 kernel: [   34.318080] PowerMac i2c bus mac-io 0 registered
May 29 03:08:54 debby1-6 kernel: [   34.336045] PowerMac i2c bus uni-n 0 registered

-------------------------------------

After the first errors (that is: No sound at all), I removed asound.conf and asound.names in /etc/ completely, just to make sure I have no mistakes in these files - to no avail so far. Kernel is still the same as all the last 2 weeks or so, where alsa/snd-aoa worked.

uname -a
Linux debby1-6 2.6.17-rc3-gf358166a-dirty #1 Fri May 12 01:13:36 CEST 2006 ppc GNU/Linux

# modinfo snd-aoa
filename:       /lib/modules/2.6.17-rc3-gf358166a-dirty/kernel/sound/aoa/snd-aoa.ko
description:    Apple Onboard Audio Sound Driver
author:         Johannes Berg <[email protected]>
license:        GPL..
vermagic:       2.6.17-rc3-gf358166a-dirty mod_unload gcc-4.1
depends:        sndation.
srcversion:     2944C7BBEA1A2A72E3A8183

/etc/modprobe.d/sound:
-----------------
alias snd-card-0 i2sbus
#alias snd-card-0 snd-powermac
#options snd-powermac index=0
-------------------

Hints?

Best Regards
Wolfgang

Signature · 5 lines
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
#1 lore raw
Quoted 8 lines · Wolfgang Pfeiffer

Hi

After some updates from http://johannes.sipsolutions.net/snd-aoa.git/
in the last few hours/minutes sound's gone here. Without changing sound settings intentionally here.

On Debian/unstable:
After downgrading libasound2 from 1.0.11-6 to 1.0.11-3 I have sound
again: 1.0.11-6 was, IINM, installed a few hours ago, which
- as it seems - broke sound here.

HTH

Wolfgang

Signature · 5 lines
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
#2 lore raw
Quoted 10 lines · Wolfgang Pfeiffer
Quoted 8 lines · Wolfgang Pfeiffer

Hi

After some updates from http://johannes.sipsolutions.net/snd-aoa.git/
in the last few hours/minutes sound's gone here. Without changing sound settings intentionally here.

Quoted 4 lines

On Debian/unstable:
After downgrading libasound2 from 1.0.11-6 to 1.0.11-3 I have sound
again: 1.0.11-6 was, IINM, installed a few hours ago, which
- as it seems - broke sound here.

Have you tested that it wasn't just the renaming/re-ordering of some controls ? Alsa is pretty bad with that, you may just have to go back to alsamixer and reset some controls after updating the driver.

Ben.

#3 lore raw

Hi All

Sorry for responding a bit late: I had to leave the house today ...

Quoted 11 lines · Benjamin Herrenschmidt
Quoted 10 lines · Wolfgang Pfeiffer
Quoted 8 lines · Wolfgang Pfeiffer

Hi

After some updates from http://johannes.sipsolutions.net/snd-aoa.git/
in the last few hours/minutes sound's gone here. Without changing sound settings intentionally here.

Quoted 8 lines
Quoted 4 lines

On Debian/unstable:
After downgrading libasound2 from 1.0.11-6 to 1.0.11-3 I have sound
again: 1.0.11-6 was, IINM, installed a few hours ago, which
- as it seems - broke sound here.

Have you tested that it wasn't just the renaming/re-ordering of some controls ? Alsa is pretty bad with that, you may just have to go back to alsamixer and reset some controls after updating the driver.

That's what I tried after reading your mail:

$ apt-cache policy libasound2
libasound2:
  Installed: 1.0.11-6
  Candidate: 1.0.11-6

The problem is: with libasound2 1.0.11-6 I cannot even *start* alsamixer:

------------------------

$ alsamixer
ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL default

alsamixer: function snd_ctl_open failed for default: No such file or directory
-------------------------

----------------------------

$ alsamixer -c 0  
ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0

alsamixer: function snd_ctl_open failed for hw:0: No such file or directory
---------------------------

amixer:

------------------------

$ amixer -dD controls
ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL controls
amixer: Mixer attach controls error: No such file or directory
---------------------------

But the last 2 examples may hint amixer at least sees some sound card:

---------------

$ amixer -c 1 controls
Invalid card number.
Usage: amixer <options> [command]

Available options:

[ ... ]
---------------------

-------------------

$ amixer -c 0 controls
ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL hw:0
amixer: Control hw:0 open error: No such file or directory
-----------------------

Suggestions? Did I miss something?

Thanks in anticipation

Best Regards
Wolfgang

Signature · 5 lines
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
#4 lore raw
Quoted 9 lines · Wolfgang Pfeiffer

=20
The problem is: with libasound2 1.0.11-6 I cannot even *start*=20 alsamixer:
=20
------------------------

$ alsamixer
ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL default
=20
alsamixer: function snd_ctl_open failed for default: No such file or dire=

ctory

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D369478 and friends.

--=20
Earthling Michel D=C3=A4nzer | http://tungstengraphics.c=
om
Libre software enthusiast | Debian, X and DRI developer

#5 lore raw

Re: [Done #2] Re: snd-aoa: Sound gone after snd-aoa updates, on PB5, 8

Quoted 5 lines · Michel Dänzer
Quoted 4 lines · Wolfgang Pfeiffer

The problem is: with libasound2 1.0.11-6 I cannot even *start* alsamixer:

Quoted 7 lines
Quoted 5 lines

------------------------

$ alsamixer
ALSA lib control.c:816:(snd_ctl_open_noupdate) Invalid CTL default

alsamixer: function snd_ctl_open failed for default: No such file or directory

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=369478 and friends.

Thanks.

And the bug already seems to be fixed with a new version: I just installed it (libasound2 1.0.11-7) and at least alsamixer and amixer started without error. Plus: Restarting the KDE sound system after installing this new version also worked liked a charm.

Thanks to everyone involved :)

Best Regards
Wolfgang

Signature · 5 lines
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on