Patrick Shirkey wrote:
After doing more testing it seems that the quattro requires that *both* pcms are initialised with the qinit util. Can someone tell me how to modify this so that hw:0,0 and hw:0,1 are both accessed please?Patrick Shirkey wrote:Much to my surprise the quattro has stopped being able to record with cvs from Nov 27 2002 and also a fresh checkout today.It's definitely broken as going back to the 18 November works.
---------
/* program to prime an alsa device without sending data
Save as qinit.c and compile with:
gcc -o qinit qinit.c -lasound -ldl -lm
*/
#include <alsa/asoundlib.h>
int main()
{
snd_pcm_t *pcm;
int err;
snd_pcm_hw_params_t *hw;
printf("Initialising quattro\n");
err = snd_pcm_open(&pcm, "hw:0,0", SND_PCM_STREAM_PLAYBACK, 0);
snd_pcm_hw_params_alloca(&hw);
err = snd_pcm_hw_params_any(pcm, hw);
err = snd_pcm_hw_params_set_access(pcm, hw, SND_PCM_ACCESS_RW_INTERLEAVED);
err = snd_pcm_hw_params_set_format(pcm, hw, SND_PCM_FORMAT_S16_LE);
err = snd_pcm_hw_params_set_rate(pcm, hw, 48000, 0);
err = snd_pcm_hw_params_set_channels(pcm, hw, 2);
err = snd_pcm_hw_params_set_period_size(pcm, hw, 512, 0);
err = snd_pcm_hw_params_set_buffer_size(pcm, hw, 1024);
err = snd_pcm_hw_params(pcm, hw);
return err;
}
-----------
--
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================
Being on stage with the band in front of crowds shouting, "Get off! No! We want normal music!", I think that was more like acting than anything I've ever done.
Goldie, 8 Nov, 2002
The Scotsman
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel