Subject: How shall I play sound?
To: None <Port-mips@netbsd.org>
From: Mahadeva Swamy T L <Swamy@soc-soft.com>
List: port-mips
Date: 01/02/2004 12:37:57
Hi,

I am working on Audio Driver (AC'97) for NetBSD and porting this driver
onto my MIPS(TX4927) Target Board. I have enabled the Audio driver
(which supports both MIC and play mode) in my kernel and ported.=20

Traget Board supports sample rate upto 48000

After porting I used the following command to play the sample. (In /dev
"audio" and "sound" nodes are created).

# audioplay -V sample.wav  (-V: verbose)
=20
    It gave following message: sample_rate=3D11025, channels=3D1,
precision=3D8, encoding-ulinear_le

    after this it stays in the loop.
   =20
I am not able to here any sound, please tell me where I am going woring.


This is my audio driver structure:

struct audio_hw_if txaudio_hw_if =3D {
	txaudio_open,
	txaudio_close,
	NULL,			/* drain */
	txaudio_query_encoding,
	txaudio_set_params,
	txaudio_round_blocksize,
	NULL,			/* commit_setting */
	NULL,			/* init_output */
	NULL,			/* init_input */
	NULL,			/* start_output */
	NULL,			/* start_input */
	txaudio_halt_output,
	txaudio_halt_input,
	NULL,			/* speaker_ctl */
	txaudio_getdev,
	NULL,			/* getfd */
	txaudio_set_port,
	txaudio_get_port,
	txaudio_query_devinfo,
	NULL, // txaudio_malloc,
	NULL, // txaudio_free,
	NULL, // txaudio_round_buffersize,
	NULL, // txaudio_mappage,
	txaudio_get_props,
	txaudio_trigger_output,
	txaudio_trigger_input,
	NULL,			/* dev_ioctl */
};

Regards
Swamy

Scanned by SecureSynergy VirusScreen Service. 
For more information log on to : http://www.securesynergyonline.com or http://www.securesynergy.com