Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248278
b: refs/heads/master
c: ecfb1ad
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Apr 13, 2011
1 parent 4ea3a2c commit 083332b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b8dc66fbae53def2547df8c0a5cbe8924ea2b1f
refs/heads/master: ecfb1adf5f037eaff0b678918d84a8febd9f1c3e
28 changes: 28 additions & 0 deletions trunk/sound/soc/samsung/speyside.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,38 @@ static struct snd_soc_dai_link speyside_dai[] = {
},
};

static struct snd_soc_dapm_widget widgets[] = {
SND_SOC_DAPM_HP("Headphone", NULL),

SND_SOC_DAPM_SPK("Main Speaker", NULL),

SND_SOC_DAPM_MIC("Main AMIC", NULL),
SND_SOC_DAPM_MIC("Main DMIC", NULL),
};

static struct snd_soc_dapm_route audio_paths[] = {
{ "IN1LP", NULL, "MICB2" },
{ "MICB2", NULL, "Main AMIC" },

{ "DMIC1DAT", NULL, "MICB1" },
{ "DMIC2DAT", NULL, "MICB1" },
{ "MICB1", NULL, "Main DMIC" },

{ "Headphone", NULL, "HPOUT1L" },
{ "Headphone", NULL, "HPOUT1R" },

{ "Main Speaker", NULL, "SPKDAT" },
};

static struct snd_soc_card speyside = {
.name = "Speyside",
.dai_link = speyside_dai,
.num_links = ARRAY_SIZE(speyside_dai),

.dapm_widgets = widgets,
.num_dapm_widgets = ARRAY_SIZE(widgets),
.dapm_routes = audio_paths,
.num_dapm_routes = ARRAY_SIZE(audio_paths),
};

static __devinit int speyside_probe(struct platform_device *pdev)
Expand Down

0 comments on commit 083332b

Please sign in to comment.