[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6991dcc6-5902-a9ed-78c4-c7bd4f60f91c@collabora.com>
Date: Thu, 14 Jul 2022 16:13:02 +0200
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: Jiaxin Yu <jiaxin.yu@...iatek.com>, broonie@...nel.org,
robh+dt@...nel.org
Cc: aaronyu@...gle.com, matthias.bgg@...il.com, trevor.wu@...iatek.com,
tzungbi@...gle.com, julianbraha@...il.com,
alsa-devel@...a-project.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
Project_Global_Chrome_Upstream_Group@...iatek.com
Subject: Re: [PATCH v9 5/8] ASoC: mediatek: mt8186: add machine driver with
mt6366, da7219 and max98357
Il 12/07/22 17:04, Jiaxin Yu ha scritto:
> Add support for mt8186 board with mt6366, da7219 and max98357.
>
> Signed-off-by: Jiaxin Yu <jiaxin.yu@...iatek.com>
> ---
> sound/soc/mediatek/Kconfig | 16 +
> sound/soc/mediatek/mt8186/Makefile | 1 +
> .../mt8186/mt8186-mt6366-da7219-max98357.c | 1002 +++++++++++++++++
> 3 files changed, 1019 insertions(+)
> create mode 100644 sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c
>
> +
> +static int mt8186_mt6366_da7219_max98357_dev_probe(struct platform_device *pdev)
> +{
> + struct snd_soc_card *card;
> + struct snd_soc_dai_link *dai_link;
> + struct mt8186_mt6366_da7219_max98357_priv *priv;
> + struct device_node *platform_node, *headset_codec, *playback_codec;
> + int ret, i;
> +
> + card = (struct snd_soc_card *)of_device_get_match_data(&pdev->dev);
You don't really need this cast, plus, you can use device_get_match_data() instead.
After that:
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Powered by blists - more mailing lists