[Alsa-user] Random Change in device file /dev/dsp*
Brought to you by:
perex
From: Anil Y. <ani...@sa...> - 2005-08-02 03:04:14
|
Hi, Since few days I am struggling with random change in the device file for audio capture and audio playback. I have a USB device(camcorder) through which my application captures the audio and play it back on On-board audio card. When the device is attached to the PC, the dmesg shows it can be accessed by /dev/dsp1 (Major no 14, Minor no 19). I have written my application in such a way that /dev/dsp1 will be used to capture audio samples from the device and by using /dev/dsp(Major no 14, minor no 3) I will write the captured samples on ON-borad audio card. I don't have /dev/dsp0 on my mahcine. This setup worked fine until i didn't come across a strange problem. When I reboot the machine the same device is detected by /dev/dsp (Major no 14, minor no 3). In this case all the senario will get reverse as I thought and I did reverse all the ioctl commands. But it didn't work for me, I didn't able to write the audio samples. Again a reboot sends me to the original setup where /dev/dsp1 is capture device and /dev/dsp is playback device. I am not able to understand why the device files are getting changed after reboot. Is it problem with the device, or the audio class driver? Does anybody come across of this problem? Regards Anil |