LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-20-2014, 04:57 PM   #1
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 134

Rep: Reputation: Disabled
Problem with ALSA and Flashplayer on Slackware 13.0


I have the following problem with ALSA on Slackware 13.0.
When I am watching a Flash video from a web site, sometimes
I start hearing a clicking sound while the video freezes,
and I have to close firefox to stop that clicking sound.

After that, the sound card (ATI IXP 400) seems to be in a strange state. Trying to play a .au file or a .wav file with aplay
produces a periodic noise, with a period of about 1/10th of a second.
Attempting to play the same .au file with cat file.au > /dev/audio
also gives a cyclic sound, but the period is about 2s. Sometimes
the playback jumps to a later part of the sound file, and start looping there, again with a 2s period.

with xmms file.mp3 no sound is played. If I seek to a different position, I hear sound for less than 1s then playback stops again.

Quote:
The output of speaker-test:

speaker-test 1.0.18

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
0 - Front Left
Quote:
When doing cat file.au >/dev/audio,

/proc/asound/card0/pcm0p/sub0/*params

access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 8000 (8000/1)
period_size: 4096
buffer_size: 16384
OSS format: MU_LAW
OSS channels: 1
OSS rate: 8000
OSS period bytes: 4096
OSS periods: 4
OSS period frames: 4096
tstamp_mode: NONE
period_step: 1
avail_min: 1
start_threshold: 1
stop_threshold: 16384
silence_threshold: 4112
silence_size: 4112
boundary: 1073741824
It is still possible to adjust sound level using alsamixer, but this
does not help, and neither does using alsactl. Also using modprobe to
remove snd_atiixp and reinserting snd_atiixp does not solve the problem. I know that rebooting the computer solves the problem,
but is there a way to reinitialize the sound driver by echo 'something' into a special file under /proc or /sys ?

For now, I am trying to collect data from /sys/ that might help to
identify the problem.
 
Old 02-21-2014, 02:08 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
simple look at this site
http://www.adobe.com/software/flash/about/

if you have FF you have an old flash so consider trying google chrome

2) reboot to clear errors

aplay is not the best player around....YMMV I prefer vlc
 
Old 02-22-2014, 06:28 AM   #3
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 134

Original Poster
Rep: Reputation: Disabled
I know that flashplayer 11 is now unsupported on Linux. But I have never read about the bug
I have encountered after various searches on Google, so it is unlikely to be known to Adobe.
I encounter that bug rather infrequently, generally as a result of watching videos on web sites
of TV channels (once with the french Canal Plus and twice with NBC). The bug is non-reproducible:
watching again the video after a reboot does not trigger the clicking sound anymore.
My guess is that it is caused by some latency in the flux of data between the server and my computer
that results in a buffer getting empty or a pointer containing some incorrect address. The flashplayer
plugin is not detecting the problem, and instead of freezing temporarily the video playback, it sends
incorrect data to the sound card, creating the clicking sound, and then disabling it.
For me, the problem is not so much the flashplayer bug but the fragility of the ALSA sound architecture.
Once the bug has disabled the sound card, I have no solution to reinitialize it properly except rebooting the computer. I consider that kind of flaw unacceptable in a Unix type operating system. There ought to be
a way to make the kernel reinitialize the sound card either by some ioctl or by writing to a /proc or /sys file. Maybe this problem has been fixed in more recent versions of the Linux kernel (I am still using a 2.6
kernel) and the solution is to compile a LTS 3.x kernel compatible with Slackware 13.0 or to recompile the kernel with OSSv4 instead of ALSA. But if that it the case, I would like some pointers to which kernels/OSS modules are fixing the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
flashplayer in slackware Clarence27 Slackware 3 09-13-2006 07:13 AM
slackware alsa problem FerkoPica Slackware 3 06-25-2006 12:46 PM
Slackware 10.1 ALSA problem on laptop bleedingturnips Linux - Software 2 02-01-2006 09:50 PM
arts and alsa problem slackware 10.1 alamuru420123 Slackware 1 02-18-2005 12:08 AM
ALSA problem with slackware syntaxx Linux - Software 2 05-01-2003 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration