[U-Boot] [PATCH 1/9 V2] SOUND: Add I2S driver

Simon Glass sjg at chromium.org
Tue Oct 16 20:18:22 CEST 2012


Hi,

On Tue, Aug 21, 2012 at 11:44 PM, Rajeshwari Shinde
<rajeshwari.s at samsung.com> wrote:
> This patch adds driver for I2S interface specific to samsung.
>
> Signed-off-by: R. Chandrasekar <rcsekar at samsung.com>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s at samsung.com>
> ---
> Changes in V2:
> - renamed i2s.c to samsung-i2s.c.
>  Makefile                    |    1 +
>  drivers/sound/Makefile      |   47 ++++++
>  drivers/sound/samsung-i2s.c |  358 +++++++++++++++++++++++++++++++++++++++++++
>  drivers/sound/sound.c       |  220 ++++++++++++++++++++++++++
>  include/i2s.h               |  127 +++++++++++++++
>  include/sound.h             |   62 ++++++++
>  6 files changed, 815 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/sound/Makefile
>  create mode 100644 drivers/sound/samsung-i2s.c
>  create mode 100644 drivers/sound/sound.c
>  create mode 100644 include/i2s.h
>  create mode 100644 include/sound.h
>

Rather than have a big table for the sound, can we calculate it, as in
the Chromium tree?

Regards,
Simon


> +       while (freq--) {
> +               i = ARRAY_SIZE(sine_table_400);
> +
> +               for (i = 0; i < ARRAY_SIZE(sine_table_400); i++) {
> +                       *data++ = sine_table_400[i];
> +                       *data++ = sine_table_400[i];
> +               }
> +       }
> +}
> +


More information about the U-Boot mailing list