2.6.2 PPC ALSA snd-powermac
Is it just me or does 'make menuconfig' in kernel 2.6.2 on ppc not give me an option to enable i2c? It's supposed to be in Character Devices, no? The ALSA snd-powermac module needs i2c and upon a 'modprobe snd-powermac' spews forth:
Feb 10 17:47:25 chocomel kernel: snd_powermac: Unknown symbol i2c_smbus_write_block_data Feb 10 17:47:25 chocomel kernel: snd_powermac: Unknown symbol i2c_add_driver Feb 10 17:47:25 chocomel kernel: snd_powermac: Unknown symbol i2c_smbus_write_byte_data Feb 10 17:47:25 chocomel kernel: snd_powermac: Unknown symbol i2c_del_driver Feb 10 17:47:25 chocomel kernel: snd_powermac: Unknown symbol i2c_detach_client Feb 10 17:47:25 chocomel kernel: snd_powermac: Unknown symbol
i2c_attach_client
- P.
At Wed, 11 Feb 2004 18:11:48 +1100,
Quoted 6 lines · Peter Lieverdink
[1 <text/plain (quoted-printable)>]
Is it just me or does 'make menuconfig' in kernel 2.6.2 on ppc not give me an option to enable i2c? It's supposed to be in Character Devices, no? The ALSA snd-powermac module needs i2c and upon a 'modprobe snd-powermac' spews forth:
does the attached patch work?
--
Takashi Iwai <[email protected]> ALSA Developer - www.alsa-project.org
sound/ppc/Kconfig +3 -1
@@ -5,7 +5,9 @@ config SND_POWERMAC tristate "PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest)" - depends on SND + depends on SND && PPC_PMAC + select I2C + select I2C_KEYWEST endmenu
Quoted 4 lines · Peter Lieverdink
Is it just me or does 'make menuconfig' in kernel 2.6.2 on ppc not give me an option to enable i2c? It's supposed to be in Character Devices, no? The ALSA snd-powermac module needs i2c and upon a 'modprobe snd-powermac' spews forth:
Yes, it is there IIRC (I'm not at home, I can't verify). But I don't know if the official kernel is up to date with all macintosh stuff. I'm using 2.6.2-benh1 and the option to enable i2c exists and works fine.
http://www.penguinppc.org/dev/kernel.shtml
--
Giuliano.
Quoted 10 lines · Takashi Iwai
At Wed, 11 Feb 2004 18:11:48 +1100,
Quoted 6 lines · Peter Lieverdink
[1 <text/plain (quoted-printable)>]
Is it just me or does 'make menuconfig' in kernel 2.6.2 on ppc not give me an option to enable i2c? It's supposed to be in Character Devices, no? The ALSA snd-powermac module needs i2c and upon a 'modprobe snd-powermac' spews forth:does the attached patch work?
Unfortunately:
cafuego@chocomel:/usr/src/linux-2.6.2$ make-kpkg clean; make-kpkg --revision chocomel.1 kernel-image [...] LD .tmp_vmlinux1 sound/built-in.o(.text+0x28770): In function `daca_init_client': : undefined reference to `i2c_smbus_write_byte_data' sound/built-in.o(.text+0x28788): In function `daca_init_client': : undefined reference to `i2c_smbus_write_byte_data' sound/built-in.o(.text+0x287a4): In function `daca_init_client': : undefined reference to `i2c_smbus_write_block_data' sound/built-in.o(.text+0x28834): In function `daca_set_volume': : undefined reference to `i2c_smbus_write_block_data' sound/built-in.o(.text+0x28aac): In function `daca_put_amp': : undefined reference to `i2c_smbus_write_byte_data' sound/built-in.o(.text+0x28ae8): In function `daca_resume': : undefined reference to `i2c_smbus_write_byte_data' sound/built-in.o(.text+0x28b0c): In function `daca_resume': : undefined reference to `i2c_smbus_write_byte_data' sound/built-in.o(.text+0x28bb0): In function `send_init_client': : undefined reference to `i2c_smbus_write_byte_data' sound/built-in.o(.text+0x28df0): In function `tumbler_set_master_volume': : undefined reference to `i2c_smbus_write_block_data' sound/built-in.o(.text+0x28fd8): In function `tumbler_set_drc': : undefined reference to `i2c_smbus_write_block_data' sound/built-in.o(.text+0x290c0): In function `snapper_set_drc': : undefined reference to `i2c_smbus_write_block_data' sound/built-in.o(.text+0x29328): In function `tumbler_set_mono_volume': : undefined reference to `i2c_smbus_write_block_data' sound/built-in.o(.text+0x29500): In function `snapper_set_mix_vol1': : undefined reference to `i2c_smbus_write_block_data' sound/built-in.o(.text+0x29e04): In function `keywest_attach_adapter': : undefined reference to `i2c_attach_client' sound/built-in.o(.text+0x29e7c): In function `keywest_detach_client': : undefined reference to `i2c_detach_client' sound/built-in.o(.text+0x29ef0): In function `snd_pmac_keywest_cleanup': : undefined reference to `i2c_del_driver' sound/built-in.o(.init.text+0x2848): In function `snd_pmac_keywest_init': : undefined reference to `i2c_add_driver' make[1]: *** [.tmp_vmlinux1] Error 1 make[1]: Leaving directory `/usr/src/linux-2.6.2' make: *** [stamp-build] Error 2 cafuego@chocomel:/usr/src/linux-2.6.2$
- Peter.
--
Quoted 16 lines
--
Takashi Iwai <[email protected]> ALSA Developer - www.alsa-project.org______________________________________________________________________
sound/ppc/Kconfig +3
-1@@ -5,7 +5,9 @@ config SND_POWERMAC tristate "PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest)" - depends on SND + depends on SND && PPC_PMAC + select I2C + select I2C_KEYWEST endmenu
Quoted 14 lines · Peter Lieverdink
Quoted 10 lines · Takashi Iwai
At Wed, 11 Feb 2004 18:11:48 +1100,
Quoted 6 lines · Peter Lieverdink
[1 <text/plain (quoted-printable)>]
Is it just me or does 'make menuconfig' in kernel 2.6.2 on ppc not give me an option to enable i2c? It's supposed to be in Character Devices, no? The ALSA snd-powermac module needs i2c and upon a 'modprobe snd-powermac' spews forth:does the attached patch work?
Unfortunately:
Quoted 7 lines
cafuego@chocomel:/usr/src/linux-2.6.2$ make-kpkg clean; make-kpkg --revision chocomel.1 kernel-image [...] LD .tmp_vmlinux1 sound/built-in.o(.text+0x28770): In function `daca_init_client': : undefined reference to `i2c_smbus_write_byte_data' ...
Please send your .config .
Quoted 1 line
- Peter.
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 1 line · Peter Lieverdink
No prob, here you go...
Thanks.
Now I do understand the problem.
Short version:
It should work if you try 2.6.3-rc3 instead.
Long version:arch/ppc/Kconfig didn't use drivers/Kconfig in 2.6.2 and didn't inclide drivers/i2c/Kconfig.
In 2.6.3-rc3, arch/ppc/Kconfig uses drivers/Kconfig.
Quoted 2 lines
- Peter.
...
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedProblem solved on 2.6.3
- Peter.
Quoted 21 lines · Adrian Bunk
Quoted 1 line · Peter Lieverdink
No prob, here you go...
Thanks.
Now I do understand the problem.
Short version:
It should work if you try 2.6.3-rc3 instead.Long version:
arch/ppc/Kconfigdidn't usedrivers/Kconfigin 2.6.2 and didn't inclidedrivers/i2c/Kconfig.
In 2.6.3-rc3,arch/ppc/Kconfigusesdrivers/Kconfig.Quoted 2 lines
- Peter.
...cu
Adrian
Signature · 2 lines
Peter Lieverdink <[email protected]> Creative Contingencies Pty. Ltd.