On 3/16/2024 1:44 PM, Ding, Shenghao wrote:
Thanks for your comments. Kindly see the feedback
-----Original Message-----
From: Amadeusz Sławiński <amadeuszx.slawinski@xxxxxxxxxxxxxxx>
Sent: Wednesday, March 6, 2024 12:05 AM
To: Ding, Shenghao <shenghao-ding@xxxxxx>; broonie@xxxxxxxxxx
Cc: andriy.shevchenko@xxxxxxxxxxxxxxx; lgirdwood@xxxxxxxxx;
perex@xxxxxxxx; pierre-louis.bossart@xxxxxxxxxxxxxxx;
13916275206@xxxxxxx; alsa-devel@xxxxxxxxxxxxxxxx; linux-
kernel@xxxxxxxxxxxxxxx; liam.r.girdwood@xxxxxxxxx; bard.liao@xxxxxxxxx;
mengdong.lin@xxxxxxxxx; yung-chuan.liao@xxxxxxxxxxxxxxx; Lu, Kevin
<kevin-lu@xxxxxx>; tiwai@xxxxxxx; soyer@xxxxxx; Baojun.Xu@xxxxxxx;
Navada Kanyana, Mukund <navada@xxxxxx>
Subject: [EXTERNAL] Re: [PATCH v11] ASoc: tas2783: Add tas2783 codec
driver
On 3/5/2024 2:26 PM, Shenghao Ding wrote:
The tas2783 is a smart audio amplifier with integrated MIPI SoundWire
interface (Version 1.2.1 compliant), I2C, and I2S/TDM interfaces
designed for portable applications. An on-chip DSP supports Texas
Instruments SmartAmp speaker protection algorithm. The integrated
speaker voltage and current sense provides for real-time monitoring of
loudspeakers.
The ASoC component provides the majority of the functionality of the
device, all the audio functions.
Signed-off-by: Shenghao Ding <shenghao-ding@xxxxxx>
---
...
...
+struct tasdevice_priv {
+ struct snd_soc_component *component;
Apart from being assigned this field seems to be unused.
This field can help to get the point to "struct tasdevice_priv" in tasdevice_sdw_pcm_hw_free,
tasdevice_sdw_hw_params, tasdevice_mute
This field is unused in those functions, in all of them you get
component from dai, via dai->component, and tas_priv from this component
via snd_soc_component_get_drvdata, which is wrapper around
dev_get_drvdata, which just returns dev->driver_data.