Hello,

Want to use OSS emulation through /dev/dsp for playing wav files.  As a simple 
test to start with I attempt the following:-

cat sound.wav > /dev/dsp

The output I get is as follows:-

ALSA sound/usb/usbaudio.c:1324: setting usb interface 1:1
ALSA sound/usb/usbaudio.c:670: cannot submit urb (err = -45)

All I get out of the headphones is a clicking noise. (C-Media usb headphones).

The kernel configuration I am using includes:-
CONFIG_SND
CONFIG_SND_SEQUENCER
CONFIG_SND_MIXER_OSS
CONFIG_SND_PCM_OSS
CONFIG_SND_PCM_OSS_PLUGINS
CONFIG_SND_SEQUENCER_OSS
CONFIG_SND_SUPPORT_OLD_API
CONFIG_SND_VERBOSE_PROCFS
CONFIG_SND_VERBOSE_PRINTK
CONFIG_SND_DEBUG
CONFIG_SND_DEBUG_DETECT
CONFIG_SND_PRIME
CONFIG_OSS_OBSOLETE

cat /proc/asound/devices gives:-
  0: [ 0]   : control
  1:        : sequencer
 16: [ 0- 0]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:        : timer

Dmesg gives the following information:-

MXC PCTL driver initilized. INTQ IRQ# 110 PLOST IRQ# 128
input: C-Media USB Audio Device    as /class/input/input2
input: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-fsl-ehci.2-1
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 
2007 UTC).
ALSA sound/usb/usbaudio.c:2753: 2:1:1: add audio endpoint 0x1
ALSA sound/usb/usbaudio.c:2753: 2:2:1: add audio endpoint 0x82
ALSA sound/usb/usbmixer.c:989: [9] FU [PCM Playback Switch] ch = 1, val = 0/1/1
ALSA sound/usb/usbmixer.c:406: cannot set ctl value: req = 0x4, wValue = 0x201, 
wIndex = 0x900, type = 4, data = 0x18/0x0
ALSA sound/usb/usbmixer.c:989: [9] FU [PCM Playback Volume] ch = 2, val = 
-7264/-16/48
ALSA sound/usb/usbmixer.c:989: [10] FU [Mic Capture Switch] ch = 1, val = 0/1/1
ALSA sound/usb/usbmixer.c:406: cannot set ctl value: req = 0x4, wValue = 0x200, 
wIndex = 0xa00, type = 4, data = 0x18/0x0
ALSA sound/usb/usbmixer.c:989: [10] FU [Mic Capture Volume] ch = 1, val = 
0/6096/384
ALSA sound/usb/usbmixer.c:989: [10] FU [Auto Gain Control] ch = 1, val = 0/1/1
usbcore: registered new interface driver snd-usb-audio
ALSA device list:
  #0: C-Media USB Audio Device    at usb-fsl-ehci.2-1, full speed


Does anyone know what the problem might be with this. Would appreciate any 
assistance.

Merry Christmas

Geoff Crowther
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to