|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
No sound device on Ubuntu 7.10 (Gutsy Gibbon)Hello!
I have major problem and I have no idea how to solve it. I have tried almost everything. I'm doing something with pjsip library (it uses PortAudio) and it's test application. I have Ubuntu 7.10 installed on two PCs with a different hardware. On both computers I configured alsamixer so I can record and playback my recorded voice with "gnome-sound-recorder 2.20.1". This way I checked if hardware and drivers are working on both systems and they do. Now on the first PC the pjsip test application works ok, but on the second PC no matter what I do I always get errors that there are no audio devices and that application cannot start. I decided to download the latest PortAudio tar package, compile/install it and run some of the test apps that come with it. On both I ran test application in tests/pa_devs.c. PC1 (OK) ========================================== >./pa_devs PortAudio version number = 1899 PortAudio version text = 'PortAudio V19-devel (built May 20 2008)' Number of devices = 1 --------------------------------------- device #0 [ Default Input, Default Output ] Name = /dev/dsp Host API = OSS Max inputs = 16, Max outputs = 16 Default low input latency = 0.012 Default low output latency = 0.012 Default high input latency = 0.046 Default high output latency = 0.046 Default sample rate = 44100.00 Supported standard sample rates for half-duplex 16 bit 16 channel input = 8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00, 32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00 Supported standard sample rates for half-duplex 16 bit 16 channel output = 8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00, 32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00 Supported standard sample rates for full-duplex 16 bit 16 channel input, 16 channel output = 8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00, 32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00 ---------------------------------------------- some additional info: >lspci 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] 00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter 00:03.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 40) 00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service 00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01) 00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08) >uname -a Linux kukovec-desktop 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux PC2 (NOT OK) ========================================== >./pa_devs PortAudio version number = 1899 PortAudio version text = 'PortAudio V19-devel (built May 20 2008)' Number of devices = 0 ---------------------------------------------- >lspci 00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) 00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02) 00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02) 05:02.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5782 Gigabit Ethernet (rev 03) >uname -a Linux kukovec-desktop 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux What else can I do to resolve the problem? Best regards, Marko Kukovec _______________________________________________ Portaudio mailing list Portaudio@... http://techweb.rfa.org/mailman/listinfo/portaudio |
|
|
Re: No sound device on Ubuntu 7.10 (Gutsy Gibbon)Marko Kukovec wrote: > Now on the first PC the pjsip test application works ok, but on the > second PC no matter what I do I always get errors that there are no > audio devices and that application cannot start. Try checking the device file permissions on each machine: ls -l /dev/dsp* You might need to use chmod as root to give group rw permissions. sudo chmod g+rw /dev/dsp* Or try reinstalling a new version of ALSA on the bad machine. (I am not a Linux guru but I have had problems with PortAudio on Linux that were solved by the above actions.) Phil Burk _______________________________________________ Portaudio mailing list Portaudio@... http://techweb.rfa.org/mailman/listinfo/portaudio |
|
|
Re: No sound device on Ubuntu 7.10 (Gutsy Gibbon)It definitely was a permission problem, but it is not working yet. On the non working PC2 I have Asterisk installed.
>ll /dev/dsp* crw-rw---- 1 asterisk asterisk 14, 3 2008-05-08 12:49 /dev/dsp On the working PC1 nothing special is installed and there is ll /dev/dsp* crw-rw---- 1 root audio 14, 3 2008-05-19 16:10 /dev/dsp On the PC2 I put myself in the 'asterisk' group and now at least the test application 'pa_devs' works (It would work yesterday, but I never tried to execute it with sudo). On PC2 I get >./pa_devs PortAudio version number = 1899 PortAudio version text = 'PortAudio V19-devel (built May 20 2008)' Number of devices = 1 --------------------------------------- device #0 [ Default Input ] Name = /dev/dsp Host API = OSS Max inputs = 16, Max outputs = 0 Default low input latency = 0.012 Default low output latency = -0.000 Default high input latency = 0.046 Default high output latency = -0.000 Default sample rate = 44100.00 Supported standard sample rates for half-duplex 16 bit 16 channel input = 8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00, 32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00 ---------------------------------------------- On PC1 I get >./pa_devs PortAudio version number = 1899 PortAudio version text = 'PortAudio V19-devel (built May 20 2008)' Number of devices = 1 --------------------------------------- device #0 [ Default Input, Default Output ] Name = /dev/dsp Host API = OSS Max inputs = 16, Max outputs = 16 Default low input latency = 0.012 Default low output latency = 0.012 Default high input latency = 0.046 Default high output latency = 0.046 Default sample rate = 44100.00 Supported standard sample rates for half-duplex 16 bit 16 channel input = 8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00, 32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00 Supported standard sample rates for half-duplex 16 bit 16 channel output = 8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00, 32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00 Supported standard sample rates for full-duplex 16 bit 16 channel input, 16 channel output = 8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00, 32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00 ---------------------------------------------- I bothers me that on the PC2 there is shorter printout and 'Max outputs = 0'. Pjsip test application still doesn't work and when I start PortAudio test application 'pa_fuzz' I get >./pa_fuzz Segmentation fault (core dumped) On the PC1 'pa_fuzz' works without a problem >./pa_fuzz Hit ENTER to stop program. What else can I do to resolve the problem? Best regards, Marko Kukovec On Tue, May 20, 2008 at 7:26 PM, Phil Burk <nospam@...> wrote:
_______________________________________________ Portaudio mailing list Portaudio@... http://techweb.rfa.org/mailman/listinfo/portaudio |
|
|
Re: No sound device on Ubuntu 7.10 (Gutsy Gibbon)Hi Marko
If you're getting a segmentation fault you can
always run the code in a debugger and get a stack trace of where the crash is
happening... but given that pa_devs is reporting no output device it's
probably just that pa_fuzz is assuming an output device is present.
Perhaps you have some other process running which
has captured the output channels so OSS isn't making them
available?
Ross.
_______________________________________________ Portaudio mailing list Portaudio@... http://techweb.rfa.org/mailman/listinfo/portaudio |
| Free Forum Powered by Nabble | Forum Help |