Skip to content

Commit

Permalink
ASoC: ak4104: Use snd_soc_write() rather than internal write function
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Daniel Mack <zonque@gmail.com>
  • Loading branch information
Mark Brown committed Feb 23, 2012
1 parent afad95f commit 34baf22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/ak4104.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static int ak4104_hw_params(struct snd_pcm_substream *substream,

/* set the IEC958 bits: consumer mode, no copyright bit */
val |= IEC958_AES0_CON_NOT_COPYRIGHT;
ak4104_spi_write(codec, AK4104_REG_CHN_STATUS(0), val);
snd_soc_write(codec, AK4104_REG_CHN_STATUS(0), val);

val = 0;

Expand All @@ -167,7 +167,7 @@ static int ak4104_hw_params(struct snd_pcm_substream *substream,
return -EINVAL;
}

return ak4104_spi_write(codec, AK4104_REG_CHN_STATUS(3), val);
return snd_soc_write(codec, AK4104_REG_CHN_STATUS(3), val);
}

static const struct snd_soc_dai_ops ak4101_dai_ops = {
Expand Down

0 comments on commit 34baf22

Please sign in to comment.