Device returned error: Input/output error

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium, kodachi

Device returned error: Input/output error

Postby James » Fri May 04, 2012 11:02 am

Hi,

could you help with this problem, the sound card is embedded system microcontroller, cortex m3 lpc1768 I can get it working with alsa but not yet oss





*** Scanning sound adapter #-1 ***
/dev/oss/usb1fc94002-1/pcm0 (audio engine 13): USB sound device play
- Performing audio playback test...
<left> Device returned error: Input/output errorNumber of audio devices: 10
Number of audio engines: 14
Number of MIDI devices: 0
Number of mixer devices: 2


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=13787 (13787)
HD Audio controller Intel HD Audio
Vendor ID 0x808627d8
Subvendor ID 0x10250090
Codec 0: ALC883 (0x10ec0883/0x10250090)
Codec 1: Conexant2bfa (0x14f12bfa)
2: oss_usb0 USB audio core services
3: usb1fc94002-0 USB sound device
4: usb1fc94002-1 USB sound device

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio ALC883 (Mixer 0 of device object 1)
1: USB sound device (Mixer 0 of device object 3)

Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device index 0)
HD Audio play rear /dev/oss/oss_hdaudio0/pcm1 (device index 1)
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm2 (device index 2)
HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device index 3)
HD Audio play pcm4 /dev/oss/oss_hdaudio0/pcm4 (device index 4)
HD Audio play modem-out /dev/oss/oss_hdaudio0/pcm5 (device index 5)
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin0 (device index 6)
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin1 (device index 7)
HD Audio rec modem-out /dev/oss/oss_hdaudio0/pcmin2 (device index 8)
USB sound device play /dev/oss/usb1fc94002-1/pcm0 (device index 9)

Nodes
/dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0




thanks
James
New Member
 
Posts: 2
Joined: Fri May 04, 2012 10:58 am

Re: Device returned error: Input/output error

Postby igorzwx » Fri May 04, 2012 12:54 pm

James wrote:Hi,

could you help with this problem, the sound card is embedded system microcontroller, cortex m3 lpc1768 I can get it working with alsa but not yet oss

*** Scanning sound adapter #-1 ***
/dev/oss/usb1fc94002-1/pcm0 (audio engine 13): USB sound device play
- Performing audio playback test...
<left> Device returned error: Input/output errorNumber of audio devices: 10


USB audio devices are not likely to work with OSS4.
Do you have an "external" USB audio device? (It might be a microphone of your USB webcam, or else).

It might be difficult to help you, because you do not seem to be going to provide any necessary information, such as:
Code: Select all
lspci -v
ossinfo
ossmix

and the like.

Are you an Ubuntu user?

OpenSound - Community Ubuntu Documentation
https://help.ubuntu.com/community/OpenSound
Open Sound System
https://wiki.archlinux.org/index.php/OSS

You may try OSS4 on a LiveCD (there is a manual on this forum).
igorzwx
Moderator
 
Posts: 1005
Joined: Sun Jun 28, 2009 9:31 pm

Re: Device returned error: Input/output error

Postby cesium » Sat May 05, 2012 7:20 am

Can you please paste output of 'ossmix -d1'? If there's an altsetting there, maybe we can change it and get it to work. Nonetheless, this usually fails with oss_usb on Linux...
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Device returned error: Input/output error

Postby James » Sun May 06, 2012 10:13 am

cesium wrote:Can you please paste output of 'ossmix -d1'? If there's an altsetting there, maybe we can change it and get it to work. Nonetheless, this usually fails with oss_usb on Linux...


Ok sorry cesium hope this is all the necessary information you will need to help

Here is the code for the embedded micro controller the complete drivers source, and user manual data sheets

http://ics.nxp.com/support/documents/mi ... pc17xx.pdf

http://www.nxp.com/documents/data_sheet ... _64_63.pdf

http://mbed.org/handbook/USBAudio

http://mbed.org/users/samux/programs/US ... format=zip

It is the mbed lpc1768 and I am using ubuntu


here is all the relative outputs from the console you asked for
ossmix -d1
Selected mixer 1/USB sound device
Known controls are:
output.mute1 ON|OFF (currently ON)
output.vol <monovol> (currently 0)
output.mute2 ON|OFF (currently ON)

it does not seem to bring anything up releated to the micro controller here
lspci -v puredyne
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f0000000 (32-bit, non-prefetchable) [size=512K]
I/O ports at 5088 [size=8]
Memory at d0000000 (32-bit, prefetchable) [size=256M]
Memory at f0300000 (32-bit, non-prefetchable) [size=256K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915

00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, fast devsel, latency 0
Memory at f0080000 (32-bit, non-prefetchable) [size=512K]
Capabilities: <access denied>

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, fast devsel, latency 0, IRQ 22
Memory at f0340000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: oss_hdaudio

00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
Memory behind bridge: f0100000-f01fffff
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, medium devsel, latency 0, IRQ 23
I/O ports at 50a0 [size=32]
Kernel driver in use: uhci_hcd

00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 50c0 [size=32]
Kernel driver in use: uhci_hcd

00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 50e0 [size=32]
Kernel driver in use: uhci_hcd

00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 5400 [size=32]
Kernel driver in use: uhci_hcd

00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) (prog-if 20)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at f0544000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) (prog-if 01)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=06, subordinate=0a, sec-latency=32
I/O behind bridge: 00002000-00002fff
Memory behind bridge: f0200000-f02fffff
Prefetchable memory behind bridge: 0000000040000000-0000000043ffffff
Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, medium devsel, latency 0
Capabilities: <access denied>
Kernel modules: iTCO_wdt, intel-rng

00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at 5090 [size=16]
Kernel driver in use: ata_piix

00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: medium devsel, IRQ 10
I/O ports at 5420 [size=32]
Kernel modules: i2c-i801

05:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
Subsystem: Intel Corporation Device 1001
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at f0100000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: iwl3945
Kernel modules: iwl3945

06:01.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, fast devsel, latency 64, IRQ 21
Memory at f0200000 (32-bit, non-prefetchable) [size=8K]
Capabilities: <access denied>
Kernel driver in use: b44
Kernel modules: b44

06:04.0 CardBus bridge: ENE Technology Inc CB-712/4 Cardbus Controller (rev 10)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: bus master, medium devsel, latency 168, IRQ 16
Memory at f0202000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=06, secondary=07, subordinate=0a, sec-latency=176
Memory window 0: 40000000-43fff000 (prefetchable)
Memory window 1: 44000000-47fff000
I/O window 0: 00002000-000020ff
I/O window 1: 00002400-000024ff
16-bit legacy interface ports at 0001
Kernel driver in use: yenta_cardbus
Kernel modules: yenta_socket

06:04.1 FLASH memory: ENE Technology Inc ENE PCI Memory Stick Card Reader Controller (rev 01)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: medium devsel, IRQ 11
Memory at f0203000 (32-bit, non-prefetchable) [disabled] [size=128]
Capabilities: <access denied>

06:04.2 SD Host controller: ENE Technology Inc ENE PCI Secure Digital Card Reader Controller (rev 01) (prog-if 01)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: medium devsel, IRQ 17
Memory at f0203400 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci
Kernel modules: sdhci-pci

06:04.3 FLASH memory: ENE Technology Inc FLASH memory: ENE Technology Inc: (rev 01)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: medium devsel, IRQ 11
Memory at f0203800 (32-bit, non-prefetchable) [disabled] [size=128]
Capabilities: <access denied>

06:04.4 FLASH memory: ENE Technology Inc SD/MMC Card Reader Controller (rev 01)
Subsystem: Acer Incorporated [ALI] Device 0090
Flags: medium devsel, IRQ 17
Memory at f0203100 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci
Kernel modules: sdhci-pci



ossinfo

Number of audio devices: 10
Number of audio engines: 14
Number of MIDI devices: 0
Number of mixer devices: 2


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=430 (430)
HD Audio controller Intel HD Audio
Vendor ID 0x808627d8
Subvendor ID 0x10250090
Codec 0: ALC883 (0x10ec0883/0x10250090)
Codec 1: Conexant2bfa (0x14f12bfa)
2: oss_usb0 USB audio core services
3: usb71857502-0 USB sound device
4: usb71857502-1 USB sound device

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio ALC883 (Mixer 0 of device object 1)
1: USB sound device (Mixer 0 of device object 3)

Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device index 0)
HD Audio play rear /dev/oss/oss_hdaudio0/pcm1 (device index 1)
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm2 (device index 2)
HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device index 3)
HD Audio play pcm4 /dev/oss/oss_hdaudio0/pcm4 (device index 4)
HD Audio play modem-out /dev/oss/oss_hdaudio0/pcm5 (device index 5)
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin0 (device index 6)
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin1 (device index 7)
HD Audio rec modem-out /dev/oss/oss_hdaudio0/pcmin2 (device index 8)
USB sound device play /dev/oss/usb71857502-1/pcm0 (device index 9)

Nodes
/dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0




ossmix puredyne
Selected mixer 0/High Definition Audio ALC883
Known controls are:
jack.fp-black.mode <front|rear|center/LFE|side|pcm4|input> (currently front)
jack.fp-black [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.fp-black.mute ON|OFF (currently OFF)
jack.fp-pink.mode <front|rear|center/LFE|side|pcm4|input> (currently front)
jack.fp-pink [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.fp-pink.mute ON|OFF (currently OFF)
jack.fp-blue.mode <front|rear|center/LFE|side|pcm4|input> (currently input)
jack.fp-blue [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.fp-blue.mute ON|OFF (currently OFF)
record.mix.mute.fp-mic1 ON|OFF (currently OFF)
record.mix.mute.fp-linein1 ON|OFF (currently OFF)
record.mix.mute.fp-headphone1 ON|OFF (currently OFF)
record.mix.mute.input-mix1 ON|OFF (currently OFF)
record.mix1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
record.mix.mute.fp-mic2 ON|OFF (currently OFF)
record.mix.mute.fp-linein2 ON|OFF (currently OFF)
record.mix.mute.fp-headphone2 ON|OFF (currently OFF)
record.mix.mute.input-mix2 ON|OFF (currently OFF)
record.mix2 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.fp-mic [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.fp-linein [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.fp-headphone [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.input-mix <fp-mic|fp-linein> (currently fp-mic)
misc.front-mute ON|OFF (currently OFF)
misc.input-mix-mute1 ON|OFF (currently OFF)
misc.front1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.front2 <front|input-mix> (currently front)
misc.rear-mute ON|OFF (currently OFF)
misc.input-mix-mute2 ON|OFF (currently OFF)
misc.rear1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.rear2 <rear|input-mix> (currently rear)
misc.center/lfe-mute ON|OFF (currently OFF)
misc.input-mix-mute3 ON|OFF (currently OFF)
misc.center/lfe1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.center/lfe2 <center/LFE|input-mix> (currently center/LFE)
misc.side-mute ON|OFF (currently OFF)
misc.input-mix-mute4 ON|OFF (currently OFF)
misc.side1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.side2 <side|input-mix> (currently side)
misc.pcm4-mute ON|OFF (currently OFF)
misc.input-mix-mute5 ON|OFF (currently OFF)
misc.pcm41 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.pcm42 <pcm4|input-mix> (currently pcm4)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <Fast|High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm9 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm12 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
James
New Member
 
Posts: 2
Joined: Fri May 04, 2012 10:58 am


Return to Linux

Who is online

Users browsing this forum: Bing [Bot] and 1 guest