LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sound doesn't work in flashplayer and some media players (https://www.linuxquestions.org/questions/linux-software-2/sound-doesnt-work-in-flashplayer-and-some-media-players-775162/)

neuplnost 12-12-2009 10:29 AM

sound doesn't work in flashplayer and some media players
 
Hello world:),
i am new to this forum but not to linux (uing it since 2005). Now I have to ask on forums for first time...

My current OS is kubuntu 9.10. Problem is sound. In flashplayer and some media players (vlc, kmplayer) doesn't work. In other media players (dragon, amarok) and in system sound works well. In multimedia settings i see 3 devices:

NVIDIA CK804
1. alsa: x-phonom:CARD=1,DEV=0
2. alsa: plughw:CARD=1,DEV=0
3. oss: /dev/dsp1
4. oss: /dev/audio1)

PULSEAUDIO
xine

HDA ATI HDMI
1. alsa: hdmi:CARD=HDMI


Primary output is nvidia. When i use "sudo killall pulseaudio", it tells me that no process found. When i use "sudo alsa force-reload", it tells me this:

Quote:

Unloading ALSA sound driver modules: snd-hda-codec-atihdmi snd-intel8x0 snd-ac97-codec snd-seq-dummy snd-seq-oss snd-hda-intel snd-hda-codec snd-hwdep snd-pcm-oss snd-mixer-oss snd-pcm snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc (failed: modules still loaded: snd-hda-codec-atihdmi snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc).
Loading ALSA sound driver modules: snd-hda-codec-atihdmi snd-intel8x0 snd-ac97-codec snd-seq-dummy snd-seq-oss snd-hda-intel snd-hda-codec snd-hwdep snd-pcm-oss snd-mixer-oss snd-pcm snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc.
After this sound either begin to work everywhere, or nothing change except that KDE gives me this:
Quote:

KDE detected that one or more internal sound devices were removed.
Do you want KDE to permanently forget about these devices?
This is the list of devices KDE thinks can be removed:
Capture: NVidia CK804 with ALC655 (NVidia CK804)
Output: HDA ATI HDMI, ATI HDMI (HDMI Audio Output)
Output: NVidia CK804 with ALC655 (NVidia CK804)
After system restart it won't work again anyway.

I think it might be something with that hdmi output. I wanted to remove that device, but couldn't find out how.

If somedoby has an idea what to do, please advise.

Thanks.

sonichedgehog 12-14-2009 11:31 AM

I waited to reply so this would remain as a zero reply thread, as nothing so far...

No solution to this except for clean install in my case, maybe another member will have a better idea. In http://www.linuxquestions.org/questi...odules-762844/ I was unable to solve a similar problem with sound, I had caused it myself by source-building some media apps that conflicted with the (tightly packaged) ubuntu native apps. In my case, I found a clean install was best as (if you have your home partition separate) it is much quicker than digging out a media problem.

neuplnost 12-15-2009 02:45 AM

Thank you for the answer. No problem to do a clean install, i'm just afraid that this problem will appear again. It looks like those apps are using HDMI device as primary output, but i couldn't find where i can change that. Would be possible to remove or just disable that device please? It's some output implemented on graphic card. Thanks.

map250r 12-16-2009 10:03 AM

I'm having a similar problem. It seems that everything using Phonon (i.e. all KDE4 apps) work just fine, but I can't get sound from anything else. The problem first started after I upgraded all packages on my system, about a month ago.

I do not get sound from flash in firefox (at first flv's stopped after 2 seconds, but not now - ?!), from vlc, from apps run under WINE, or from virtualbox. The errors wine gave me made me think it was an alsa problem. After googling the errors, I checked the settings in /etc/alsa.conf - the file did not exist! I created it, but that didn't solve the problem. I assume the file is correct and complete, as alsamixer does not complain.

For some reason, one non-audio program (digikam, I think) has caused an notification message to pop up above the system tray and clock sometimes. The message was something about SB (south bridge) audio output having an error. However, amarok etc would still work, so SB audio was still working.

If you've got suggestions, I'm all ears!

sonichedgehog 12-17-2009 02:32 AM

Take a quick look at http://www.linuxquestions.org/questi...odules-762844/ where I had trouble with alsa.
I also recall an old flashplayer problem in Debian where one user profile worked and the other didn't. I carefully imported some user specific config files into the user that had trouble and it worked.
The above post maybe explains why I initially suggested clean install. I like hacking (when it's working!) but I have found media problems difficult to solve and note that the debian/ubuntu systems are good with media straight out of the box.

map250r 12-25-2009 04:24 PM

1 Attachment(s)
Well this is weird... I restarted my computer (usually I just suspend to ram) and now sound works in firefox. However, it does not work in vlc or amarok.
VLC complains "[0x2ff1488] oss audio output error: cannot open audio device (/dev/dsp)"
even though I have it configured to use alsa.
It looks like /dev/dsp should work:
$ ls /dev/dsp -l
crw-rw----+ 1 root audio 14, 3 2009-12-25 09:08 /dev/dsp
$ groups
mark audio

Amarok causes a phonon notification to pop up (see attachment)
The bit about "Falling back to ." looks like a problem, but google is very unhelpful there.

Wine also has trouble:
Quote:

wine Plasma\ Pong.exe
fixme:wave:ALSA_ComputeCaps Device has a minimum of 2 channels
err:alsa:ALSA_CheckSetVolume Could not find 'PCM Playback Volume' element
fixme:mixer:ALSA_MixerInit No master control found on HDA ATI HDMI, disabling mixer
<snip normal app output>
An error has occured in the sound sub-system: (52) Error initializing output device.
The FMOD sound system could not be initialized.
An error has occured in the sound sub-system: (34) An invalid parameter was passed to this function.
An error has occured in the sound sub-system: (34) An invalid parameter was passed to this function.
The last line repeats over and over.

Shadow_7 12-26-2009 07:17 AM

Some alsa things go into /etc/alsa/* these days. Any sort of conf things should probably go into /etc/modprobe.d/ these days.

My graphics card HDMI out allows audio, but it's restricted to AC3 codecs for 5.1 and I don't recall what for stereo, but probably still AC3. Translation, unless you're playing a video with AC3 audio, you're a bit hosed. Or just use a different device / cable for audio.

$ cat /proc/asound/cards
(looking for your primary sound device to be card 0)

$ ps -Al
(looking for sound daemons that might not mesh aka conflict with how you thought you had it setup.)

neuplnost 12-28-2009 03:12 PM

Shadow_7: Your information has helped me to solve my problem. I just opened /etc/modprobe.d/alsa-base.conf, and put "#" before
Quote:

install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
Thank you very much!

map250r 12-29-2009 10:25 AM

Good to hear it's working for you, neuplnost.
Either we had two different problems, or there are two solutions. The errors I got led me to a hal bug https://bugs.launchpad.net/ubuntu/+s...al/+bug/334299 , and from there to something about udev. I installed the latest versions of hal and udev and deleted /etc/asound.conf, which I had created earlier. After rebooting, everything worked fine -- and it still does, several suspend-to-ram's later.


All times are GMT -5. The time now is 08:05 PM.