[alsa-devel] [PATCH v4 4/6] core: add API header and driver header files

Nallasellan, Singaravelan singaravelan.nallasellan at intel.com
Tue Dec 13 13:49:49 CET 2011


> +struct snd_compr_runtime {
> +	snd_pcm_state_t state;
> +	struct snd_compr_ops *ops;
> +	void *buffer;
Can we define buffer as char *?
> +	size_t buffer_size;
> +	size_t fragment_size;
Can we define buffer_size and fragment_size as unsigned items? 
Can we have negative size here?

> +	unsigned int fragments;
> +	size_t hw_pointer;
> +	size_t app_pointer;
> +	size_t bytes_written;
> +	size_t bytes_copied;
> +	wait_queue_head_t sleep;
> +};
> +


More information about the Alsa-devel mailing list