aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ssm2602.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/ssm2602.c')
-rw-r--r--sound/soc/codecs/ssm2602.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c
index de2b20544ceb..4c94fd211fb0 100644
--- a/sound/soc/codecs/ssm2602.c
+++ b/sound/soc/codecs/ssm2602.c
@@ -254,8 +254,7 @@ static int ssm2602_hw_params(struct snd_pcm_substream *substream,
254 struct snd_pcm_hw_params *params, 254 struct snd_pcm_hw_params *params,
255 struct snd_soc_dai *dai) 255 struct snd_soc_dai *dai)
256{ 256{
257 struct snd_soc_pcm_runtime *rtd = substream->private_data; 257 struct snd_soc_codec *codec = dai->codec;
258 struct snd_soc_codec *codec = rtd->codec;
259 struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec); 258 struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec);
260 u16 iface = snd_soc_read(codec, SSM2602_IFACE) & 0xfff3; 259 u16 iface = snd_soc_read(codec, SSM2602_IFACE) & 0xfff3;
261 int srate = ssm2602_get_coeff(ssm2602->sysclk, params_rate(params)); 260 int srate = ssm2602_get_coeff(ssm2602->sysclk, params_rate(params));
@@ -291,8 +290,7 @@ static int ssm2602_hw_params(struct snd_pcm_substream *substream,
291static int ssm2602_startup(struct snd_pcm_substream *substream, 290static int ssm2602_startup(struct snd_pcm_substream *substream,
292 struct snd_soc_dai *dai) 291 struct snd_soc_dai *dai)
293{ 292{
294 struct snd_soc_pcm_runtime *rtd = substream->private_data; 293 struct snd_soc_codec *codec = dai->codec;
295 struct snd_soc_codec *codec = rtd->codec;
296 struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec); 294 struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec);
297 struct snd_pcm_runtime *master_runtime; 295 struct snd_pcm_runtime *master_runtime;
298 296
@@ -328,8 +326,7 @@ static int ssm2602_startup(struct snd_pcm_substream *substream,
328static void ssm2602_shutdown(struct snd_pcm_substream *substream, 326static void ssm2602_shutdown(struct snd_pcm_substream *substream,
329 struct snd_soc_dai *dai) 327 struct snd_soc_dai *dai)
330{ 328{
331 struct snd_soc_pcm_runtime *rtd = substream->private_data; 329 struct snd_soc_codec *codec = dai->codec;
332 struct snd_soc_codec *codec = rtd->codec;
333 struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec); 330 struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec);
334 331
335 if (ssm2602->master_substream == substream) 332 if (ssm2602->master_substream == substream)