Re: [PATCH v2 4/9] ASoC: tegra: add Tegra210 based I2S driver

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

 



From: f Dmitry Osipenko
> Sent: 06 February 2020 16:59
> 
> 30.01.2020 13:33, Sameer Pujar пишет:
> ...
> > +static const int tegra210_cif_fmt[] = {
> > +	0,
> > +	TEGRA_ACIF_BITS_16,
> > +	TEGRA_ACIF_BITS_32,
> > +};
> > +
> > +static const int tegra210_i2s_bit_fmt[] = {
> > +	0,
> > +	I2S_BITS_16,
> > +	I2S_BITS_32,
> > +};
> > +
> > +static const int tegra210_i2s_sample_size[] = {
> > +	0,
> > +	16,
> > +	32,
> > +};
> 
> static const *unsigned* int?

Or get rid of the table lookups completely.
Assuming the index is never zero then the value
can be calculated as (const_a + const_b * index).

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://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