mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
ASoC: tegra-alt: replace direct access to codec dapm
The dapm field of the struct snd_soc_codec is removed, to access dapm field use snd_soc_codec_get_dapm() Change-Id: I2bf7f89058bd65baf2d89ffa926af9fe1e418927 Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/1157272 GVS: Gerrit_Virtual_Submit Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
This commit is contained in:
committed by
Sameer Pujar
parent
eb411ec113
commit
a197f2b4d7
@@ -328,7 +328,7 @@ static int tegra186_arad_put_enable_lane(struct snd_kcontrol *kcontrol,
|
||||
static int tegra186_arad_tx_stop(struct snd_soc_dapm_widget *w,
|
||||
struct snd_kcontrol *kcontrol, int event)
|
||||
{
|
||||
struct snd_soc_codec *codec = w->codec;
|
||||
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
|
||||
struct device *dev = codec->dev;
|
||||
struct tegra186_arad *arad = dev_get_drvdata(dev);
|
||||
|
||||
|
||||
@@ -569,7 +569,7 @@ static int tegra186_asrc_put_output_threshold(struct snd_kcontrol *kcontrol,
|
||||
static int tegra186_asrc_req_arad_ratio(struct snd_soc_dapm_widget *w,
|
||||
struct snd_kcontrol *kcontrol, int event)
|
||||
{
|
||||
struct snd_soc_codec *codec = w->codec;
|
||||
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
|
||||
struct device *dev = codec->dev;
|
||||
struct tegra186_asrc *asrc = dev_get_drvdata(dev);
|
||||
int ret = 0;
|
||||
|
||||
Reference in New Issue
Block a user