* Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
@ 2006-05-10 15:49 Wolfgang Pfeiffer
2006-05-10 16:04 ` Johannes Berg
0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Pfeiffer @ 2006-05-10 15:49 UTC (permalink / raw)
To: linuxppc-dev list
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
--
Wolfgang Pfeiffer: /ICQ: 286585973/ + + + /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer
Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 15:49 Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty Wolfgang Pfeiffer
@ 2006-05-10 16:04 ` Johannes Berg
2006-05-10 17:24 ` Wolfgang Pfeiffer
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Johannes Berg @ 2006-05-10 16:04 UTC (permalink / raw)
To: Wolfgang Pfeiffer; +Cc: linuxppc-dev list
> 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
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 16:04 ` Johannes Berg
@ 2006-05-10 17:24 ` Wolfgang Pfeiffer
2006-05-10 20:54 ` Christoph Cebulla
2006-05-10 23:48 ` Benjamin Herrenschmidt
2006-05-10 21:30 ` Wolfgang Pfeiffer
2006-05-10 23:47 ` Benjamin Herrenschmidt
2 siblings, 2 replies; 13+ messages in thread
From: Wolfgang Pfeiffer @ 2006-05-10 17:24 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev list
On Wed, May 10, 2006 at 06:04:13PM +0200, Johannes Berg wrote:
> > 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?
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
> 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
> 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
--
Wolfgang Pfeiffer: /ICQ: 286585973/ + + + /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer
Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 17:24 ` Wolfgang Pfeiffer
@ 2006-05-10 20:54 ` Christoph Cebulla
2006-05-10 23:48 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 13+ messages in thread
From: Christoph Cebulla @ 2006-05-10 20:54 UTC (permalink / raw)
To: Wolfgang Pfeiffer; +Cc: linuxppc-dev list, Johannes Berg
Hi,
> > 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.
> 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...
> 5.8 is, IINM, the last PPC 15" Powerbook that Apple made
>
> > Also, try snd-aoa.
Best regards,
Christoph
[1] http://lists.debian.org/debian-powerpc/2006/03/msg00226.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 17:24 ` Wolfgang Pfeiffer
2006-05-10 20:54 ` Christoph Cebulla
@ 2006-05-10 23:48 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2006-05-10 23:48 UTC (permalink / raw)
To: Wolfgang Pfeiffer; +Cc: linuxppc-dev list, Johannes Berg
On Wed, 2006-05-10 at 19:24 +0200, Wolfgang Pfeiffer wrote:
> On Wed, May 10, 2006 at 06:04:13PM +0200, Johannes Berg wrote:
> > > 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?
>
> 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.
> > 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
>
> > 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.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 16:04 ` Johannes Berg
2006-05-10 17:24 ` Wolfgang Pfeiffer
@ 2006-05-10 21:30 ` Wolfgang Pfeiffer
2006-05-10 23:08 ` Wolfgang Pfeiffer
2006-05-12 14:19 ` Wolfgang Pfeiffer
2006-05-10 23:47 ` Benjamin Herrenschmidt
2 siblings, 2 replies; 13+ messages in thread
From: Wolfgang Pfeiffer @ 2006-05-10 21:30 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev list
On Wed, May 10, 2006 at 06:04:13PM +0200, Johannes Berg wrote:
> 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 type
include/sound/pcm.h: In function 'snd_pcm_capture_empty':
include/sound/pcm.h:755: error: dereferencing pointer to incomplete type
include/sound/pcm.h: In function 'snd_pcm_trigger_done':
include/sound/pcm.h:762: error: dereferencing pointer to incomplete type
include/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 prototype
include/sound/pcm.h:846: error: syntax error before 'u_int64_t'
include/sound/pcm.h:846: warning: function declaration isn't a prototype
include/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 prototype
include/sound/pcm.h:901: warning: data definition has no type or storage class
include/sound/pcm.h: In function 'snd_pcm_set_runtime_buffer':
include/sound/pcm.h:936: error: dereferencing pointer to incomplete type
include/sound/pcm.h:938: error: dereferencing pointer to incomplete type
include/sound/pcm.h:939: error: dereferencing pointer to incomplete type
include/sound/pcm.h:939: error: dereferencing pointer to incomplete type
include/sound/pcm.h:940: error: dereferencing pointer to incomplete type
include/sound/pcm.h:940: error: dereferencing pointer to incomplete type
include/sound/pcm.h:941: error: dereferencing pointer to incomplete type
include/sound/pcm.h:941: error: dereferencing pointer to incomplete type
include/sound/pcm.h:943: error: dereferencing pointer to incomplete type
include/sound/pcm.h:944: error: dereferencing pointer to incomplete type
include/sound/pcm.h:945: error: dereferencing pointer to incomplete type
include/sound/pcm.h:946: error: dereferencing pointer to incomplete type
include/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 prototype
include/sound/pcm.h:969: error: syntax error before 'size_t'
include/sound/pcm.h:969: warning: function declaration isn't a prototype
include/sound/pcm.h:970: error: syntax error before 'size_t'
include/sound/pcm.h:970: warning: function declaration isn't a prototype
include/sound/pcm.h: In function 'snd_pcm_mmap_data_open':
include/sound/pcm.h:981: error: dereferencing pointer to incomplete type
include/sound/pcm.h:982: error: dereferencing pointer to incomplete type
include/sound/pcm.h: In function 'snd_pcm_mmap_data_close':
include/sound/pcm.h:987: error: dereferencing pointer to incomplete type
include/sound/pcm.h:988: error: dereferencing pointer to incomplete type
include/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 prototype
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)
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
--
Wolfgang Pfeiffer: /ICQ: 286585973/ + + + /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer
Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 21:30 ` Wolfgang Pfeiffer
@ 2006-05-10 23:08 ` Wolfgang Pfeiffer
2006-05-10 23:49 ` Benjamin Herrenschmidt
2006-05-12 14:19 ` Wolfgang Pfeiffer
1 sibling, 1 reply; 13+ messages in thread
From: Wolfgang Pfeiffer @ 2006-05-10 23:08 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev list
On Wed, May 10, 2006 at 11:30:28PM +0200, Wolfgang Pfeiffer wrote:
> On Wed, May 10, 2006 at 06:04:13PM +0200, Johannes Berg wrote:
>
> > 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
--
Wolfgang Pfeiffer: /ICQ: 286585973/ + + + /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer
Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 23:08 ` Wolfgang Pfeiffer
@ 2006-05-10 23:49 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2006-05-10 23:49 UTC (permalink / raw)
To: Wolfgang Pfeiffer; +Cc: linuxppc-dev list, Johannes Berg
On Thu, 2006-05-11 at 01:08 +0200, Wolfgang Pfeiffer wrote:
> On Wed, May 10, 2006 at 11:30:28PM +0200, Wolfgang Pfeiffer wrote:
> > On Wed, May 10, 2006 at 06:04:13PM +0200, Johannes Berg wrote:
> >
> > > 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 ... :)
You can't build modules with "cleaned" kernel headers.
Ben.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 21:30 ` Wolfgang Pfeiffer
2006-05-10 23:08 ` Wolfgang Pfeiffer
@ 2006-05-12 14:19 ` Wolfgang Pfeiffer
2006-05-12 14:27 ` Johannes Berg
1 sibling, 1 reply; 13+ messages in thread
From: Wolfgang Pfeiffer @ 2006-05-12 14:19 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev list, debian-powerpc, Matthias Grimm
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 linuxppc-dev@ozlabs.org. The thread is
starting here:
http://ozlabs.org/pipermail/linuxppc-dev/2006-May/022736.html
On Wed, May 10, 2006 at 11:30:28PM +0200, Wolfgang Pfeiffer wrote:
> On Wed, May 10, 2006 at 06:04:13PM +0200, Johannes Berg wrote:
>
> > 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 <johannes@sipsolutions.net>
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 ...
>
> 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
--
Wolfgang Pfeiffer: /ICQ: 286585973/ + + + /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer
Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-12 14:19 ` Wolfgang Pfeiffer
@ 2006-05-12 14:27 ` Johannes Berg
0 siblings, 0 replies; 13+ messages in thread
From: Johannes Berg @ 2006-05-12 14:27 UTC (permalink / raw)
To: Wolfgang Pfeiffer; +Cc: linuxppc-dev list, debian-powerpc, Matthias Grimm
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
On Fri, 2006-05-12 at 16:19 +0200, Wolfgang Pfeiffer wrote:
> [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.
> 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 ...
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.
> 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.
> Thanks again a lot to everyone for your work, your time, and the
> resulting fine software ... :)
:)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 793 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 16:04 ` Johannes Berg
2006-05-10 17:24 ` Wolfgang Pfeiffer
2006-05-10 21:30 ` Wolfgang Pfeiffer
@ 2006-05-10 23:47 ` Benjamin Herrenschmidt
2006-05-11 11:58 ` Johannes Berg
2 siblings, 1 reply; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2006-05-10 23:47 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev list
On Wed, 2006-05-10 at 18:04 +0200, Johannes Berg wrote:
> > 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.
Same as mine, it works fine with snd-aoa
Ben.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-10 23:47 ` Benjamin Herrenschmidt
@ 2006-05-11 11:58 ` Johannes Berg
2006-05-11 12:04 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 13+ messages in thread
From: Johannes Berg @ 2006-05-11 11:58 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev list
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]
On Thu, 2006-05-11 at 09:47 +1000, Benjamin Herrenschmidt wrote:
> 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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 793 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
2006-05-11 11:58 ` Johannes Berg
@ 2006-05-11 12:04 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2006-05-11 12:04 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev list
On Thu, 2006-05-11 at 13:58 +0200, Johannes Berg wrote:
> On Thu, 2006-05-11 at 09:47 +1000, Benjamin Herrenschmidt wrote:
>
> > 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.
kmix looks approx. ok
> Anyone up to inventing a new mixer API that uses sysfs? ;)
>
> johannes
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2006-05-12 14:27 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-10 15:49 Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty Wolfgang Pfeiffer
2006-05-10 16:04 ` Johannes Berg
2006-05-10 17:24 ` Wolfgang Pfeiffer
2006-05-10 20:54 ` Christoph Cebulla
2006-05-10 23:48 ` Benjamin Herrenschmidt
2006-05-10 21:30 ` Wolfgang Pfeiffer
2006-05-10 23:08 ` Wolfgang Pfeiffer
2006-05-10 23:49 ` Benjamin Herrenschmidt
2006-05-12 14:19 ` Wolfgang Pfeiffer
2006-05-12 14:27 ` Johannes Berg
2006-05-10 23:47 ` Benjamin Herrenschmidt
2006-05-11 11:58 ` Johannes Berg
2006-05-11 12:04 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).