Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283827
b: refs/heads/master
c: 6414261
h: refs/heads/master
i:
  283825: 8469d9b
  283823: f2d266a
v: v3
  • Loading branch information
Mark Brown committed Nov 30, 2011
1 parent daafd06 commit 76edc71
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 41 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: bf55499e6ee927e047feed85349365481289bd75
refs/heads/master: 6414261f0a2af00c6ffc80f847e9202344360bb4
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-s3c64xx/mach-crag6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ static struct platform_device lowland_device = {
.id = -1,
};

static struct platform_device speyside_wm8962_device = {
.name = "speyside-wm8962",
static struct platform_device tobermory_device = {
.name = "tobermory",
.id = -1,
};

Expand Down Expand Up @@ -338,7 +338,7 @@ static struct platform_device *crag6410_devices[] __initdata = {
&crag6410_lcd_powerdev,
&crag6410_backlight_device,
&speyside_device,
&speyside_wm8962_device,
&tobermory_device,
&lowland_device,
&wallvdd_device,
};
Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/soc/samsung/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ config SND_SOC_SPEYSIDE
select SND_SOC_WM9081
select SND_SOC_WM1250_EV1

config SND_SOC_SPEYSIDE_WM8962
tristate "Audio support for Wolfson Speyside with WM8962"
config SND_SOC_TOBERMORY
tristate "Audio support for Wolfson Tobermory"
depends on SND_SOC_SAMSUNG && MACH_WLF_CRAGG_6410
select SND_SAMSUNG_I2S
select SND_SOC_WM8962
Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/soc/samsung/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ snd-soc-smdk-spdif-objs := smdk_spdif.o
snd-soc-smdk-wm8580pcm-objs := smdk_wm8580pcm.o
snd-soc-smdk-wm8994pcm-objs := smdk_wm8994pcm.o
snd-soc-speyside-objs := speyside.o
snd-soc-speyside-wm8962-objs := speyside_wm8962.o
snd-soc-tobermory-objs := tobermory.o
snd-soc-lowland-objs := lowland.o
snd-soc-littlemill-objs := littlemill.o

Expand All @@ -62,6 +62,6 @@ obj-$(CONFIG_SND_SOC_GONI_AQUILA_WM8994) += snd-soc-goni-wm8994.o
obj-$(CONFIG_SND_SOC_SMDK_WM8580_PCM) += snd-soc-smdk-wm8580pcm.o
obj-$(CONFIG_SND_SOC_SMDK_WM8994_PCM) += snd-soc-smdk-wm8994pcm.o
obj-$(CONFIG_SND_SOC_SPEYSIDE) += snd-soc-speyside.o
obj-$(CONFIG_SND_SOC_SPEYSIDE_WM8962) += snd-soc-speyside-wm8962.o
obj-$(CONFIG_SND_SOC_TOBERMORY) += snd-soc-tobermory.o
obj-$(CONFIG_SND_SOC_LOWLAND) += snd-soc-lowland.o
obj-$(CONFIG_SND_SOC_LITTLEMILL) += snd-soc-littlemill.o
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Speyside with WM8962 audio support
* Tobermory audio support
*
* Copyright 2011 Wolfson Microelectronics
*
Expand All @@ -19,7 +19,7 @@

static int sample_rate = 44100;

static int speyside_wm8962_set_bias_level(struct snd_soc_card *card,
static int tobermory_set_bias_level(struct snd_soc_card *card,
struct snd_soc_dapm_context *dapm,
enum snd_soc_bias_level level)
{
Expand Down Expand Up @@ -56,7 +56,7 @@ static int speyside_wm8962_set_bias_level(struct snd_soc_card *card,
return 0;
}

static int speyside_wm8962_set_bias_level_post(struct snd_soc_card *card,
static int tobermory_set_bias_level_post(struct snd_soc_card *card,
struct snd_soc_dapm_context *dapm,
enum snd_soc_bias_level level)
{
Expand Down Expand Up @@ -92,19 +92,19 @@ static int speyside_wm8962_set_bias_level_post(struct snd_soc_card *card,
return 0;
}

static int speyside_wm8962_hw_params(struct snd_pcm_substream *substream,
static int tobermory_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{
sample_rate = params_rate(params);

return 0;
}

static struct snd_soc_ops speyside_wm8962_ops = {
.hw_params = speyside_wm8962_hw_params,
static struct snd_soc_ops tobermory_ops = {
.hw_params = tobermory_hw_params,
};

static struct snd_soc_dai_link speyside_wm8962_dai[] = {
static struct snd_soc_dai_link tobermory_dai[] = {
{
.name = "CPU",
.stream_name = "CPU",
Expand All @@ -114,7 +114,7 @@ static struct snd_soc_dai_link speyside_wm8962_dai[] = {
.codec_name = "wm8962.1-001a",
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
| SND_SOC_DAIFMT_CBM_CFM,
.ops = &speyside_wm8962_ops,
.ops = &tobermory_ops,
},
};

Expand Down Expand Up @@ -152,10 +152,10 @@ static struct snd_soc_dapm_route audio_paths[] = {
{ "DMICDAT", NULL, "DMIC" },
};

static struct snd_soc_jack speyside_wm8962_headset;
static struct snd_soc_jack tobermory_headset;

/* Headset jack detection DAPM pins */
static struct snd_soc_jack_pin speyside_wm8962_headset_pins[] = {
static struct snd_soc_jack_pin tobermory_headset_pins[] = {
{
.pin = "Headset Mic",
.mask = SND_JACK_MICROPHONE,
Expand All @@ -166,7 +166,7 @@ static struct snd_soc_jack_pin speyside_wm8962_headset_pins[] = {
},
};

static int speyside_wm8962_late_probe(struct snd_soc_card *card)
static int tobermory_late_probe(struct snd_soc_card *card)
{
struct snd_soc_codec *codec = card->rtd[0].codec;
struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai;
Expand All @@ -179,28 +179,28 @@ static int speyside_wm8962_late_probe(struct snd_soc_card *card)

ret = snd_soc_jack_new(codec, "Headset",
SND_JACK_HEADSET | SND_JACK_BTN_0,
&speyside_wm8962_headset);
&tobermory_headset);
if (ret)
return ret;

ret = snd_soc_jack_add_pins(&speyside_wm8962_headset,
ARRAY_SIZE(speyside_wm8962_headset_pins),
speyside_wm8962_headset_pins);
ret = snd_soc_jack_add_pins(&tobermory_headset,
ARRAY_SIZE(tobermory_headset_pins),
tobermory_headset_pins);
if (ret)
return ret;

wm8962_mic_detect(codec, &speyside_wm8962_headset);
wm8962_mic_detect(codec, &tobermory_headset);

return 0;
}

static struct snd_soc_card speyside_wm8962 = {
.name = "Speyside WM8962",
.dai_link = speyside_wm8962_dai,
.num_links = ARRAY_SIZE(speyside_wm8962_dai),
static struct snd_soc_card tobermory = {
.name = "Tobermory",
.dai_link = tobermory_dai,
.num_links = ARRAY_SIZE(tobermory_dai),

.set_bias_level = speyside_wm8962_set_bias_level,
.set_bias_level_post = speyside_wm8962_set_bias_level_post,
.set_bias_level = tobermory_set_bias_level,
.set_bias_level_post = tobermory_set_bias_level_post,

.controls = controls,
.num_controls = ARRAY_SIZE(controls),
Expand All @@ -210,12 +210,12 @@ static struct snd_soc_card speyside_wm8962 = {
.num_dapm_routes = ARRAY_SIZE(audio_paths),
.fully_routed = true,

.late_probe = speyside_wm8962_late_probe,
.late_probe = tobermory_late_probe,
};

static __devinit int speyside_wm8962_probe(struct platform_device *pdev)
static __devinit int tobermory_probe(struct platform_device *pdev)
{
struct snd_soc_card *card = &speyside_wm8962;
struct snd_soc_card *card = &tobermory;
int ret;

card->dev = &pdev->dev;
Expand All @@ -230,7 +230,7 @@ static __devinit int speyside_wm8962_probe(struct platform_device *pdev)
return 0;
}

static int __devexit speyside_wm8962_remove(struct platform_device *pdev)
static int __devexit tobermory_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);

Expand All @@ -239,19 +239,19 @@ static int __devexit speyside_wm8962_remove(struct platform_device *pdev)
return 0;
}

static struct platform_driver speyside_wm8962_driver = {
static struct platform_driver tobermory_driver = {
.driver = {
.name = "speyside-wm8962",
.name = "tobermory",
.owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
},
.probe = speyside_wm8962_probe,
.remove = __devexit_p(speyside_wm8962_remove),
.probe = tobermory_probe,
.remove = __devexit_p(tobermory_remove),
};

module_platform_driver(speyside_wm8962_driver);
module_platform_driver(tobermory_driver);

MODULE_DESCRIPTION("Speyside WM8962 audio support");
MODULE_DESCRIPTION("Tobermory audio support");
MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:speyside-wm8962");
MODULE_ALIAS("platform:tobermory");

0 comments on commit 76edc71

Please sign in to comment.