Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257504
b: refs/heads/master
c: 583eada
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Jun 6, 2011
1 parent 6d3bdc6 commit 34630af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 874ce77bc3027ce08e3ee35c3edad3b254e496d1
refs/heads/master: 583eadab21779c4301f01a11bf3d0d49b643aa80
5 changes: 0 additions & 5 deletions trunk/sound/soc/codecs/ad1836.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ enum ad1836_type {

/* codec private data */
struct ad1836_priv {
enum snd_soc_control_type control_type;
void *control_data;
enum ad1836_type type;
};

Expand Down Expand Up @@ -257,7 +255,6 @@ static int ad1836_probe(struct snd_soc_codec *codec)
num_dacs = ad183x_dais[ad1836->type].playback.channels_max / 2;
num_adcs = ad183x_dais[ad1836->type].capture.channels_max / 2;

codec->control_data = ad1836->control_data;
ret = snd_soc_codec_set_cache_io(codec, 4, 12, SND_SOC_SPI);
if (ret < 0) {
dev_err(codec->dev, "failed to set cache I/O: %d\n",
Expand Down Expand Up @@ -350,8 +347,6 @@ static int __devinit ad1836_spi_probe(struct spi_device *spi)
ad1836->type = spi_get_device_id(spi)->driver_data;

spi_set_drvdata(spi, ad1836);
ad1836->control_data = spi;
ad1836->control_type = SND_SOC_SPI;

ret = snd_soc_register_codec(&spi->dev,
&soc_codec_dev_ad1836, &ad183x_dais[ad1836->type], 1);
Expand Down

0 comments on commit 34630af

Please sign in to comment.