sound/ppc/pmac.c typo.
PATCH 1/1 sound/ppc/pmac.c typo.
In 2.6.16-rc1 there is a small typo introduced by the 'Remove device_node addrs/n_addr' changes which prevents my Powerbook G4 sound from working:
Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC). snd: can't request rsrc 0 (Sound Control: 0x80000000:80004fff) ALSA device list: No soundcards found.
The patch below fixes it. Of course, the patch fixing the i2c issues ('i2c_smbus_write_i2c_block_data' patch) needs to be applied to in order for the sound to completly work.
sound/ppc/pmac.c +1 -1
@@ -1217,7 +1217,7 @@ goto __error; }for (i =0 ; i <3 ; i ++) { -if (of_address_to_resource (np->parent, i, +if (of_address_to_resource (np, i, &chip->rsrc[i])) {printk (KERN_ERR "snd: can't translate rsrc " " %d (%s)\n" , i, rnames[i]);
Signature · 1 line
Stelian Pop <[email protected]>
At Fri, 20 Jan 2006 11:35:38 +0100,
Quoted 9 lines · Stelian Pop
In 2.6.16-rc1 there is a small typo introduced by the 'Remove
device_nodeaddrs/n_addr' changes which prevents my Powerbook G4 sound from working:Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC). snd: can't request rsrc 0 (Sound Control: 0x80000000:80004fff) ALSA device list: No soundcards found.
Quoted 5 lines
The patch below fixes it. Of course, the patch fixing the i2c issues ('
i2c_smbus_write_i2c_block_data' patch) needs to be applied to in order for the sound to completly work.Signed-off-by Stelian Pop <[email protected]>
Thanks, I applied it to ALSA tree now.
Takashi
Quoted 11 lines · Takashi Iwai
At Fri, 20 Jan 2006 11:35:38 +0100,
Quoted 9 lines · Stelian Pop
In 2.6.16-rc1 there is a small typo introduced by the 'Remove
device_nodeaddrs/n_addr' changes which prevents my Powerbook G4 sound from working:Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC). snd: can't request rsrc 0 (Sound Control: 0x80000000:80004fff) ALSA device list: No soundcards found.
Quoted 7 lines
Quoted 5 lines
The patch below fixes it. Of course, the patch fixing the i2c issues ('
i2c_smbus_write_i2c_block_data' patch) needs to be applied to in order for the sound to completly work.Signed-off-by Stelian Pop <[email protected]>Thanks, I applied it to ALSA tree now.
Thanks.
BTW, is it a hardware or a configuration issue the fact that I'm unable to mix several alsa streams ?
For example, if I issue two instances of 'aplay foo.wav', the first one plays the sound while the second one remains stuck in:
stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7467, ...}) = 0
open("/dev/snd/controlC0", O_RDONLY) = 3
close(3) = 0
open("/dev/snd/controlC0", O_RDWR) = 3
ioctl(3, USBDEVFS_CONTROL, 0x7fee2bf8) = 0
ioctl(3, UI_DEV_CREATE, 0x7fee2ca0) = 0
close(3) = 0
open("/dev/snd/controlC0", O_RDONLY) = 3
close(3) = 0
open("/dev/snd/controlC0", O_RDWR) = 3
ioctl(3, USBDEVFS_CONTROL, 0x7fee2fa8) = 0
ioctl(3, 0x80045532, 0x7fee2fd8) = 0
open("/dev/snd/pcmC0D0p", O_RDWRuntil the first one ends playing. Only then the second one continues the execution.
Just in case this is useful:
# cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC). # cat /proc/asound/cards 0 [Snapper ]: PMac Snapper - PowerMac Snapper PowerMac Snapper (Dev 0) Sub-frame 0 # cat /proc/asound/devices 0: [ 0] : control 1: : sequencer 16: [ 0- 0]: digital audio playback 24: [ 0- 0]: digital audio capture 33: : timer # cat /proc/asound/pcm 00-00: PMac Snapper : PowerMac Snapper : playback 1 : capture 1
Stelian.
Signature · 1 line
Stelian Pop <[email protected]>
At Fri, 20 Jan 2006 16:54:31 +0100,
Quoted 17 lines · Stelian Pop
Quoted 15 lines · Takashi Iwai
At Fri, 20 Jan 2006 11:35:38 +0100,
Quoted 13 lines · Stelian Pop
In 2.6.16-rc1 there is a small typo introduced by the 'Remove
device_nodeaddrs/n_addr' changes which prevents my Powerbook G4 sound from working:Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC). snd: can't request rsrc 0 (Sound Control: 0x80000000:80004fff) ALSA device list: No soundcards found.The patch below fixes it. Of course, the patch fixing the i2c issues ('
i2c_smbus_write_i2c_block_data' patch) needs to be applied to in order for the sound to completly work.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Stelian Pop <[email protected]>Thanks, I applied it to ALSA tree now.
Thanks.
BTW, is it a hardware or a configuration issue the fact that I'm unable to mix several alsa streams ?
Did you install alsa-lib 1.0.11rc2, too? It should work with dmix as default.
Takashi
Quoted 23 lines · Takashi Iwai
At Fri, 20 Jan 2006 16:54:31 +0100,
Quoted 21 lines · Stelian Pop
Quoted 18 lines · Takashi Iwai
At Fri, 20 Jan 2006 11:35:38 +0100,
Quoted 9 lines · Stelian Pop
In 2.6.16-rc1 there is a small typo introduced by the 'Remove
device_nodeaddrs/n_addr' changes which prevents my Powerbook G4 sound from working:Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC). snd: can't request rsrc 0 (Sound Control: 0x80000000:80004fff) ALSA device list: No soundcards found.Quoted 5 lines
The patch below fixes it. Of course, the patch fixing the i2c issues ('
i2c_smbus_write_i2c_block_data' patch) needs to be applied to in order for the sound to completly work.Signed-off-by Stelian Pop <[email protected]>Thanks, I applied it to ALSA tree now.
Quoted 7 lines
Quoted 4 lines
Thanks.
BTW, is it a hardware or a configuration issue the fact that I'm unable to mix several alsa streams ?
Did you install alsa-lib 1.0.11rc2, too? It should work with dmix as default.
This is an ubuntu breezy ppc distribution, and it seems that the package is called libasound2, and it is based on alsa-lib 1.0.9-2.
Stracing the aplay process shows that dmix.conf is being read:
defiant:~ 20 > strace -eopen aplay wav/slow_20spindle_20motor.wav
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
open("/lib/libm.so.6", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/lib/libpthread.so.0", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3
open("/usr/share/alsa/cards/aliases.conf", O_RDONLY) = 3
open("/usr/share/alsa/pcm/default.conf", O_RDONLY) = 4
open("/usr/share/alsa/pcm/dmix.conf", O_RDONLY) = 4
open("/usr/share/alsa/pcm/dsnoop.conf", O_RDONLY) = 4
open("/dev/snd/controlC0", O_RDONLY) = 3
open("/dev/snd/controlC0", O_RDONLY) = 3
open("/dev/snd/controlC0", O_RDWR) = 3
open("/dev/snd/controlC1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/aloadC1", O_RDONLY) = -1 ENOENT (No such file or directory)
[...]I suppose I could test with 1.0.11rc2 if it does make sense to.
Stelian.
Signature · 1 line
Stelian Pop <[email protected]>
At Fri, 20 Jan 2006 17:09:26 +0100,
Quoted 27 lines · Stelian Pop
Quoted 25 lines · Takashi Iwai
At Fri, 20 Jan 2006 16:54:31 +0100,
Quoted 23 lines · Stelian Pop
Quoted 11 lines · Takashi Iwai
At Fri, 20 Jan 2006 11:35:38 +0100,
Quoted 9 lines · Stelian Pop
In 2.6.16-rc1 there is a small typo introduced by the 'Remove
device_nodeaddrs/n_addr' changes which prevents my Powerbook G4 sound from working:Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC). snd: can't request rsrc 0 (Sound Control: 0x80000000:80004fff) ALSA device list: No soundcards found.Quoted 7 lines
Quoted 5 lines
The patch below fixes it. Of course, the patch fixing the i2c issues ('
i2c_smbus_write_i2c_block_data' patch) needs to be applied to in order for the sound to completly work.Signed-off-by Stelian Pop <[email protected]>Thanks, I applied it to ALSA tree now.
Thanks.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
BTW, is it a hardware or a configuration issue the fact that I'm unable to mix several alsa streams ?
Did you install alsa-lib 1.0.11rc2, too? It should work with dmix as default.
This is an ubuntu breezy ppc distribution, and it seems that the package is called libasound2, and it is based on alsa-lib 1.0.9-2.
1.0.9 doesn't use dmix as default.
Takashi
Quoted 10 lines · Takashi Iwai
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
BTW, is it a hardware or a configuration issue the fact that I'm unable to mix several alsa streams ?
Did you install alsa-lib 1.0.11rc2, too? It should work with dmix as default.
This is an ubuntu breezy ppc distribution, and it seems that the package is called libasound2, and it is based on alsa-lib 1.0.9-2.
1.0.9 doesn't use dmix as default.
Ok, using 1.0.11rc2 works with dmix indeed.
Aplay works correctly. So does xine.
However mplayer seems to have problems with this version of the library:
[...]
Building audio filter chain for 22050Hz/1ch/u8 -> 0Hz/0ch/s8...
alsa-init: 1 soundcard found, using: default
alsa: 22050 Hz/1 channels/1 bpf/8192 bytes buffer/Unsigned 8 bit
AO: [alsa] 22050Hz 1ch u8 (1 bps)
Building audio filter chain for 22050Hz/1ch/u8 -> 22050Hz/1ch/u8...
Video: no video
Starting playback...
alsa-space: xrun of at least 0.006 msecs. resetting stream
alsa-space: xrun of at least 0.006 msecs. resetting stream
alsa-space: xrun of at least 0.006 msecs. resetting stream
alsa-space: xrun of at least 0.005 msecs. resetting stream
alsa-space: xrun of at least 0.009 msecs. resetting stream
alsa-space: xrun of at least 0.006 msecs. resetting stream
alsa-space: xrun of at least 0.004 msecs. resetting stream
alsa-space: xrun of at least 0.005 msecs. resetting stream
alsa-space: xrun of at least 0.005 msecs. resetting stream
But it could be mplayer's fault at this point.
Stelian.
Signature · 1 line
Stelian Pop <[email protected]>