[ My appolgies if this shows up mulitple times on the list. I have posted it twice and not seen it in 12 hours -- nor seen any bounces. I have now subscribed to the list in the hopes that that helps it get through. ]
I tried this once before but let me try again. I am using Alsa 0.5.12 but have also tried 0.9.0beta9 with no more luck. I have lots of applications that want to use the OSS sound system but I love Alsa so I am trying to use the OSS shims. I seem to be able to write to /dev/dsp with no troubles. "esd" for instance has no trouble opening /dev/dsp and sending sound there which I can hear through the speakers no problem. I want to capture from the OSS /dev/dsp device as well. That seems to yield no usable data. I know there is data to be recorded as I can record it with "arecord". However when I simply try to read from /dev/dsp all I get are 0x80s: # hdump /dev/dsp 00000000: 80808080 80808080 80808080 80808080 [................] 00000010: 80808080 80808080 80808080 80808080 [................] 00000020: 80808080 80808080 80808080 80808080 [................] 00000030: 80808080 80808080 80808080 80808080 [................] 00000040: 80808080 80808080 80808080 80808080 [................] 00000050: 80808080 80808080 80808080 80808080 [................] 00000060: 80808080 80808080 80808080 80808080 [................] 00000070: 80808080 80808080 80808080 80808080 [................] 00000080: 80808080 80808080 80808080 80808080 [................] 00000090: 80808080 80808080 80808080 80808080 [................] 000000a0: 80808080 80808080 80808080 80808080 [................] 000000b0: 80808080 80808080 80808080 80808080 [................] 000000c0: 80808080 80808080 80808080 80808080 [................] 000000d0: 80808080 80808080 80808080 80808080 [................] 000000e0: 80808080 80808080 80808080 80808080 [................] 000000f0: 80808080 80808080 80808080 80808080 [................] 00000100: 80808080 80808080 80808080 80808080 [................] 00000110: 80808080 80808080 80808080 80808080 [................] 00000120: 80808080 80808080 80808080 80808080 [................] 00000130: 80808080 80808080 80808080 80808080 [................] 00000140: 80808080 80808080 80808080 80808080 [................] 00000150: 80808080 80808080 80808080 80808080 [................] 00000160: 80808080 80808080 80808080 80808080 [................] Of course, applications that want to read from the OSS PCM device open it and do the various ioctls to set up the device, but regardless, I should be able to see data from just reading /dev/dsp, no? Here is some information from /proc/asound: $ cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 0.5.12. Compiled on Nov 7 2001 for kernel 2.4.12-3mdk with versioned symbols. $ cat /proc/asound/cards 0 [card1 ]: YMFPCI - Yamaha DS-XG PCI (YMF754) Yamaha DS-XG PCI (YMF754) at 0xdd000000, irq 9 $ cat /proc/asound/pcm 00-00: YMFPCI : YMFPCI : playback 32 : capture 1 00-01: YMFPCI - S/PDIF : YMFPCI - S/PDIF : playback 1 00-02: YMFPCI - AC'97 : YMFPCI - AC'97 : capture 1 $ cat /proc/asound/seq cat: /proc/asound/seq: Is a directory [brian@pc brian]$ cat /proc/asound/seq/drivers snd-seq-midi,empty,1 [brian@pc brian]$ cat /proc/asound/sndstat Sound Driver:3.8.2-980706 (ALSA v0.5.12 emulation code) Kernel: Linux pc 2.4.12-3mdk #1 Tue Oct 16 16:40:46 CEST 2001 i686 Config options: 0 Installed drivers: Type 10: ALSA emulation Card config: Yamaha DS-XG PCI (YMF754) at 0xdd000000, irq 9 Audio devices: 0: YMFPCI (DUPLEX) Synth devices: NOT ENABLED IN CONFIG Midi devices: 0: MPU-401 (UART) Timers: 7: system timer Mixers: 0: SigmaTel STAC9708/11 $ cat /proc/asound/devices 0: [0] : control 2: [0- 0]: hardware dependent 6: [0- 0]: mixer 8: [0- 0]: raw midi 16: [0- 0]: digital audio playback 17: [0- 1]: digital audio playback 24: [0- 0]: digital audio capture 26: [0- 2]: digital audio capture 33: : timer $ cat /proc/asound/oss-devices 0: [0- 0]: mixer 2: [0- 2]: raw midi 3: [0- 3]: digital audio 4: [0- 4]: digital audio 5: [0- 5]: digital audio 9: [0- 9]: raw midi 10: [0-10]: hardware dependent 12: [0-12]: digital audio $ cat /etc/modules.conf [ edited output] above snd-card-ymfpci snd-pcm-oss alias sound-slot-0 snd-card-ymfpci Can anyone shed any light on why I can't capture from the OSS PCM device? b. -- Brian J. Murrell _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user