Re: (Almost) no audio on PowerBook with Snapper device.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 20 May 2007, Christian Böhme wrote:

Hi all,

I have been unsuccessfully trying to get the simplest audio output
(``sound playback'' in ALSA parlance) to work on an Apple PowerBook
Titanium IV since the 2.6.21 stable version hit www.kernel.org.

The problem I ran into is that no matter which application (speaker-test,
aplay, xmms, gxine) using either the native ALSA API or via the OSS
compatibility layer, none of these is able to sustain audio output for
more than 7 seconds.  In fact, most attempts max out at statistically one
second (with many even shorter than that).  After the signal at the output
jack died, the application appears to be blocking forever (it does not spin)
with no signs of ending its output.  Nothing about this is found in the,
syslog, BTW, with these config options enabled:

Hmm, it soulds like you initially fill the buffer, but the program never
receives a signal that the buffer is empty again and can be refilled. Thus
the program sits there waiting for the signal to refill the buffer, and the
sound card sits there waiting for new info to be put into the buffer.

I however have no idea how to aleviate this miscommunication. Sounds like a
driver problem.
Have you tried the very latest alsa release? The kernel is always a month
or two behind in the alsa included.


CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_SND_DEBUG=y
CONFIG_SND_PCM_XRUN_DEBUG=y
CONFIG_SND_POWERMAC=y
CONFIG_SND_POWERMAC_AUTO_DRC=y

$ cat /proc/asound/cards
 0 [Snapper        ]: PMac Snapper - PowerMac Snapper
                      PowerMac Snapper (Dev 26) Sub-frame 0

$ cat /proc/asound/devices
  0: [ 0]   : control
 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

$ cat /proc/asound/timers
G0: system timer : 1000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE

$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.14rc3 (Wed Mar 14
07:25:50 2007 UTC).

$ cat /proc/asound/oss/devices
  0: [0- 0]: mixer
  3: [0- 0]: digital audio
  4: [0- 0]: digital audio

$ cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.14rc3 emulation code)
Kernel: Linux tibook 2.6.21.1 #1 PREEMPT Tue May 15 00:59:27 CEST 2007 ppc
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
PowerMac Snapper (Dev 26) Sub-frame 0

Audio devices:
0: PowerMac Snapper (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
7: system timer

Mixers:
0: PowerMac Snapper

FTR, I have been using OSS up until the 2.6.19.x kernels, avoiding the
2.6.20.x kernels altogether due to a botched driver implementation (which
is somewhat surprising given the fact that everything worked in previous
kernel versions literally out-of-the-box) and felt to move over to ALSA
with the deprecation of OSS in the 2.6.21.x kernels.

Has anyone encountered similar problems and, better yet, found the
solution to them ?


Thanks,
Christian


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


--
William G. Unruh   |  Canadian Institute for|     Tel: +1(604)822-3273
Physics&Astronomy  |     Advanced Research  |     Fax: +1(604)822-5324
UBC, Vancouver,BC  |   Program in Cosmology |     unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1     |      and Gravity       |  www.theory.physics.ubc.ca/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux