Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270832
b: refs/heads/master
c: 8966c2d
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Oct 10, 2011
1 parent f5aef19 commit debd228
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 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: d2266025ea26b6f3f8f93da6fad129541c82bd7c
refs/heads/master: 8966c2dd51909e6e3dcea099df9c501904085818
21 changes: 8 additions & 13 deletions trunk/sound/soc/omap/n810.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ static int n810_aic33_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_codec *codec = rtd->codec;
struct snd_soc_dapm_context *dapm = &codec->dapm;
int err;

/* Not connected */
snd_soc_dapm_nc_pin(dapm, "MONO_LOUT");
Expand All @@ -269,18 +268,7 @@ static int n810_aic33_init(struct snd_soc_pcm_runtime *rtd)
snd_soc_dapm_nc_pin(dapm, "LINE2L");
snd_soc_dapm_nc_pin(dapm, "LINE2R");

/* Add N810 specific controls */
err = snd_soc_add_controls(codec, aic33_n810_controls,
ARRAY_SIZE(aic33_n810_controls));
if (err < 0)
return err;

/* Add N810 specific widgets */
snd_soc_dapm_new_controls(dapm, aic33_dapm_widgets,
ARRAY_SIZE(aic33_dapm_widgets));

/* Set up N810 specific audio path audio_map */
return snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
return 0;
}

/* Digital audio interface glue - connects codec <--> CPU */
Expand All @@ -302,6 +290,13 @@ static struct snd_soc_card snd_soc_n810 = {
.name = "N810",
.dai_link = &n810_dai,
.num_links = 1,

.controls = aic33_n810_controls,
.num_controls = ARRAY_SIZE(aic33_n810_controls),
.dapm_widgets = aic33_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(aic33_dapm_widgets),
.dapm_routes = audio_map,
.num_dapm_routes = ARRAY_SIZE(audio_map),
};

static struct platform_device *n810_snd_device;
Expand Down

0 comments on commit debd228

Please sign in to comment.