Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283975
b: refs/heads/master
c: 5ee65ec
h: refs/heads/master
i:
  283973: 5032785
  283971: 2af054c
  283967: d8ff424
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 20, 2011
1 parent 698d028 commit 702aaa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 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: 202a51a8d9c1fddea9eca5953e6e7d7d504a4343
refs/heads/master: 5ee65ec628090a3dbfbd900e4174f56e92e70945
17 changes: 8 additions & 9 deletions trunk/sound/soc/codecs/max9850.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ SND_SOC_DAPM_INPUT("INL"),
SND_SOC_DAPM_INPUT("INR"),
};

static const struct snd_soc_dapm_route intercon[] = {
static const struct snd_soc_dapm_route max9850_dapm_routes[] = {
/* output mixer */
{"Output Mixer", NULL, "DAC"},
{"Output Mixer", "Line In Switch", "Line Input"},
Expand Down Expand Up @@ -293,7 +293,6 @@ static int max9850_resume(struct snd_soc_codec *codec)

static int max9850_probe(struct snd_soc_codec *codec)
{
struct snd_soc_dapm_context *dapm = &codec->dapm;
int ret;

ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_I2C);
Expand All @@ -309,13 +308,6 @@ static int max9850_probe(struct snd_soc_codec *codec)
/* set slew-rate 125ms */
snd_soc_update_bits(codec, MAX9850_CHARGE_PUMP, 0xff, 0xc0);

snd_soc_dapm_new_controls(dapm, max9850_dapm_widgets,
ARRAY_SIZE(max9850_dapm_widgets));
snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon));

snd_soc_add_controls(codec, max9850_controls,
ARRAY_SIZE(max9850_controls));

return 0;
}

Expand All @@ -328,6 +320,13 @@ static struct snd_soc_codec_driver soc_codec_dev_max9850 = {
.reg_word_size = sizeof(u8),
.reg_cache_default = max9850_reg,
.volatile_register = max9850_volatile_register,

.controls = max9850_controls,
.num_controls = ARRAY_SIZE(max9850_controls),
.dapm_widgets = max9850_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(max9850_dapm_widgets),
.dapm_routes = max9850_dapm_routes,
.num_dapm_routes = ARRAY_SIZE(max9850_dapm_routes),
};

static int __devinit max9850_i2c_probe(struct i2c_client *i2c,
Expand Down

0 comments on commit 702aaa3

Please sign in to comment.