It affects both, but ALSA API does the setup of stream parameters once, but OSS API does this multiple times because there is no way to distict the configuration phase and the working phase, thus we must reconfigure
after settings of all parameters.
If you strace aplay then you'll see that one ALSA ioctl has exactly same 0.5 sec peek.
Thanks a lot for your help, I would have never found that by myself.
To test it, i modified these lines (an ugly hack, for sure)
snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE, chip->regmap[CS8427_REG_CLOCKSOURCE]);
//udelay(200);
chip->regmap[CS8427_REG_CLOCKSOURCE] |= CS8427_RUN | CS8427_RXDILRCK;
snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE, chip->regmap[CS8427_REG_CLOCKSOURCE]);
//udelay(200);
snd_i2c_unlock(cs8427->bus);
end_time = 0; //jiffies + HZ / 2;
..and it works like a charm on my Terratec EWX24/96. After the next release I'll test the module option.
Thanks again,
Lars.
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel