Re: FC5 and Flash Audio

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

 



Brad Fuller wrote:
Thomas Ilnseher wrote:
Brad Fuller wrote:
Bert Visser wrote:
I've upgraded to FC5, and I'm slowly inching my way up to get audio
working (PlanetCCRMA). I have a particular problem in that Flash video
works fine, but I have no audio (occurs in Firefox, Opera and
Konqueror.) I've searched for a solution and really haven't found
anything that works. Some reports have said that a chmod to
/dev/dsp of
0666 will help. Others say that changing the permissions on the
"plugins" directory will do the trick. Nope, not for me.

I noticed that I had no /dev/dsp. So, I kinda figured that maybe the
Flash plugin hard defaults to writing to /dev/dsp. So I made one with
./MAKEDEV audio... and sure enough, a dsp1 was made. However, I still
have no audio when playing flash in a browser.
/dev/dsp* are oss audio devices.

oss drivers are marked as depreciated in the kernel, and are replaced
with alsa drivers.

thus i am sure, FC5 will use ALSA instead of oss.

there are oss compatibility modules for alsa, they are named:
snd_pcm_oss
snd_mixer_oss
snd_seq_oss
as I mentioned, these do exist. So it's looking more and more like a
udev problem.

ok, /dev/dsp1 does exist and is usable (the modules are loaded)

you could try to make a symlink from /dev/dsp1 to /dev/dsp
ln -s /dev/dps1 /dev/dsp
and see if things work.

i noticed that for my installation (which is gentoo!), legacy oss devices are created in
/dev/sound/ .

maybe that is true for FC5 also.

on my sys there are symlinks created from /dev/dsp to /dev/sound/dsp and so on.

the udev rules look like this:

# sound devices
KERNEL=="adsp", NAME="sound/%k", SYMLINK+="%k", GROUP="audio" KERNEL=="adsp[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio" KERNEL=="audio", NAME="sound/%k", SYMLINK+="%k", GROUP="audio" KERNEL=="audio[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio" KERNEL=="dsp", NAME="sound/%k", SYMLINK+="%k", GROUP="audio" KERNEL=="dsp[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio" KERNEL=="mixer", NAME="sound/%k", SYMLINK+="%k", GROUP="audio" KERNEL=="mixer[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio" KERNEL=="sequencer", NAME="sound/%k", SYMLINK+="%k", GROUP="audio" KERNEL=="sequencer[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"

they are located under /etc/udev/rules.d/50-udev.rules (here in gentoo).


do 'lsmod | grep oss' and see if these modules are loaded.
if yes, there is something foobared with your udev setup -
if no (thats what i expect) load these modules:

modprobe snd_pcm_oss
modprobe snd_mixer_oss
modprobe snd_seq_oss

note, for sound playback (flash), only the first module is required.

once you load the snd_pcm_oss module, udev should create /dev/dsp* as
required automatically.

if sound playback still doesn't work, this might be because your
soundcard has no built in mixing capabilities,
and some other application is using your audio device.
'other application' might include arts, which is started together with
KDE check with 'ps aux  | grep artsd' and kill with 'killall artsd'.
the later command will disable sound in all kde apps.
nope, don't have artsd running. I only use alsa.

if you are running KDE (and arts), you might also try running firefox as
'artsdsp firefox' from the konsole. this doesn't need the
aforementioned kernel modules.
I've also tried 'aoss firefox' but that didn't work either.

Thanks for the detailed and clear msg!

brad




[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux