From: atuc <at...@gm...> - 2008-07-11 09:35:51
|
hallo, i have no idea anymore how to solve this, i tried everything but the sound of my intel card is always cut into smale pieces of sound when using the testcall application, i have added this line iaxc_audio_devices_set(8,8,8); to selct my default alsa device from asoundrc i have no problems with skype to play through the default dmix/dsnoop plugin, also the /dev/dsp is working, also the portaudio app audacity is working well with mono 8bit/8khz samples through the default device. anybody else out here who has experences with alsa dmix/dsnoop plugin and iaxclient? thanks for hints, best, alex my hardware: 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02) snd_hda_intel the .asoundrc: # Das dmix-Plugin wird definiert. pcm.dmixer { type dmix ipc_key 1024 ipc_perm 0666 # Andere Benutzer können ebenfalls dmix gleichzeitig nutzen slave.pcm "snd_card" slave { pcm "hw:0,0" # buffer_size kann bei Problemen der jeweiligen Karte angepasst werden. period_time 0 period_size 1024 buffer_size 4096 rate 44100 # einige Soundkarten benötigen das exakte Datenformat (zB ice1712) # format S32_LE } bindings { 0 0 1 1 } } # Das dsnoop-Plugin, welches es erlaubt, mehrere Programme gleichzeitig aufnehmen zu lassen. pcm.dsnooper { type dsnoop ipc_key 2048 ipc_perm 0666 slave.pcm "snd_card" slave { pcm "hw:0,0" period_time 0 period_size 1024 buffer_size 4096 rate 44100 # format S32_LE } bindings { 0 0 1 1 } } # Dies definiert unser Fullduplex-Plugin als Standard für alle ALSA-Programme. pcm.duplex { type asym playback.pcm "dmixer" capture.pcm "dsnooper" } pcm.!default { type plug slave.pcm "duplex" } |
From: Andrea S. <si...@op...> - 2008-07-14 16:00:37
|
Hi atuc, atuc wrote: > hallo, > > i have no idea anymore how to solve this, i tried everything but the > sound of my intel card is always cut into smale pieces of sound when > using the testcall application, i have added this line > > iaxc_audio_devices_set(8,8,8); > > to selct my default alsa device from asoundrc > > > i have no problems with skype to play through the default dmix/dsnoop > plugin, also the /dev/dsp is working, also the portaudio app audacity is > working well with mono 8bit/8khz samples through the default device. > > > anybody else out here who has experences with alsa dmix/dsnoop plugin > and iaxclient? yes we have, unfortunately we're experiencing the same problem... :/ maybe someone subscribed to the list with a better knowledge on that matter could help us with some hints. bye andrea |
From: Andrea S. <si...@op...> - 2008-07-15 09:49:18
|
Hi Alex, I don't know if it's good or bad news, anyhow for report's sake that's the story so far. The box, where we're we are experiencing the same problem as yours, is an intel macbook(*). Switching desktop manager from gmome to e17 makes a big difference in terms of audio quality. At first we thought that our problem was solved, cause the audio quality was a lot better, but unfortunately that was'nt completely true. We found a negative correlation between CPU frequency and sound quality. Setting CPU freq to 1GHZ and just using our voip soft phone produce an audio stream with a decent quality... increasing CPU freq higher than 1GHZ (e.g. due to "ondemand" scaling governor) and switching between application makes (due to user normal workflow) the sound quality more similar to the one described in Alex first post.... so it seems to me that some kind of scheduler strangeness is hurting us... but I'm just guessing :) (*) portaudio ver: pa_stable_v19_20071207.tar.gz iaxclient ver: upto date trunk speex ver: 1.2beta3 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03) 00:07.0 Performance counters: Intel Corporation Unknown device 27a3 (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02) 01:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 22) 02:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01) 03:03.0 FireWire (IEEE 1394): Agere Systems FW323 (rev 61) mirko@WhiteNoise:~$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 14 model name : Genuine Intel(R) CPU 1500 @ 2.00GHz [cut] clflush size : 64 processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 14 model name : Genuine Intel(R) CPU 1500 @ 2.00GHz [cut] clflush size : 64 mirko@WhiteNoise:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.04 DISTRIB_CODENAME=hardy DISTRIB_DESCRIPTION="Ubuntu 8.04.1" mirko@WhiteNoise:~$ uname -a Linux WhiteNoise 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 GNU/Linux atuc wrote: > hallo, [cut] > anybody else out here who has experences with alsa dmix/dsnoop plugin > and iaxclient? |
From: Andrea S. <si...@op...> - 2008-07-15 11:54:57
|
Hi All, Alex just another report: lenovo x60, same audio chipset, same environment (ubuntu 8.04.01), same kernel.... lead to the same audio problem. Switching to an USB headphone set makes audio problem disappear. That's cat /proc/asound/cards output: sickpig@suinonb:~$ cat /proc/asound/cards 0 [default ]: USB-Audio - C-Media USB Headphone Set C-Media USB Headphone Set at usb-0000:00:1d.0-2, full speed 1 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xee240000 irq 22 just for the record :) Andrea Andrea Suisani wrote: > Hi Alex, > > I don't know if it's good or bad news, anyhow for report's sake > that's the story so far. The box, where we're we are experiencing the > same problem as yours, is an intel macbook(*). Switching desktop manager > from gmome to e17 makes a big difference in terms of audio quality. > > At first we thought that our problem was solved, cause the audio quality > was a lot better, but unfortunately that was'nt completely true. We found > a negative correlation between CPU frequency and sound quality. > > Setting CPU freq to 1GHZ and just using our voip soft phone > produce an audio stream with a decent quality... increasing > CPU freq higher than 1GHZ (e.g. due to "ondemand" scaling > governor) and switching between application makes (due to user normal workflow) > the sound quality more similar to the one described in Alex first post.... > > so it seems to me that some kind of scheduler strangeness is > hurting us... but I'm just guessing :) > atuc wrote: >> hallo, > > [cut] > >> anybody else out here who has experences with alsa dmix/dsnoop plugin >> and iaxclient? > |
From: atuc <at...@gm...> - 2008-07-15 16:30:56
|
hallo all, Andrea i have also a macbook but i think its not related to this, also on my dell x300 with an intel chipset i had the same problem. with bluetooth and my usb plantronics headset i have no problems, for the usb headset i have to use the asound rate conversion: pcm_slave.sl3 { pcm "hw:3,0" format S16_LE channels 2 rate 44100 } pcm.usb44k { type plug slave sl3hallo all, Andrea with bluetooth and my plantronics headset i have no problems, for the usb headset i have use the asound rate conversion: pcm_slave.sl3 { pcm "hw:3,0" format S16_LE channels 2 rate 44100 } pcm.usb44k { type plug slave sl3 } the sound is also cuted, when i use hw alsa devices, not only the dmix/dsnoop alsa plugin. HDA Intel: STAC92xx Analog (hw:0,0) alex@cex:/tmp$ cat /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0x90440000 irq 21 3 [headset ]: USB-Audio - Plantronics headset Plantronics Plantronics headset at usb-0000:00:1d.0-1, full speed alex@cex:/tmp$ uname -a Linux cex 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 GNU/Linux is it probably ubuntu (kernel?) related? i use also the ubuntu hardy like andrea. thanks, alex > Hi All, Alex > > just another report: lenovo x60, same audio chipset, same environment > (ubuntu 8.04.01), same kernel.... lead to the same audio problem. > Switching to an USB headphone set makes audio problem disappear. That's > cat /proc/asound/cards output: > > sickpig@suinonb:~$ cat /proc/asound/cards > 0 [default ]: USB-Audio - C-Media USB Headphone Set > C-Media USB Headphone Set at usb-0000:00:1d.0-2, full speed > 1 [Intel ]: HDA-Intel - HDA Intel > HDA Intel at 0xee240000 irq 22 > > just for the record :) > > > Andrea |
From: atuc <at...@gm...> - 2008-07-17 13:42:43
|
hallo andrea, i solved the problem on my mac book, maybe it works also on other intel cards? this is the config, it works here: 1. create a .asoundrc file in the home dir with this 2. select default as alsa device: best, alex pcm.dmixer { type dmix ipc_key 1024 ipc_perm 0666 # Andere Benutzer können ebenfalls dmix gleichzeitig nutzen slave.pcm "snd_card" slave { pcm "hw:0,0" # buffer_size kann bei Problemen der jeweiligen Karte angepasst werden. period_time 0 period_size 128 buffer_size 4096 # bei Störungen kann die Konvertierung auf die Rate 44100 eingeschaltet werden. rate 44100 } bindings { 0 0 1 1 } } pcm.dsnooper { type dsnoop ipc_key 2048 ipc_perm 0666 slave.pcm "snd_card" slave { pcm "hw:0,0" period_time 0 period_size 128 buffer_size 4096 # bei Störungen kann die Konvertierung auf die Rate 44100 eingeschaltet werden. rate 44100 } bindings { 0 0 1 1 } } pcm.duplex { type asym playback.pcm "dmixer" capture.pcm "dsnooper" } pcm.!default { type plug slave.pcm "duplex" } |
From: Andrea S. <si...@op...> - 2008-07-17 13:57:45
|
many thanks Alex, I will try as soon as I can and I'll let you know it it works... (OT: every time I encounter a problem like this, with such a solution, I wonder to myself if Linux will ever sort out the mess it has in the audio area ;) Andrea atuc wrote: > hallo andrea, > > i solved the problem on my mac book, maybe it works also on other intel > cards? > > > this is the config, it works here: > 1. create a .asoundrc file in the home dir with this > 2. select default as alsa device: > > best, > alex > > pcm.dmixer { > type dmix > ipc_key 1024 > ipc_perm 0666 # Andere Benutzer können ebenfalls dmix > gleichzeitig nutzen > slave.pcm "snd_card" > slave { > pcm "hw:0,0" > # buffer_size kann bei Problemen der jeweiligen Karte angepasst > werden. > period_time 0 > period_size 128 > buffer_size 4096 > # bei Störungen kann die Konvertierung auf die Rate 44100 > eingeschaltet werden. > rate 44100 > > } > bindings { > 0 0 > 1 1 > } > } > > pcm.dsnooper { > type dsnoop > ipc_key 2048 > ipc_perm 0666 > slave.pcm "snd_card" > slave > { > pcm "hw:0,0" > period_time 0 > period_size 128 > buffer_size 4096 > # bei Störungen kann die Konvertierung auf die Rate 44100 > eingeschaltet werden. > rate 44100 > } > bindings { > 0 0 > 1 1 > } > } > > pcm.duplex { > type asym > playback.pcm "dmixer" > capture.pcm "dsnooper" > } > > pcm.!default { > type plug > slave.pcm "duplex" > } > > > > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Iaxclient-devel mailing list > Iax...@li... > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > |
From: Mirko P. <mi...@op...> - 2008-07-17 14:28:51
|
Hi Alex, I'm the owner of the MacBook (and colleague too ;) ) that Andrea is talking about. I've created a .asoundrc file with the content you post, but audio (in our app using iaxclient lib) still to be intermittent depending on CPU usage. In any other app using alsa sound is clear. There's a way to check if the config file is read and load by alsa? Thank you! Mirko atuc wrote: > hallo andrea, > > i solved the problem on my mac book, maybe it works also on other intel > cards? > > > this is the config, it works here: > 1. create a .asoundrc file in the home dir with this > 2. select default as alsa device: > > best, > |