Re: [PATCH - AAF PCM plugin 3/7] aaf: Implement Playback mode support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 04 Oct 2018 01:45:43 +0200,
Andre Guedes wrote:
> 
> +static int aaf_set_hw_constraint(snd_pcm_aaf_t *aaf)
> +{
> +	int res;
> +	snd_pcm_ioplug_t *io = &aaf->io;
> +	const unsigned int accesses[] = {
> +		SND_PCM_ACCESS_RW_INTERLEAVED,
> +	};
> +	const unsigned int formats[] = {
> +		SND_PCM_FORMAT_S16_BE,
> +		SND_PCM_FORMAT_S24_3BE,
> +		SND_PCM_FORMAT_S32_BE,
> +		SND_PCM_FORMAT_FLOAT_BE,
> +	};
> +	const unsigned int rates[] = {
> +		8000,
> +		16000,
> +		24000,
> +		32000,
> +		44100,
> +		48000,
> +		88200,
> +		96000,
> +		176400,
> +		192000,
> +	};

Use static arrays for the above.


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux