Quote:
Originally Posted by T3slider
Flash should be configured to use ALSA by default (without the additional flash library), so if you're not getting sound it probably means that something is hogging your sound device.
|
Yes you are right! Here my Story or Solution :-)
---------------------------------------------------------------------------------------
some tests to get flash:
user@slack64:~/Downloads$ lsof | grep /dev/snd
amarok 22381 user mem CHR 116,6 4171 /dev/snd/pcmC1D0p
amarok 22381 user 13u CHR 116,9 0t0 4174 /dev/snd/controlC1
amarok 22381 user 72r CHR 116,2 0t0 3744 /dev/snd/timer
amarok 22381 user 73u CHR 116,6 0t0 4171 /dev/snd/pcmC1D0p
root@slack64:~# lsof | grep /dev/snd
knotify4 2286 user 12u CHR 116,9 0t0 4178 /dev/snd/controlC1
kmix 2348 user 12u CHR 116,4 0t0 3947 /dev/snd/controlC0
kmix 2348 user 14u CHR 116,9 0t0 4178 /dev/snd/controlC1
( try to get more but exit )
root@slack64:/mnt/movies/Musik/2010# mpg321 Caribou\ -\ Odessa.mp3
Segmentation fault
root@slack64:/mnt/movies/Musik/2010# lsof | grep mpg321
mpg321 9240 root 4w CHR 14,19 6670 /dev/dsp1
----------------------------------long Story short-------------------------------------
I use hda_intel, because i have onboard sound.
root@slack64:~# lspci
00:07.0 Audio device: nVidia Corporation MCP67 High Definition Audio (rev a1)
In Kde 4.4.1 Multimedia i see HDA NVidia (ALC 888 Analog) i use Backend Xine.
I created a new user "test" and added too group audio
root@slack64:~# adduser test
check /etc/group
audio:x:17:root,test
After then i restart X an login to new user "test", kde sound appear ,because user is in group audio.
But this new Session created a new /etc/asound.state !!! This was the fix, to get flash in Firefox.
I login in my old user and here also flash is fine, Yeah!
Now i can also play mp3 files with mpg123 without Segmenationt fault
root@slack64:~# mpg123 File.mp3
High Performance MPEG ...
...
now there are no dsp1 anymore:
root@slack64:~# ls -al /dev/dsp
crw-rw---- 1 root audio 14, 3 2010-03-30 02:00 /dev/dsp
my sound devices beginning now at zero! (...0D...):
root@slack64:~# ls -al /dev/snd/
total 0
drwxr-xr-x 3 root root 200 2010-03-30 02:00 ./
drwxr-xr-x 14 root root 5760 2010-03-30 02:00 ../
drwxr-xr-x 2 root root 60 2010-03-30 03:59 by-path/
crw-rw---- 1 root audio 116, 7 2010-03-30 03:59 controlC0
crw-rw---- 1 root audio 116, 6 2010-03-30 03:59 hwC0D0
crw-rw---- 1 root audio 116, 5 2010-03-30 03:59 pcmC0D0c
crw-rw---- 1 root audio 116, 4 2010-03-30 02:22 pcmC0D0p
crw-rw---- 1 root audio 116, 3 2010-03-30 03:59 pcmC0D2c
crw-rw---- 1 root audio 116, 8 2010-03-30 02:00 seq
crw-rw---- 1 root audio 116, 2 2010-03-30 03:59 timer
my packages:
root@slack64:~# ls -al /var/log/packages/alsa-*
-rw-r--r-- 1 root root 5157 2010-03-30 01:57 /var/log/packages/alsa-lib-1.0.22-x86_64-1
-rw-r--r-- 1 root root 1083 2010-03-30 01:57 /var/log/packages/alsa-oss-1.0.17-x86_64-1
-rw-r--r-- 1 root root 2895 2010-03-30 01:58 /var/log/packages/alsa-utils-1.0.21-x86_64-1
my flash plugin:
root@slack64:~# ls -al /var/log/packages/flash*
-rw-r--r-- 1 root root 506 2010-03-30 02:22 /var/log/packages/flash-player-plugin-10.0_r45-x86_64-1
my asound.state:
root@slack64:~# cat /etc/asound.state
state.NVidia {
control.1 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -4650
comment.dbmax 0
iface MIXER
name 'Front Playback Volume'
value.0 31
value.1 31
}
control.2 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Front Playback Switch'
value.0 true
value.1 true
}
control.3 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -4650
comment.dbmax 0
iface MIXER
name 'Surround Playback Volume'
value.0 31
value.1 31
}
control.4 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Surround Playback Switch'
value.0 true
value.1 true
}
control.5 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
comment.dbmin -4650
comment.dbmax 0
iface MIXER
name 'Center Playback Volume'
value 31
}
control.6 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
comment.dbmin -4650
comment.dbmax 0
iface MIXER
name 'LFE Playback Volume'
value 31
}
control.7 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Center Playback Switch'
value true
}
control.8 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'LFE Playback Switch'
value true
}
control.9 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -4650
comment.dbmax 0
iface MIXER
name 'Side Playback Volume'
value.0 31
value.1 31
}
control.10 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Side Playback Switch'
value.0 true
value.1 true
}
control.11 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -3450
comment.dbmax 1200
iface MIXER
name 'Mic Playback Volume'
value.0 30
value.1 30
}
control.12 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Mic Playback Switch'
value.0 false
value.1 false
}
control.13 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -3450
comment.dbmax 1200
iface MIXER
name 'Line Playback Volume'
value.0 31
value.1 31
}
control.14 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Line Playback Switch'
value.0 false
value.1 false
}
control.15 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 3'
comment.dbmin 0
comment.dbmax 3000
iface MIXER
name 'Mic Boost'
value.0 3
value.1 3
}
control.16 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
}
control.17 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Capture Switch'
index 1
value.0 true
value.1 true
}
control.18 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -1650
comment.dbmax 3000
iface MIXER
name 'Capture Volume'
value.0 0
value.1 0
}
control.19 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -1650
comment.dbmax 3000
iface MIXER
name 'Capture Volume'
index 1
value.0 0
value.1 0
}
control.20 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Mic
comment.item.1 Line
iface MIXER
name 'Input Source'
value Mic
}
control.21 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Mic
comment.item.1 Line
iface MIXER
name 'Input Source'
index 1
value Mic
}
control.22 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
comment.dbmin -4650
comment.dbmax 0
iface MIXER
name 'Master Playback Volume'
value 29
}
control.23 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Master Playback Switch'
value true
}
control.24 {
comment.access 'read write user'
comment.type INTEGER
comment.count 2
comment.range '0 - 255'
comment.tlv '0000000100000008ffffec1400000014'
comment.dbmin -5100
comment.dbmax 0
iface MIXER
name 'PCM Playback Volume'
value.0 255
value.1 255
}
}
state.U0x46d0x805 {
control.1 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mic Capture Switch'
value true
}
control.2 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 6144'
comment.dbmin 600
comment.dbmax 3000
iface MIXER
name 'Mic Capture Volume'
value 0
}
}
root@slack64:~#
(U0x46d0x805 is my Webcam)
my modules:
root@slack64:~# lsmod
Module Size Used by
vboxnetadp 5041 0
vboxnetflt 12143 0
vboxdrv 1729270 2 vboxnetadp,vboxnetflt
snd_seq_dummy 1487 0
snd_seq_oss 29991 0
snd_seq_midi_event 5620 1 snd_seq_oss
snd_seq 52679 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 5459 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 39975 0
snd_mixer_oss 16022 1 snd_pcm_oss
ipv6 273781 31
lp 10049 0
ppdev 6315 0
parport_pc 21139 0
parport 29827 3 lp,ppdev,parport_pc
fuse 59800 7
nvidia 10607150 38
processor 30196 0
thermal 12593 0
snd_hda_codec_realtek 257222 1
thermal_sys 14060 2 processor,thermal
k8temp 3489 0
hwmon 1449 2 thermal_sys,k8temp
rtc_cmos 9310 0
rtc_core 14834 1 rtc_cmos
rtc_lib 1922 1 rtc_core
wmi 6275 0
button 4957 0
snd_hda_intel 21672 2
agpgart 29764 1 nvidia
usblp 11299 0
snd_hda_codec 65095 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 6456 1 snd_hda_codec
snd_pcm 72131 3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer 19512 2 snd_seq,snd_pcm
snd 57492 15 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_realtek,snd_hda_intel,snd _hda_codec,snd_hwdep,snd_pcm,snd_timer
i2c_nforce2 5568 0
soundcore 5839 1 snd
psmouse 47142 0
snd_page_alloc 7145 2 snd_hda_intel,snd_pcm
forcedeth 52541 0
i2c_core 18551 2 nvidia,i2c_nforce2
evdev 9315 10
serio_raw 4622 0
sg 26028 0
last test if you can see firefox here all is fine:
root@slack64:~# lsof | grep /dev/snd
knotify4 2252 jeffrey 12u CHR 116,7 0t0 4016 /dev/snd/controlC0
kmix 2304 user 12u CHR 116,7 0t0 4016 /dev/snd/controlC0
firefox-b 3594 user mem CHR 116,4 4013 /dev/snd/pcmC0D0p
firefox-b 3594 user 105r CHR 116,2 0t0 3603 /dev/snd/timer
firefox-b 3594 user 106u CHR 116,4 0t0 4013 /dev/snd/pcmC0D0p
firefox-b 3594 user 107u CHR 116,7 0t0 4016 /dev/snd/controlC0
---------------------------------------------------------------------------------------
The only thing i couldn't find out is, why the mixer are not visible in kmix in my old account?
In the new account "test" i can see these in HDA NVidia mixer and can set up these under channels settings.