Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248280
b: refs/heads/master
c: ea3e98e
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Apr 13, 2011
1 parent 4a196d2 commit b1475c1
Show file tree
Hide file tree
Showing 3 changed files with 36 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: ea0a591a28b9249ea585f2cf8045e43f57f48fbb
refs/heads/master: ea3e98e75a6f38522450b66e22e34267977915ef
1 change: 1 addition & 0 deletions trunk/sound/soc/samsung/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,4 @@ config SND_SOC_SPEYSIDE
depends on SND_SOC_SAMSUNG && MACH_WLF_CRAGG_6410
select SND_SAMSUNG_I2S
select SND_SOC_WM8915
select SND_SOC_WM9081
34 changes: 34 additions & 0 deletions trunk/sound/soc/samsung/speyside.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <sound/soc-dapm.h>

#include "../codecs/wm8915.h"
#include "../codecs/wm9081.h"

static int speyside_set_bias_level(struct snd_soc_card *card,
enum snd_soc_bias_level level)
Expand Down Expand Up @@ -98,6 +99,30 @@ static struct snd_soc_dai_link speyside_dai[] = {
},
};

static int speyside_wm9081_init(struct snd_soc_dapm_context *dapm)
{
snd_soc_dapm_nc_pin(dapm, "LINEOUT");

/* At any time the WM9081 is active it will have this clock */
return snd_soc_codec_set_sysclk(dapm->codec, WM9081_SYSCLK_MCLK,
48000 * 256, 0);
}

static struct snd_soc_aux_dev speyside_aux_dev[] = {
{
.name = "wm9081",
.codec_name = "wm9081.1-006c",
.init = speyside_wm9081_init,
},
};

static struct snd_soc_codec_conf speyside_codec_conf[] = {
{
.dev_name = "wm9081.1-006c",
.name_prefix = "Sub",
},
};

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

Expand All @@ -118,13 +143,22 @@ static struct snd_soc_dapm_route audio_paths[] = {
{ "Headphone", NULL, "HPOUT1L" },
{ "Headphone", NULL, "HPOUT1R" },

{ "Sub IN1", NULL, "HPOUT2L" },
{ "Sub IN2", NULL, "HPOUT2R" },

{ "Main Speaker", NULL, "Sub SPKN" },
{ "Main Speaker", NULL, "Sub SPKP" },
{ "Main Speaker", NULL, "SPKDAT" },
};

static struct snd_soc_card speyside = {
.name = "Speyside",
.dai_link = speyside_dai,
.num_links = ARRAY_SIZE(speyside_dai),
.aux_dev = speyside_aux_dev,
.num_aux_devs = ARRAY_SIZE(speyside_aux_dev),
.codec_conf = speyside_codec_conf,
.num_configs = ARRAY_SIZE(speyside_codec_conf),

.set_bias_level = speyside_set_bias_level,

Expand Down

0 comments on commit b1475c1

Please sign in to comment.