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:
Ravindra Lokhande
2016-06-01 17:37:39 +05:30
committed by Sameer Pujar
parent eb411ec113
commit a197f2b4d7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;