Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
Hi All
First a *Thanks* to all those, here or elsewhere, who spend their time on the development of usable software for PPC Linux: I don't think I ever would have bought the latest alu Powerbook with the option that this machine will be an MacOSX-only one ... :)
As to the reason why I came here:
As I can't be sure whether the issue announced in the subject line is really a kernel issue I put some sound relevant config files in a tarball (~ 12 KB) to my homepage:
wolfgangpfeiffer.com/alsa.configs.tar.gz
In the tarball above you'll find
these local /etc/ dirs with all files below them:
alsa modprobe.d modutils
and these single files, also from /etc/ here:
modules modules.conf pbbuttonsd.conf
The kernel config
http://wolfgangpfeiffer.com/config-2.6.17-rc3-g5528e568-dirty.txt
(Geocities, which my site actually is hosted by, does not allow uploading the file without the file type suffix, IIRC ...)
The kernel, made with non-edited (except the kernel .config), as I hope, git sources, and with the 'make-kpkg' Debian package:
$ cat /proc/version Linux version 2.6.17-rc3-g5528e568-dirty (root@debby1-6) (gcc version 4.1.1 20060428 (prerelease) (Debian 4.1.0-2)) #1 Sun May 7 23:51:15 CEST 2006
OS is Debian/unstable.
Machine:
$ 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
lspci -v:
---------------------
0000:00:0b.0 Host bridge: Apple Computer Inc.: Unknown device 0066
Flags: bus master, 66MHz, medium devsel, latency 16
Capabilities: [80] AGP version 1.0
0000:00:10.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] Flags: bus master, 66MHz, medium devsel, latency 255, IRQ 48 Memory at b8000000 (32-bit, prefetchable) [size=128M] I/O ports at f0000400 [size=256] Memory at b0000000 (32-bit, non-prefetchable) [size=64K] Expansion ROM at f1000000 [disabled] [size=128K] Capabilities: [58] AGP version 2.0 Capabilities: [50] Power Management version 2
0001:10:0b.0 Host bridge: Apple Computer Inc.: Unknown device 0067
Flags: bus master, 66MHz, medium devsel, latency 16
0001:10:11.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
Subsystem: Apple Computer Inc.: Unknown device 4318
Flags: bus master, fast devsel, latency 16, IRQ 52
Memory at a0004000 (32-bit, non-prefetchable) [size=8K]
0001:10:14.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
Flags: bus master, medium devsel, latency 168, IRQ 53 Memory at a0003000 (32-bit, non-prefetchable) [size=4K] Bus: primary=10, secondary=11, subordinate=14, sec-latency=176 Memory window 0: 90000000-9ffff000 (prefetchable) Memory window 1: f3000000-f33ff000 I/O window 0: 00001000-000011ff I/O window 1: 00001400-000015ff 16-bit legacy interface ports at 0001
0001:10:15.0 USB Controller: NEC Corporation USB (rev 43) (prog-if 10 [OHCI])
Subsystem: NEC Corporation USB
Flags: bus master, medium devsel, latency 16, IRQ 54 Memory at a0002000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
0001:10:15.1 USB Controller: NEC Corporation USB (rev 43) (prog-if 10 [OHCI])
Subsystem: NEC Corporation USB
Flags: bus master, medium devsel, latency 16, IRQ 54 Memory at a0001000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
0001:10:15.2 USB Controller: NEC Corporation USB 2.0 (rev 04) (prog-if 20 [EHCI])
Subsystem: NEC Corporation USB 2.0
Flags: bus master, medium devsel, latency 16, IRQ 54
Memory at a0000000 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Power Management version 2
0001:10:17.0 ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
Flags: bus master, medium devsel, latency 16 Memory at 80000000 (32-bit, non-prefetchable) [size=512K]
0002:24:0b.0 Host bridge: Apple Computer Inc.: Unknown device 0068
Flags: bus master, 66MHz, medium devsel, latency 16
0002:24:0d.0 ff00: Apple Computer Inc.: Unknown device 0069
Flags: bus master, medium devsel, latency 32, IRQ 39 Memory at f5004000 (32-bit, non-prefetchable) [size=16K]
0002:24:0e.0 FireWire (IEEE 1394): Apple Computer Inc.: Unknown device 006a (prog-if 10 [OHCI])
Subsystem: Apple Computer Inc.: Unknown device 5811
Flags: bus master, medium devsel, latency 64, IRQ 40
Memory at f5000000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2
0002:24:0f.0 Ethernet controller: Apple Computer Inc.: Unknown device 006b
Flags: bus master, 66MHz, slow devsel, latency 16, IRQ 41 Memory at f5200000 (32-bit, non-prefetchable) [size=2M] Expansion ROM at f5100000 [disabled] [size=1M]
---------------------
So with the settings from the files above I run 'alsaconf', and it can't find any sound card:
x x x x x No supported PnP or PCI card found. x x x x Would you like to probe legacy ISA sound cards/chips? x x x x x x <Yes> <No> x x x
Either answering No or Yes does not help to get sound.
KDE also is complaining. Something like:
---------------------
Sound server informational message:
Error while initializing the sound driver:
device: default can't be opened for playback (No such device) The sound server will continue, using the null output device.
-----------------------
The alsapackages seem to be the latest ones I can get:
# apt-get install alsa-base alsa-utils alsaplayer-alsa alsaplayer-common alsaplayer-gtk Reading package lists... Done Building dependency tree... Done alsa-base is already the newest version. alsa-utils is already the newest version. alsaplayer-alsa is already the newest version. alsaplayer-common is already the newest version. alsaplayer-gtk is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 322 not upgraded.
Please let me know in case you need more information ..
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
Quoted 3 lines
As to the reason why I came here:
As I can't be sure whether the issue announced in the subject line is really a kernel issue
Did it ever work? I don't quite know what machine a 5,8 is since I have a 5,6 only. Also, try snd-aoa.
johannes
Quoted 5 lines · Johannes Berg
Quoted 3 lines
As to the reason why I came here:
As I can't be sure whether the issue announced in the subject line is really a kernel issueDid it ever work?
Not with Debian, but with this Ubuntu live CD I have sound:
Ubuntu 6.06 "Dapper Drake" Beta 2 powerpc (20060427)
The kernel on their CD is a 2.6.15-21-powerpc
Quoted 2 lines
I don't quite know what machine a 5,8 is since I have a 5,6 only.
5.8 is, IINM, the last PPC 15" Powerbook that Apple made
Quoted 1 line
Also, try snd-aoa.
With the git kernel mentioned in my previous mail there's no snd-aoa available, IINM. I'll try figure out how to get the source and compile another kernel with this driver ...
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
Hi,
Quoted 1 line
Quoted 1 line
Did it ever work?
Kind of... with a patch[1] originally by Ben Collins and adapted by Gaudenz Steinlin it at least lets you play your favorite music. The kernel I use is a 2.6.17-rc3-git5.
Quoted 4 lines
Not with Debian, but with this Ubuntu live CD I have sound:
Ubuntu 6.06 "Dapper Drake" Beta 2 powerpc (20060427)The kernel on their CD is a 2.6.15-21-powerpc
This patch applied cleanly on every kernel I tried since 2.6.15...
Quoted 3 lines
5.8 is, IINM, the last PPC 15" Powerbook that Apple made
Quoted 1 line
Also, try snd-aoa.
Best regards,
Christoph
[1] http://lists.debian.org/debian-powerpc/2006/03/msg00226.html
Quoted 11 lines · Wolfgang Pfeiffer
Quoted 5 lines · Johannes Berg
Quoted 3 lines
As to the reason why I came here:
As I can't be sure whether the issue announced in the subject line is really a kernel issueDid it ever work?
Not with Debian, but with this Ubuntu live CD I have sound:
Ubuntu 6.06 "Dapper Drake" Beta 2 powerpc (20060427)The kernel on their CD is a 2.6.15-21-powerpc
Dapper kernel has the hack to consider it as a toonie. No volume control nor anything.
Quoted 11 lines
Quoted 2 lines
I don't quite know what machine a 5,8 is since I have a 5,6 only.
5.8 is, IINM, the last PPC 15" Powerbook that Apple made
Quoted 1 line
Also, try snd-aoa.
With the git kernel mentioned in my previous mail there's no snd-aoa available, IINM. I'll try figure out how to get the source and compile another kernel with this driver ...
It's not merged upstream yet.
Ben.
Quoted 1 line · Johannes Berg
Also, try snd-aoa.
Impossible here, it does not compile here. Neither with gcc 4.0 or 4.1
I took your instructions from
http://lists.debian.org/debian-powerpc/2006/03/msg00470.html
And if I understand them correctly it's not necessary to descend to some directory level of the kernel source for my current kernel. I slightly modified your instructions (being addicted to git, Sorry about that ... :) .. :
Something like:
mkdir snd-aoa
cd snd-aoa/
git clone http://johannes.sipsolutions.net/snd-aoa.git/
cd snd-aoa/
make
The above did not work: compile problems:
-----------------include/sound/pcm.h:742: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h: In function 'snd_pcm_capture_empty':include/sound/pcm.h:755: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h: In function 'snd_pcm_trigger_done':include/sound/pcm.h:762: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h: At top level:include/sound/pcm.h:844: error: syntax error before 'u_int32_t'include/sound/pcm.h:844: warning: function declaration isn't a prototypeinclude/sound/pcm.h:846: error: syntax error before 'u_int64_t'include/sound/pcm.h:846: warning: function declaration isn't a prototypeinclude/sound/pcm.h:901: error: syntax error before 'snd_pcm_format_size'include/sound/pcm.h:901: error: syntax error before 'size_t'include/sound/pcm.h:901: warning: type defaults to 'int' in declaration of 'snd_pcm_format_size' include/sound/pcm.h:901: warning: function declaration isn't a prototypeinclude/sound/pcm.h:901: warning: data definition has no type or storage classinclude/sound/pcm.h: In function 'snd_pcm_set_runtime_buffer':include/sound/pcm.h:936: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:938: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:939: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:939: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:940: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:940: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:941: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:941: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:943: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:944: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:945: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:946: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h: At top level:include/sound/pcm.h:966: error: syntax error before 'size_t'include/sound/pcm.h:966: warning: function declaration isn't a prototypeinclude/sound/pcm.h:969: error: syntax error before 'size_t'include/sound/pcm.h:969: warning: function declaration isn't a prototypeinclude/sound/pcm.h:970: error: syntax error before 'size_t'include/sound/pcm.h:970: warning: function declaration isn't a prototypeinclude/sound/pcm.h: In function 'snd_pcm_mmap_data_open':include/sound/pcm.h:981: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:982: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h: In function 'snd_pcm_mmap_data_close':include/sound/pcm.h:987: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h:988: error: dereferencing pointer to incomplete typeinclude/sound/pcm.h: At top level:include/sound/pcm.h:1000: error: syntax error before 'size_t'include/sound/pcm.h:1001: warning: function declaration isn't a prototypeinclude/sound/pcm.h: In function 'snd_pcm_limit_isa_dma_size':include/sound/pcm.h:1002: error: 'max' undeclared (first use in this function)include/sound/pcm.h:1002: error: 'dma' undeclared (first use in this function)
In file included from /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/aoa.h:21,
from /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:14:/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h: At top level:/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:37: error: syntax error before 'u64' /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:37: warning: no semicolon at end of struct or union /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:40: error: syntax error before 'transfer_in' /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:44: error: syntax error before '}' token /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:142: error: field 'ofdev' has incomplete type /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:169: error: syntax error before 'u32' /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:169: warning: no semicolon at end of struct or union /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:193: error: field 'driver' has incomplete type /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c: In function 'attach_codec_to_fabric':/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:33: error: 'ENOENT' undeclared (first use in this function) /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c: In function 'aoa_fabric_register':/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:85: error: 'EALREADY' undeclared (first use in this function) /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:89: error: 'EEXIST' undeclared (first use in this function) /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:91: error: 'EINVAL' undeclared (first use in this function) make[3]: *** [/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.o] Error 1
make[2]: *** [/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa] Error 2
make[1]: *** [_module_/home/shorty/kernel-factory/git/snd-aoa/snd-aoa] Error 2
make[1]: Leaving directory `/home/shorty/kernel-factory/git/linux-2.6'
make: *** [modules] Error 2
----------------
FYI:
------------------------
$ gcc --version gcc (GCC) 4.0.4 20060422 (prerelease) (Debian 4.0.3-2) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -------------------------------------------
Same being true for this:
$ pwd /home/shorty/kernel-factory/git/snd-aoa/snd-aoa $ make clean $ MAKEFLAGS="CC=gcc-4.1" make
The end from the latter command:
--------------include/sound/pcm.h:669: error: 'struct snd_pcm_runtime' has no member named 'status'include/sound/pcm.h:669: error: 'struct snd_pcm_runtime' has no member named 'control'include/sound/pcm.h:671: error: 'struct snd_pcm_runtime' has no member named 'boundary'include/sound/pcm.h: In function 'snd_pcm_playback_ready':include/sound/pcm.h:695: error: 'struct snd_pcm_substream' has no member named 'runtime' include/sound/pcm.h:696: error: 'struct snd_pcm_runtime' has no member named 'control'include/sound/pcm.h: In function 'snd_pcm_capture_ready':include/sound/pcm.h:709: error: 'struct snd_pcm_substream' has no member named 'runtime' include/sound/pcm.h:710: error: 'struct snd_pcm_runtime' has no member named 'control'include/sound/pcm.h: In function 'snd_pcm_playback_data':include/sound/pcm.h:724: error: 'struct snd_pcm_substream' has no member named 'runtime' include/sound/pcm.h:726: error: 'struct snd_pcm_runtime' has no member named 'stop_threshold' include/sound/pcm.h:726: error: 'struct snd_pcm_runtime' has no member named 'boundary'include/sound/pcm.h: In function 'snd_pcm_playback_empty':include/sound/pcm.h:741: error: 'struct snd_pcm_substream' has no member named 'runtime'include/sound/pcm.h: In function 'snd_pcm_capture_empty':include/sound/pcm.h:755: error: 'struct snd_pcm_substream' has no member named 'runtime'include/sound/pcm.h: In function 'snd_pcm_trigger_done':include/sound/pcm.h:762: error: 'struct snd_pcm_substream' has no member named 'runtime'include/sound/pcm.h: At top level:include/sound/pcm.h:844: error: expected declaration specifiers or '...' before 'u_int32_t' include/sound/pcm.h:846: error: expected declaration specifiers or '...' before 'u_int64_t' include/sound/pcm.h:901: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'snd_pcm_format_size' include/sound/pcm.h: In function 'snd_pcm_set_runtime_buffer':include/sound/pcm.h:936: error: 'struct snd_pcm_substream' has no member named 'runtime' include/sound/pcm.h:938: error: 'struct snd_pcm_runtime' has no member named 'dma_buffer_p' include/sound/pcm.h:939: error: 'struct snd_pcm_runtime' has no member named 'dma_area' include/sound/pcm.h:940: error: 'struct snd_pcm_runtime' has no member named 'dma_addr' include/sound/pcm.h:940: error: 'struct snd_dma_buffer' has no member named 'addr'include/sound/pcm.h:941: error: 'struct snd_pcm_runtime' has no member named 'dma_bytes' include/sound/pcm.h:941: error: 'struct snd_dma_buffer' has no member named 'bytes'include/sound/pcm.h:943: error: 'struct snd_pcm_runtime' has no member named 'dma_buffer_p' include/sound/pcm.h:944: error: 'struct snd_pcm_runtime' has no member named 'dma_area' include/sound/pcm.h:945: error: 'struct snd_pcm_runtime' has no member named 'dma_addr' include/sound/pcm.h:946: error: 'struct snd_pcm_runtime' has no member named 'dma_bytes'include/sound/pcm.h: At top level:include/sound/pcm.h:966: error: expected declaration specifiers or '...' before 'size_t' include/sound/pcm.h:966: error: expected declaration specifiers or '...' before 'size_t' include/sound/pcm.h:969: error: expected declaration specifiers or '...' before 'size_t' include/sound/pcm.h:969: error: expected declaration specifiers or '...' before 'size_t' include/sound/pcm.h:970: error: expected declaration specifiers or '...' before 'size_t'include/sound/pcm.h: In function 'snd_pcm_mmap_data_open':include/sound/pcm.h:981: error: 'struct vm_area_struct' has no member named 'vm_private_data' include/sound/pcm.h:982: error: 'struct snd_pcm_substream' has no member named 'runtime'include/sound/pcm.h: In function 'snd_pcm_mmap_data_close':include/sound/pcm.h:987: error: 'struct vm_area_struct' has no member named 'vm_private_data' include/sound/pcm.h:988: error: 'struct snd_pcm_substream' has no member named 'runtime'include/sound/pcm.h: At top level:include/sound/pcm.h:1000: error: expected declaration specifiers or '...' before 'size_t'include/sound/pcm.h: In function 'snd_pcm_limit_isa_dma_size':include/sound/pcm.h:1002: error: 'max' undeclared (first use in this function)
In file included from /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/aoa.h:21,
from /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:14:/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h: At top level:/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:37: error: expected specifier-qualifier-list before 'u64' /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:142: error: field 'ofdev' has incomplete type /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:169: error: expected specifier-qualifier-list before 'u32' /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/../soundbus/soundbus.h:193: error: field 'driver' has incomplete type /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c: In function 'attach_codec_to_fabric':/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:33: error: 'ENOENT' undeclared (first use in this function) /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c: In function 'aoa_fabric_register':/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:85: error: 'EALREADY' undeclared (first use in this function) /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:89: error: 'EEXIST' undeclared (first use in this function) /home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.c:91: error: 'EINVAL' undeclared (first use in this function) make[3]: *** [/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa/snd-aoa-core.o] Error 1
make[2]: *** [/home/shorty/kernel-factory/git/snd-aoa/snd-aoa/aoa] Error 2
make[1]: *** [_module_/home/shorty/kernel-factory/git/snd-aoa/snd-aoa] Error 2
make[1]: Leaving directory `/home/shorty/kernel-factory/git/linux-2.6'
make: *** [modules] Error 2
-------------
I should compile with gcc 4.1, IINM:
$ cat /proc/version Linux version 2.6.17-rc3-g5528e568-dirty (root@debby1-6) (gcc version 4.1.1 20060428 (prerelease) (Debian 4.1.0-2)) #1 Sun May 7 23:51:15 CEST 2006
Does it help?
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
Quoted 6 lines · Wolfgang Pfeiffer
Quoted 1 line · Johannes Berg
Also, try snd-aoa.
Impossible here, it does not compile here. Neither with gcc 4.0 or 4.1
Not being sure tho' whether the fact my source dir for the running kernel is cleaned up, IINM, (like "fakeroot make-kpkg clean") is the culprit for the failed compile ... I'll have a look into that at next daylight ... :)
Until then
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
Quoted 5 lines · Wolfgang Pfeiffer
Quoted 4 lines · Wolfgang Pfeiffer
Quoted 1 line · Johannes Berg
Also, try snd-aoa.
Quoted 7 lines
Quoted 2 lines
Impossible here, it does not compile here. Neither with gcc 4.0 or 4.1
Not being sure tho' whether the fact my source dir for the running kernel is cleaned up, IINM, (like "fakeroot make-kpkg clean") is the culprit for the failed compile ... I'll have a look into that at next daylight ... :)
You can't build modules with "cleaned" kernel headers.
Ben.
Hi All
First a fat Thanks to Johannes, Benh and to all of those heroes making it possible to run a relatively freh PPC (Apple) Powerbook model with Linux ... :)
I'm cross-posting. So a short note for those who can't know what all this is about:
I didn't have sound with a fresh git kernel, on the machine mentioned above:
$ 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
[Oops, something's messed up there: this actually is a 1.67 Ghz processor. I'll have a look at this later .. :) ]
That's why I sent a message to [email protected]. The thread is starting here:
http://ozlabs.org/pipermail/linuxppc-dev/2006-May/022736.html
Quoted 5 lines · Wolfgang Pfeiffer
Quoted 1 line · Johannes Berg
Also, try snd-aoa.
Impossible here, it does not compile here. Neither with gcc 4.0 or 4.1
Wrong. To put it mildly .. :) Result probably of me being too tired, too fast, and too anal when reading instructions ...
# lsmod | grep -i aoa snd_aoa_codec_onyx 12032 2 snd_aoa_fabric_layout 7492 2 snd_aoa 8076 2 snd_aoa_codec_onyx,snd_aoa_fabric_layout soundbus 6628 2 snd_aoa_fabric_layout,i2sbus snd 60148 12 snd_aoa_codec_onyx,snd_aoa_fabric_layout, snd_aoa,snd_powermac,i2sbus,snd_pcm_oss, snd_mixer_oss,snd_pcm,snd_timer
I successfully compiled the software now, and only with gcc-4.1. Example:
# 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: snd srcversion: D0DFD2EF0CFEB8E7C08AAEB
The git kernel I compiled the snd-aoa modules for (must be from about yesterday, IINM):
cat /proc/version
Linux version 2.6.17-rc3-gf358166a-dirty (root@debby1-6) (gcc version 4.1.1 20060428 (prerelease) (Debian 4.1.0-2)) #1 Fri May 12 01:13:36 CEST 2006
config for this latest kernel (Please note the "CONFIG_PREEMPT_VOLUNTARY=y" in there ... :) ... :
<http://wolfgangpfeiffer.com/config-2.6.17-rc3-gf358166a-dirty.txt>
I filled /etc/modules with snd_aoa modules and i have sound already from boot time on ... with a minor glitch (i.e. not being able to store a certain volume level via alsactrl to the next reboot, as it seems), but sound ...
Quoted 4 lines
I took your instructions from
http://lists.debian.org/debian-powerpc/2006/03/msg00470.html
I'm listening to some Internet radio station via alsaplayer while writing this mail ... :) ...
Results, as of now:
I can change the sound volume via the software. Tested in xine and alsaplayer-gtk so far ...
I have problems doing the same with pbbuttonsd. That is I can start, e.g., gtkppbuttons, but when pressing <FN>-<F5> or <FN>-<F4> it seems being impossible to change the sound volume this way. But I can toggle it completely ON/OFF with <FN>-<F3.> ... not being sure tho' whether this is due to some of my braindead mistakes or really a pbbuttonsd issue ...
Thanks again a lot to everyone for your work, your time, and the resulting fine software ... :)
Nice weekend
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
Quoted 2 lines · Wolfgang Pfeiffer
[Oops, something's messed up there: this actually is a 1.67 Ghz processor. I'll have a look at this later .. :) ]
No, it's fine, it is clocked down at boot, use cpufreq.
Quoted 4 lines
I filled
/etc/moduleswithsnd_aoamodules and i have sound already from boot time on ... with a minor glitch (i.e. not being able to store a certain volume level via alsactrl to the next reboot, as it seems), but sound ...
There are a bunch of userland bugs... Alsamixer cannot cope with the 3..28 of the capture volume, some gnome tools can't cope with the negative scale of the playback volume, and others.
I don't want to workaround this, please all file bugs against the respective programs.
amixer always seems to work fine.
Quoted 6 lines
I have problems doing the same with pbbuttonsd. That is I can start, e.g., gtkppbuttons, but when pressing <FN>-<F5> or <FN>-<F4> it seems being impossible to change the sound volume this way. But I can toggle it completely ON/OFF with <FN>-<F3.> ... not being sure tho' whether this is due to some of my braindead mistakes or really a pbbuttonsd issue ...
No idea, I no longer use pbbuttonsd.
Quoted 2 lines
Thanks again a lot to everyone for your work, your time, and the resulting fine software ... :)
:)
johannes
Quoted 6 lines · Johannes Berg
Quoted 3 lines
As to the reason why I came here:
As I can't be sure whether the issue announced in the subject line is really a kernel issueDid it ever work? I don't quite know what machine a 5,8 is since I have a 5,6 only. Also, try snd-aoa.
Same as mine, it works fine with snd-aoa
Ben.
Quoted 1 line · Benjamin Herrenschmidt
Same as mine, it works fine with snd-aoa
I should build a database with a machine string -> user* mapping... This means that even my brother has this one and it works great with snd-aoa as far as I know :)
Though, since the alsa userspace libs absolutely *SUCK* no program I know of can properly represent the mixer controls except maybe amixer... I'd hate to work around this in the kernel, but the alsa libs are such complex beasts that I have a feeling they won't be fixed.
Anyone up to inventing a new mixer API that uses sysfs? ;)
johannes
Quoted 4 lines · Johannes Berg
Quoted 1 line · Benjamin Herrenschmidt
Same as mine, it works fine with snd-aoa
Quoted 8 lines
I should build a database with a machine string -> user* mapping... This means that even my brother has this one and it works great with snd-aoa as far as I know :)
Though, since the alsa userspace libs absolutely *SUCK* no program I know of can properly represent the mixer controls except maybe amixer... I'd hate to work around this in the kernel, but the alsa libs are such complex beasts that I have a feeling they won't be fixed.
kmix looks approx. ok
Quoted 3 lines
Anyone up to inventing a new mixer API that uses sysfs? ;)
johannes