/dev/dsp: I/O error when recording

OSS specific Solaris discussion (x86/SPARC)

Moderators: cesium, dev, kodachi, hannu

/dev/dsp: I/O error when recording

Postby solaris_user » Sat Sep 22, 2007 4:58 am

hello,
when i'm trying to record audio from web like myspace or youtube, or even realplayer, i got this error:
yakari-henry% ossrecord -s48000 -b16 -c2 test.wav
/dev/dsp: I/O error
after few minutes. The resulting test.wav is a valid file, simply truncated by the error.

I'm using OSS b1006 on Solaris Express Developper Edition (b64a) on a Dell Lpatop D400.


What's the problem with dsp? Is there a solution?

thanks in advance,

gerard
solaris_user
Member
 
Posts: 15
Joined: Sun Jun 11, 2006 6:23 pm

Postby solaris_user » Sat Sep 22, 2007 5:11 am

just a precision:
everything worked fine before installing OSS driver, only with Sun audio i810 driver. I can record and play with sdtaudio, the pitfall is that recorded stream has a a very low level volume. So i need a better tool and Sun recommend OSS

gerard
solaris_user
Member
 
Posts: 15
Joined: Sun Jun 11, 2006 6:23 pm

Re: /dev/dsp: I/O error when recording

Postby dev » Sat Sep 22, 2007 4:12 pm

solaris_user wrote:hello,
when i'm trying to record audio from web like myspace or youtube, or even realplayer, i got this error:
yakari-henry% ossrecord -s48000 -b16 -c2 test.wav
/dev/dsp: I/O error
after few minutes. The resulting test.wav is a valid file, simply truncated by the error.

I'm using OSS b1006 on Solaris Express Developper Edition (b64a) on a Dell Lpatop D400.


What's the problem with dsp? Is there a solution?

thanks in advance,

gerard


You need to edit /usr/lib/oss/conf/vmix.conf and set loopback devices to 1 or 2 and then run ossdetect again (in console mode or reboot) and then record from the loopback device.

You cannot record from the master device becuase it will record only from the input soruces like mic or line or cd.
dev
Developer
 
Posts: 578
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby solaris_user » Mon Sep 24, 2007 7:18 am

thanks for your reply.

You need to edit /usr/lib/oss/conf/vmix.conf and set loopback devices to 1 or 2 and then run ossdetect again (in console mode or reboot) and then record from the loopback device.

sorry, but i don't understand what to do exactly. In this file, there are 8 entries like:
vmix1_masterdev=-1
vmix1_numoutputs=4
vmix1_numloops=0
vmix1_inputdev=-1
...

where is the loopback device?

Here are others logs:
yakari-root% ossinfo -e

Audio engines
00: Intel ICH4 (24C5) (device file /dev/oss/ich0/pcm0)
01: Intel ICH4 (24C5) (device file /dev/oss/ich0/pcm0)
02: Intel ICH4 (24C5) (VMIX0) (device file /dev/oss/ich0/pcm0)
03: Intel ICH4 (24C5) (VMIX0) (device file /dev/oss/ich0/pcm0)
04: Intel ICH4 (24C5) (VMIX0) (device file /dev/oss/ich0/pcm0)
05: Intel ICH4 (24C5) (VMIX0) (device file /dev/oss/ich0/pcm0)

yakari-root% ossinfo -A -v

Audio devices
/dev/oss/ich0/pcm0 Intel ICH4 (24C5) (device index 0)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER
Modes: IN/OUT
Engine 1: Busy (IN/OUT) label 'VMIX'
Engine 2: Busy (IN/OUT) label 'mixer_applet2'
Engine 3: Available for use
Engine 4: Available for use
Engine 5: Available for use
Engine 6: Available for use


when i installed oss, i got this message:
yakari-henry% osstest
Sound subsystem and version: OSS 4.0 (b1006/200708291218) (0x00040002)
Platform: SunOS/i86pc 5.11 snv_64a

*** Scanning sound adapter #-1 ***
/dev/oss/ich0/pcm0 (audio engine 0): Intel ICH4 (24C5)
Note! Device is in use (by PID 0/VMIX) but will try anyway

Sorry, i'm not very confident with audio drivers, i just want to record audio streams.

Thanks in advance for your help,

gerard[/quote]
solaris_user
Member
 
Posts: 15
Joined: Sun Jun 11, 2006 6:23 pm

Postby dev » Tue Sep 25, 2007 4:31 am

solaris_user wrote:thanks for your reply.

You need to edit /usr/lib/oss/conf/vmix.conf and set loopback devices to 1 or 2 and then run ossdetect again (in console mode or reboot) and then record from the loopback device.

sorry, but i don't understand what to do exactly. In this file, there are 8 entries like:
vmix1_masterdev=-1
vmix1_numoutputs=4
vmix1_inputdev=-1
...

where is the loopback device?

Here are others logs:
yakari-root% ossinfo -e

Audio engines
00: Intel ICH4 (24C5) (device file /dev/oss/ich0/pcm0)
01: Intel ICH4 (24C5) (device file /dev/oss/ich0/pcm0)
02: Intel ICH4 (24C5) (VMIX0) (device file /dev/oss/ich0/pcm0)
03: Intel ICH4 (24C5) (VMIX0) (device file /dev/oss/ich0/pcm0)
04: Intel ICH4 (24C5) (VMIX0) (device file /dev/oss/ich0/pcm0)
05: Intel ICH4 (24C5) (VMIX0) (device file /dev/oss/ich0/pcm0)

yakari-root% ossinfo -A -v

Audio devices
/dev/oss/ich0/pcm0 Intel ICH4 (24C5) (device index 0)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER
Modes: IN/OUT
Engine 1: Busy (IN/OUT) label 'VMIX'
Engine 2: Busy (IN/OUT) label 'mixer_applet2'
Engine 3: Available for use
Engine 4: Available for use
Engine 5: Available for use
Engine 6: Available for use


when i installed oss, i got this message:
yakari-henry% osstest
Sound subsystem and version: OSS 4.0 (b1006/200708291218) (0x00040002)
Platform: SunOS/i86pc 5.11 snv_64a

*** Scanning sound adapter #-1 ***
/dev/oss/ich0/pcm0 (audio engine 0): Intel ICH4 (24C5)
Note! Device is in use (by PID 0/VMIX) but will try anyway

Sorry, i'm not very confident with audio drivers, i just want to record audio streams.

Thanks in advance for your help,

gerard
[/quote]


You need to edit the vmix0_numloops and set to 1.

Now run ossdetect and see if that worked.


regards
Dev
dev
Developer
 
Posts: 578
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby seawright » Tue Sep 25, 2007 9:22 am

Dev,
I don't know whether vmix.conf is different in Solaris but my vmix.conf (Linux) numbers vmix instances from vmix1 to vmix8 not 0 to 7 yet the vmix group in ossxmix is labeled vmix0-out.

Clearly something is wrong with the numbers assigned by vmix and its configuration file.
regards
Clive
seawright
Member
 
Posts: 88
Joined: Sat Jan 06, 2007 9:10 pm
Location: Hampshire UK

Postby dev » Tue Sep 25, 2007 4:57 pm

seawright wrote:Dev,
I don't know whether vmix.conf is different in Solaris but my vmix.conf (Linux) numbers vmix instances from vmix1 to vmix8 not 0 to 7 yet the vmix group in ossxmix is labeled vmix0-out.

Clearly something is wrong with the numbers assigned by vmix and its configuration file.



Sorry my mistake - it should be vmix1_numloops=1

Now you can only see it via ossinfo -v

on my machine:

/dev/oss/hdaudio0/pcmin0 nVidia HD Audio rec input (device index 2)
Legacy device /dev/dsp2
Caps: DUPLEX TRIGGER
Modes: IN/OUT
In engine 1: Available for use
Engine 2: Available for use
Engine 3: Available for use
Engine 4: Available for use
Engine 5: Available for use
Engine 6: Available for use
Engine 7: Available for use
Engine 8: Available for use
Engine 9: Available for use

/dev/oss/vmix0/loop0 nVidia HD Audio pcm output (VMIX0) loopback record (device index 3)
Legacy device NONE
Caps: TRIGGER VIRTUAL HIDDEN
Modes: INPUT
In engine 1: Available for use


you can use ossrecord -d/dev/oss/vmix0/loop0 -s48000 -b16 -c2 test.wav and then start playing some audio on OSS.
dev
Developer
 
Posts: 578
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby solaris_user » Tue Sep 25, 2007 6:07 pm

very thanks for your reply. Everything works well!

gerard
solaris_user
Member
 
Posts: 15
Joined: Sun Jun 11, 2006 6:23 pm

Postby solaris_user » Tue Sep 25, 2007 6:18 pm

sorry but again the same error:
yakari-henry% ossrecord -d/dev/oss/vmix0/loop0 -s48000 -b16 -c2 test.wav
/dev/oss/vmix0/loop0: I/O error

and ossinfo -v:
yakari-henry% ossinfo -v
Version info: OSS 4.0 (b1006/200708291218) (0x00040002)
Platform: SunOS/i86pc 5.11 snv_70b (yakari)

Number of audio devices: 2
Number of audio engines: 7
Number of MIDI devices: 0
Number of mixer devices: 1


Device objects
0: oss0 OSS core services
1: ossusb0 USB audio/MIDI device
2: vmix0 OSS transparent virtual support
3: sadasupport0 SADA compatibility layer
4: ich0 Intel ICH4 (24C5)

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: ICH AC97 Mixer (STAC9750) (Mixer 0 of device object 4)
Device file /dev/oss/ich0/mix0, Legacy device /dev/mixer0
Priority: 10
Caps:

Audio devices
/dev/oss/ich0/pcm0 Intel ICH4 (24C5) (device index 0)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER
Modes: IN/OUT
Engine 1: Busy (IN/OUT) label 'VMIX'
Engine 2: Busy (IN/OUT) label 'mixer_applet2'
Engine 3: Available for use
Engine 4: Available for use
Engine 5: Available for use
Engine 6: Available for use
/dev/oss/vmix0/loop0 Intel ICH4 (24C5) (VMIX0) loopback record (device index 1)
Legacy device NONE
Caps: TRIGGER VIRTUAL HIDDEN
Modes: INPUT
In engine 1: Available for use
solaris_user
Member
 
Posts: 15
Joined: Sun Jun 11, 2006 6:23 pm

Postby dev » Tue Oct 02, 2007 12:31 am

Hi,

I've uploaded oss-solaris-v4.0-b1008.i386.pkg.bz2 to
http://www.opensound.com/test directory.

Download it and then install it and see if things work.

I've tested recording on my ICH4 machine and it's working. I haven't tested ekiga.


regards
Dev Mazumdar
dev
Developer
 
Posts: 578
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby solaris_user » Tue Oct 02, 2007 5:02 am

i got the same error:
yakari-henry% ossrecord -d/dev/oss/vmix0/loop0 -s48000 -b16 -c2 test.wav
/dev/oss/vmix0/loop0: I/O error

Here are the infos, the first time during ossrecord, the second time just after:

yakari-root% ossinfo -v
Version info: OSS 4.0 (b1006/200708291218) (0x00040002)
Platform: SunOS/i86pc 5.11 snv_70b (yakari)

Number of audio devices: 2
Number of audio engines: 7
Number of MIDI devices: 0
Number of mixer devices: 1


Device objects
0: oss0 OSS core services
1: ossusb0 USB audio/MIDI device
2: vmix0 OSS transparent virtual support
3: sadasupport0 SADA compatibility layer
4: ich0 Intel ICH4 (24C5)

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: ICH AC97 Mixer (STAC9750) (Mixer 0 of device object 4)
Device file /dev/oss/ich0/mix0, Legacy device /dev/mixer0
Priority: 10
Caps:

Audio devices
/dev/oss/ich0/pcm0 Intel ICH4 (24C5) (device index 0)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER
Modes: IN/OUT
Engine 1: Busy (IN/OUT) label 'VMIX'
Engine 2: Busy (IN/OUT) label 'xfce-mcs-manage'
Engine 3: Available for use
Engine 4: Available for use
Engine 5: Available for use
Engine 6: Available for use
/dev/oss/vmix0/loop0 Intel ICH4 (24C5) (VMIX0) loopback record (device index 1)
Legacy device NONE
Caps: TRIGGER VIRTUAL HIDDEN
Modes: INPUT
In engine 1: Busy (IN) by PID 8544 / ossrecord label 'ossrecord'


yakari-root% ossinfo -v
Version info: OSS 4.0 (b1006/200708291218) (0x00040002)
Platform: SunOS/i86pc 5.11 snv_70b (yakari)

Number of audio devices: 2
Number of audio engines: 7
Number of MIDI devices: 0
Number of mixer devices: 1


Device objects
0: oss0 OSS core services
1: ossusb0 USB audio/MIDI device
2: vmix0 OSS transparent virtual support
3: sadasupport0 SADA compatibility layer
4: ich0 Intel ICH4 (24C5)

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: ICH AC97 Mixer (STAC9750) (Mixer 0 of device object 4)
Device file /dev/oss/ich0/mix0, Legacy device /dev/mixer0
Priority: 10
Caps:

Audio devices
/dev/oss/ich0/pcm0 Intel ICH4 (24C5) (device index 0)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER
Modes: IN/OUT
Engine 1: Busy (IN/OUT) label 'VMIX'
Engine 2: Busy (IN/OUT) label 'xfce-mcs-manage'
Engine 3: Available for use
Engine 4: Available for use
Engine 5: Available for use
Engine 6: Available for use
/dev/oss/vmix0/loop0 Intel ICH4 (24C5) (VMIX0) loopback record (device index 1)
Legacy device NONE
Caps: TRIGGER VIRTUAL HIDDEN
Modes: INPUT
In engine 1: Available for use

thanks for your help,

gerard
solaris_user
Member
 
Posts: 15
Joined: Sun Jun 11, 2006 6:23 pm

Postby dev » Tue Oct 02, 2007 6:10 am

Hi,

I just tested it on my machine:

-bash-3.00# ossinfo -v
Version info: OSS 4.0 (b1008/200710012055) (0x00040002)
Platform: SunOS/i86pc 5.10 Generic_118855-33 (ich4)

Number of audio devices: 2
Number of audio engines: 11
Number of MIDI devices: 0
Number of mixer devices: 1


Device objects
0: osscore0 OSS core services
1: ich0 Intel ICH4 (24C5)
2: ossusb0 USB audio/MIDI device
3: vmix0 OSS transparent virtual support
4: sadasupport0 SADA compatibility layer

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: ICH AC97 Mixer (AD1980) (Mixer 0 of device object 1)
Device file /dev/oss/ich0/mix0, Legacy device /dev/mixer0
Priority: 10
Caps:

Audio devices
/dev/oss/ich0/pcm0 Intel ICH4 (24C5) (device index 0)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER
Modes: IN/OUT
Engine 1: Available for use
Engine 2: Available for use
Engine 3: Available for use
Engine 4: Available for use
Engine 5: Available for use
Engine 6: Available for use
Engine 7: Available for use
Engine 8: Available for use
Engine 9: Available for use
Engine 10: Available for use
/dev/oss/vmix0/loop0 Intel ICH4 (24C5) (VMIX0) loopback record (device index 1)
Legacy device NONE
Caps: TRIGGER VIRTUAL HIDDEN
Modes: INPUT
In engine 1: Available for use


Now I started
ossrecord -s48000 -b16 -c2 -d/dev/dspp/vmix0/loop0 test.wav &

Now I start mpg123 test.mp3 and after it finshed playing, I type kill -9 %1
to stop ossrecord.

Finally ossplay test.wav plays the audio just fine.


You should first test to see if recording is working via mic in or something.

If it isn't then you have some hardware issues.


regards
Dev
dev
Developer
 
Posts: 578
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby solaris_user » Wed Oct 03, 2007 7:09 pm

You should first test to see if recording is working via mic in or something.

If it isn't then you have some hardware issues.


yes i tested it and it works. I was using skype in ubuntu on the same machine, with no problem. So i think it is not hardware related.

and when i got this error:
ossrecord -s48000 -b16 -c2 -d/dev/oss/vmix0/loop0 test.wav
/dev/oss/vmix0/loop0: I/O error
test.wav contains valid audio data that i can play with ossplay, or rip in mp3.
The only issue is that recording is interrupted.
I tested b1008 on my dell laptop with SXDE3 and my SunUltra20 with S10U4 (and nvidia chipset in this case)
I can do more tests if you want (dtrace?)

thanks for your help,

gerard[/quote]
solaris_user
Member
 
Posts: 15
Joined: Sun Jun 11, 2006 6:23 pm

Postby dev » Wed Oct 03, 2007 7:34 pm

solaris_user wrote:
You should first test to see if recording is working via mic in or something.

If it isn't then you have some hardware issues.


yes i tested it and it works. I was using skype in ubuntu on the same machine, with no problem. So i think it is not hardware related.

and when i got this error:
ossrecord -s48000 -b16 -c2 -d/dev/oss/vmix0/loop0 test.wav
/dev/oss/vmix0/loop0: I/O error
test.wav contains valid audio data that i can play with ossplay, or rip in mp3.
The only issue is that recording is interrupted.
I tested b1008 on my dell laptop with SXDE3 and my SunUltra20 with S10U4 (and nvidia chipset in this case)
I can do more tests if you want (dtrace?)

thanks for your help,

gerard
[/quote]


Have you tried the beta test version of OSS build 1008 from
http://www.opensound.com/test directory?


regards
Dev Mazumdar
dev
Developer
 
Posts: 578
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby solaris_user » Thu Oct 04, 2007 5:23 am

yes, that's what i did
ultra20-henry% ossinfo -v
Version info: OSS 4.0 (b1008/200710012055) (0x00040002)
Platform: SunOS/i86pc 5.10 Generic_120012-14 (ultra20)

Number of audio devices: 2
Number of audio engines: 11
Number of MIDI devices: 0
Number of mixer devices: 1


Device objects
0: ich0 Nvidia nForce4
1: sadasupport0 SADA compatibility layer
2: osscore0 OSS core services
3: ossusb0 USB audio/MIDI device
4: vmix0 OSS transparent virtual support

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: ICH AC97 Mixer (ALC655) (Mixer 0 of device object 0)
Device file /dev/oss/ich0/mix0, Legacy device /dev/mixer0
Priority: 10
Caps:

Audio devices
/dev/oss/ich0/pcm0 Nvidia nForce4 (device index 0)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER
Modes: IN/OUT
Engine 1: Busy (IN/OUT) label 'VMIX'
Engine 2: Busy (IN/OUT) label 'SADA'
Engine 3: Available for use
Engine 4: Available for use
Engine 5: Available for use
Engine 6: Available for use
Engine 7: Available for use
Engine 8: Available for use
Engine 9: Available for use
Engine 10: Available for use
/dev/oss/ich0/spdout Nvidia nForce4 S/PDIF out (device index 1)
Legacy device /dev/dsp1
Caps: TRIGGER
Modes: OUTPUT
Out engine 1: Available for use

ultra20-root% /usr/bin/X11/scanpci
...
pci bus 0x0000 cardnum 0x04 function 0x00: vendor 0x10de device 0x0059
nVidia Corporation CK804 AC'97 Audio Controller
...
solaris_user
Member
 
Posts: 15
Joined: Sun Jun 11, 2006 6:23 pm

Next

Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest

cron