All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scaria Kochidanadu <s-kochidanadu@ti.com>
To: Tom Rini <trini@konsulko.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: [EXTERNAL] Re: [PATCH 1/6] sound: ti: Add sound support for am625 board in Uboot
Date: Tue, 9 Jul 2024 16:56:45 +0530	[thread overview]
Message-ID: <16c5d0dc-145c-4d59-bdfb-5a5df170f090@ti.com> (raw)
In-Reply-To: <20240708154656.GE38804@bill-the-cat>



On 08/07/24 21:16, Tom Rini wrote:
> 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>.
> 

I will be removing this in v2 as it is not required.

>> +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.
> 

I wanted to reuse the sound card DT node in the upstream kernel
device-tree. The U-boot upstrem repo does not have the node as it is
using an older version of DT.
But if using the simple-audio-card node is not preferred, then can we
create TI specific compatible and a separate DT node?

  reply	other threads:[~2024-07-09 12:51 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
2024-07-09 11:26     ` Scaria Kochidanadu [this message]
2024-07-09 15:04       ` [EXTERNAL] " 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=16c5d0dc-145c-4d59-bdfb-5a5df170f090@ti.com \
    --to=s-kochidanadu@ti.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=semen.protsenko@linaro.org \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@linaro.org \
    --cc=trini@konsulko.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.