Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270821
b: refs/heads/master
c: 6119d01
h: refs/heads/master
i:
  270819: e0996d2
v: v3
  • Loading branch information
Mark Brown committed Oct 10, 2011
1 parent 8bfd018 commit caccb80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 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: 4f5448ae4b1b877c777a6f96af7bef31f505936d
refs/heads/master: 6119d016b1dd036d4dd7a8cfad4e4d113be32d91
17 changes: 5 additions & 12 deletions trunk/sound/soc/samsung/h1940_uda1380.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,6 @@ static int h1940_uda1380_init(struct snd_soc_pcm_runtime *rtd)
struct snd_soc_dapm_context *dapm = &codec->dapm;
int err;

/* Add h1940 specific widgets */
err = snd_soc_dapm_new_controls(dapm, uda1380_dapm_widgets,
ARRAY_SIZE(uda1380_dapm_widgets));
if (err)
return err;

/* Set up h1940 specific audio path audio_mapnects */
err = snd_soc_dapm_add_routes(dapm, audio_map,
ARRAY_SIZE(audio_map));
if (err)
return err;

snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
snd_soc_dapm_enable_pin(dapm, "Speaker");
snd_soc_dapm_enable_pin(dapm, "Mic Jack");
Expand Down Expand Up @@ -228,6 +216,11 @@ static struct snd_soc_card h1940_asoc = {
.name = "h1940",
.dai_link = h1940_uda1380_dai,
.num_links = ARRAY_SIZE(h1940_uda1380_dai),

.dapm_widgets = uda1380_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(uda1380_dapm_widgets),
.dapm_routes = audio_map,
.num_dapm_routes = ARRAY_SIZE(audio_map),
};

static int __init h1940_init(void)
Expand Down

0 comments on commit caccb80

Please sign in to comment.