From: Tom Rini <trini@konsulko.com>
To: Scaria Kochidanadu <s-kochidanadu@ti.com>
Cc: u-boot@lists.denx.de, sjg@chromium.org,
mkorpershoek@baylibre.com, abdellatif.elkhlifi@arm.com,
sumit.garg@linaro.org, neil.armstrong@linaro.org,
caleb.connolly@linaro.org, semen.protsenko@linaro.org,
marek.vasut+renesas@mailbox.org, nathan.morrison@timesys.com,
devarsht@ti.com, j-luthra@ti.com, vigneshr@ti.com,
praneeth@ti.com, nm@ti.com, khasim@ti.com, rogerq@kernel.org,
francesco.dolcini@toradex.com, afd@ti.com,
jan.kiszka@siemens.com
Subject: Re: [PATCH 1/6] sound: ti: Add sound support for am625 board in Uboot
Date: Mon, 8 Jul 2024 09:46:56 -0600 [thread overview]
Message-ID: <20240708154656.GE38804@bill-the-cat> (raw)
In-Reply-To: <20240708075207.37207-2-s-kochidanadu@ti.com>
[-- Attachment #1: Type: text/plain, Size: 1823 bytes --]
On Mon, Jul 08, 2024 at 01:22:02PM +0530, Scaria Kochidanadu wrote:
> Add a UCLASS_SOUND driver for Texas Instruments SoCs which ties together
> the tlv320aic3106 audio codec and MCASP I2S controller. Enable audio
> playback functionality by taking a data pointer and data size as the
> sound data. The uboot sound play command takes time and frequency as
> input and creates the data for a beep sound with the given parameters,
> which is then passed to the sound play function.
[snip]
> +++ b/drivers/sound/ti_sound.c
> @@ -0,0 +1,119 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * (C) Copyright 2024 Texas Instruments Incorporated - https://www.ti.com/
> + * Scaria M Kochidanadu, s-kochidanadu@ti.com
> + *
> + * based on the uboot samsung sound driver, which is
> + *
> + * Copyright 2018 Google, LLC
> + * Written by Simon Glass <sjg@chromium.org>
> + */
> +
> +#include <asm/u-boot.h> /* boot information for Linux kernel */
> +/* Pull in stuff for the build system */
> +#ifdef DO_DEPS_ONLY
> +#include <env_internal.h>
> +#endif
> +#include <audio_codec.h>
> +#include <dm.h>
> +#include <i2s.h>
> +#include <log.h>
> +#include <sound.h>
> +#include <asm/gpio.h>
Please audit this list. I really am confused by <env_internal.h>.
> +static int ti_sound_stop_play(struct udevice *dev)
> +{
> + /* This function is necassary to satisfy the function calls
> + * in the Uboot command: sound play
> + */
> + return 0;
/*
* Like this...
*/
[snip]
> +static const struct udevice_id ti_sound_ids[] = {
> + { .compatible = "simple-audio-card" },
> + { }
> +};
Adding an actual simple-audio-card framework for U-Boot would be great.
This driver implies (and is?) TI-centric, instead. So lets rework this
to be split appropriately? Thanks.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2024-07-08 15:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-08 7:52 [PATCH 0/6] Enable audio playback in AM62x SoC Scaria Kochidanadu
2024-07-08 7:52 ` [PATCH 1/6] sound: ti: Add sound support for am625 board in Uboot Scaria Kochidanadu
2024-07-08 15:46 ` Tom Rini [this message]
2024-07-09 11:26 ` [EXTERNAL] " Scaria Kochidanadu
2024-07-09 15:04 ` Tom Rini
2024-07-17 11:47 ` Nishanth Menon
2024-07-08 7:52 ` [PATCH 2/6] sound: ti: Add TLV320AIC3106 Codec Scaria Kochidanadu
2024-07-08 7:52 ` [PATCH 3/6] sound: ti: Add MCASP driver for transfer of Audio data to sound codec Scaria Kochidanadu
2024-07-08 7:52 ` [PATCH 4/6] arm: dts: k3-am625-sk-u-boot.dtsi: Add sound driver nodes Scaria Kochidanadu
2024-07-08 15:48 ` Tom Rini
2024-07-08 7:52 ` [PATCH 5/6] configs: am62x_evm_a53_defconfig: Enable sound and I2C commands Scaria Kochidanadu
2024-07-08 7:52 ` [PATCH 6/6] linux: bitmap.h: Add for_each_set_bit_from() function Scaria Kochidanadu
2024-07-08 15:49 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240708154656.GE38804@bill-the-cat \
--to=trini@konsulko.com \
--cc=abdellatif.elkhlifi@arm.com \
--cc=afd@ti.com \
--cc=caleb.connolly@linaro.org \
--cc=devarsht@ti.com \
--cc=francesco.dolcini@toradex.com \
--cc=j-luthra@ti.com \
--cc=jan.kiszka@siemens.com \
--cc=khasim@ti.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=mkorpershoek@baylibre.com \
--cc=nathan.morrison@timesys.com \
--cc=neil.armstrong@linaro.org \
--cc=nm@ti.com \
--cc=praneeth@ti.com \
--cc=rogerq@kernel.org \
--cc=s-kochidanadu@ti.com \
--cc=semen.protsenko@linaro.org \
--cc=sjg@chromium.org \
--cc=sumit.garg@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox