Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293222
b: refs/heads/master
c: 8998963
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Jan 22, 2012
1 parent 1169455 commit cf64b13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 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: 82fa3670575143031517531936b1cc308d4981fa
refs/heads/master: 899896379670f885072564669e395feb649105a6
17 changes: 7 additions & 10 deletions trunk/sound/soc/codecs/sgtl5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static const struct snd_soc_dapm_widget sgtl5000_dapm_widgets[] = {
};

/* routes for sgtl5000 */
static const struct snd_soc_dapm_route audio_map[] = {
static const struct snd_soc_dapm_route sgtl5000_dapm_routes[] = {
{"Capture Mux", "LINE_IN", "LINE_IN"}, /* line_in --> adc_mux */
{"Capture Mux", "MIC_IN", "MIC_IN"}, /* mic_in --> adc_mux */

Expand Down Expand Up @@ -1353,15 +1353,6 @@ static int sgtl5000_probe(struct snd_soc_codec *codec)
if (ret)
goto err;

snd_soc_add_controls(codec, sgtl5000_snd_controls,
ARRAY_SIZE(sgtl5000_snd_controls));

snd_soc_dapm_new_controls(&codec->dapm, sgtl5000_dapm_widgets,
ARRAY_SIZE(sgtl5000_dapm_widgets));

snd_soc_dapm_add_routes(&codec->dapm, audio_map,
ARRAY_SIZE(audio_map));

snd_soc_dapm_new_widgets(&codec->dapm);

return 0;
Expand Down Expand Up @@ -1402,6 +1393,12 @@ static struct snd_soc_codec_driver sgtl5000_driver = {
.reg_cache_step = 2,
.reg_cache_default = sgtl5000_regs,
.volatile_register = sgtl5000_volatile_register,
.controls = sgtl5000_snd_controls,
.num_controls = ARRAY_SIZE(sgtl5000_snd_controls),
.dapm_widgets = sgtl500_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(sgtl500_dapm_widgets),
.dapm_routes = sgtl500_dapm_routes,
.num_dapm_routes = ARRAY_SIZE(sgtl500_dapm_routes),
};

static __devinit int sgtl5000_i2c_probe(struct i2c_client *client,
Expand Down

0 comments on commit cf64b13

Please sign in to comment.