SliTaz SliTaz Forum

You are not logged in.

#1 2013-05-18 03:20:59

bobeflick
Member
Registered: 2013-05-18
Posts: 13

Flash Player + Sound Card Issue

I have a liveCD of slitaz4.0 and can get sound successfully on the system by following some instructions that I found on another forum post here on this site:

[c]#tazpkg get-install get-flash-plugin[/c]

[c]#get-flash-plugin[/c]

The installations finish successfully and the libflashplayer.so file is in [c]/usr/share/flash[/c]

[c]/usr/share/flash[/c] is also exported to [c]MOZ_PLUGIN_PATH[/c] enviornment variable

(inside the config file here: [c]/home/tux/.profile[/c])

So after all that I close out X session and then log back in

AND wala! sound + flash player works!  Tested with youtube and an online NPR radio station

However, my problem arises from not wanting to use the CD and reinstalling flash everytime.

I formatted the hard drive on this computer and installed a fresh slitaz4.0 from the liveCD.

I execute the same commands modify the path variable in the config file, but when I logout and login flash player does not play sound.

My sound card on this hard drive install can play a test.wav file from aplay on the command line.

Any suggestions on fixing sound in flash player?

[c]#lspci | grep audio
00:05.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: default [USB Audio CODEC ], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd DAC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0[/c]

Offline

#2 2013-05-18 05:37:25

yves04
Member
Registered: 2012-09-23
Posts: 135

Re: Flash Player + Sound Card Issue

Hi

As you I've installed Slitaz 4.0 on my hard drive and

#tazpkg get-install get-flash-plugin

#get-flash-plugin

but the version which is installed is 11.2 and I can't manage to have Flash Player working.

After that I used flashplayer 10.3 r183 and mplayerplug-in (version 3.55) and all things are OK : sound+video

Just download (at http://www.adobe.com/support/flashplayer/downloads.html then Archived) expand it and copy libflashplayer.so in /usr/lib/mozilla/plugins

Offline

#3 2013-05-18 05:57:46

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Flash Player + Sound Card Issue

@bobeflick, I recall having a similar issue and what I had to do was to specify the default sound device. I guess the simplest method is to disable devices that you are not using. I did not want to do this as I have the need to use different devices for different purposes.

Your situation may be slightly different but in my case, I found that the built in Intel device was always set as the default device. With this setting the problem was that although I was able to run aplay command with all the devices, like in your case, was not able to get sound from flash video clips. I wanted the default device to be my external USB connected SB Audigy NX device. To do this, I had to edit etc/modprobe.d/alsa_custom and add the following code.

alias char-major-116 snd

alias char-major-14 soundcore

alias snd-card-0 sound-card-NX

alias sound-slot-0 snd-card-0

options snd-card-NX snd_index=0 snd_id=CARD_0

alias snd-card-1 sound-card-U0x46d0x8b2

alias sound-slot-1 snd-card-1

options snd-card-U0x46d0x8b2 snd_index=1 snd_id=CARD_1

options snd_hda_intel index=2

Essentially, this sets the index 0 to my Audigy NX and makes the internal device as the last one. This sort of works but in my case the problem is indexing does not seem to work quite well with my device 0 and device 1 both of which are USB devices (the second is a webcam). However, this has resolved the conflict with my internal card which always gets indexed as device 2 now.

To get the right device names, you will need to do cat /proc/asound/devices. You probably want to do a search on alsa configuration on the Net. There are a couple of good articles from which I borrowed the above code - unfortunately cannot recall exactly which one.

Hope this is useful.

Offline

#4 2013-05-18 14:48:12

bobeflick
Member
Registered: 2013-05-18
Posts: 13

Re: Flash Player + Sound Card Issue

I tried downgrading libflashplayer.so to the 10.3_183 version with no luck.

I tried creating the modprobe.d config file and used my card names instead.

I was a little confused by the output of

[c]#cat /proc/asound/devices
  2:        : timer
  3: [ 1- 0]: raw midi
  4: [ 1- 2]: digital audio playback
  5: [ 1- 2]: digital audio capture
  6: [ 1- 1]: digital audio playback
  7: [ 1- 0]: digital audio playback
  8: [ 1- 0]: digital audio capture
  9: [ 1- 0]: hardware dependent
10: [ 1]   : control
11: [ 0- 0]: digital audio playback
12: [ 0- 0]: digital audio capture
13: [ 0]   : control[/c]
So I used the card names (default and CMI8738) from this instead:

[c]# cat /proc/asound/cards
0 [default        ]: USB-Audio - USB Audio CODEC
                      Burr-Brown from TI               USB Audio CODEC  at usb-0000:00:02.3-3.4.3, fu
1 [CMI8738        ]: CMI8738-MC6 - C-Media CMI8738
                      C-Media CMI8738 (model 55) at 0x9800, irq 11[/c]
Still no luck.

Then I found this alsa site after acting on your suggestion for searching for alsa configs:

http://alsa.opensrc.org/Cmipci

Sadly I still have had no luck with creating [c]/etc/modules.conf[/c] with the copy paste I did from the alsa site.

Aside from just the speakers plugged into the headphone jack there is a record player attached via USB. (I think that is the default sound card, but I'm not sure.)

Is there any troubleshooting commands whose output I could post that would help diagnose my problem further?

Offline

#5 2013-05-19 01:44:40

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Flash Player + Sound Card Issue

Hi, I should have suggested you to check the card settings using Alsamixer first before trying these things out....sorry about that.

Your default sound card is the USB device as per /proc/asound/devices. I presume you have your speakers plugged in to this? If that is the case, from a terminal run alsamixer command. You should see something as below.

At the top make sure you have the USB device in "Card" field. If not use F6 to select your card. Press F3 to select the playback settings. Make sure you have the levels high enough for each of the settings. If you have 'MM' indicated as in the third column above that means that setting is muted. Pressing m on the keyboard will toggle mute/unmute for that settings. The tab key will let you skip from one setting to the other. Up/Down will raise or reduce the value for each of the selected setting.

Just make sure you have no muted settings to start with and that you have volume settings high enough to hear sound.

Let us know how you go with this. If this looks all OK then we may have to fiddle with the alsa config as mentioned before.

Offline

#6 2013-05-19 12:58:32

bobeflick
Member
Registered: 2013-05-18
Posts: 13

Re: Flash Player + Sound Card Issue

The speakers I want to work with flash player are the second thing listed when I press F6.  The USB device is listed first.  All the volume levels are okay and not muted.  You do not need to apologize about this.  I had actually already checked alsamixer before I even made this thread.  The alsa config is a .asoundrc in my home directory right?

Offline

#7 2013-05-19 13:14:29

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Flash Player + Sound Card Issue

The default audio device CARD:0 is the first detected on boot.

Audio devices connected to the pci bus are always detected before USB devices.

Remove the .asoundrc that is making the USB audio device CARD 0

Remove the USB audio device.

Reboot

Open terminal,su passwd:root ,run this command:

[c]setmixer[/c]

Open midori, play a flash video, sound should come out the cmedia.

I adapted Hot-plugging a USB Sound Card for my logitech usb headset.

Open audio programs including browser with flash must be shutdown/reopened after headset has been plugged-in to channel sound to new default usb-audio device.

Online

#8 2013-05-21 00:36:16

bobeflick
Member
Registered: 2013-05-18
Posts: 13

Re: Flash Player + Sound Card Issue

There was no .asoundrc file in my home directory.  And I don't know why this USB device was taking preference over the slot card sound, but all I had to do was just change the default sound device in a config and reboot.

[c]# cat /etc/modprobe.d/alsa-base.conf
options snd slots=snd_cmipci,snd_usb_audio
options snd_cmipci index=0
options snd_usb_audio index=1[/c]
The wiki you linked to has a lot of good information about alsa.  I wish I had found that sooner.

Thanks for all the help!  Problem solved.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]