Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132883
b: refs/heads/master
c: a1b3eae
h: refs/heads/master
i:
  132881: e37fd79
  132879: d1011ee
v: v3
  • Loading branch information
Mark Brown committed Mar 6, 2009
1 parent 1bb5f73 commit afd120c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 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: c36623a7543e7a23ceeafbeb7b34a9e020100898
refs/heads/master: a1b3eaeb146937e954cdb6dcb67f8761b73e2eef
27 changes: 6 additions & 21 deletions trunk/sound/soc/s3c24xx/jive_wm8750.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,6 @@ static const struct snd_soc_dapm_widget wm8750_dapm_widgets[] = {
SND_SOC_DAPM_LINE("Line In", NULL),
};

static int jive_startup(struct snd_pcm_substream *substream)
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_codec *codec = rtd->socdev->codec;

snd_soc_dapm_enable_pin(codec, "Headphone Jack");
snd_soc_dapm_enable_pin(codec, "Internal Speaker");
snd_soc_dapm_enable_pin(codec, "Line In");

snd_soc_dapm_sync(codec);

return 0;
}

static int jive_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{
Expand Down Expand Up @@ -119,7 +105,6 @@ static int jive_hw_params(struct snd_pcm_substream *substream,
}

static struct snd_soc_ops jive_ops = {
.startup = jive_startup,
.hw_params = jive_hw_params,
};

Expand All @@ -128,12 +113,12 @@ static int jive_wm8750_init(struct snd_soc_codec *codec)
int err;

/* These endpoints are not being used. */
snd_soc_dapm_disable_pin(codec, "LINPUT2");
snd_soc_dapm_disable_pin(codec, "RINPUT2");
snd_soc_dapm_disable_pin(codec, "LINPUT3");
snd_soc_dapm_disable_pin(codec, "RINPUT3");
snd_soc_dapm_disable_pin(codec, "OUT3");
snd_soc_dapm_disable_pin(codec, "MONO");
snd_soc_dapm_nc_pin(codec, "LINPUT2");
snd_soc_dapm_nc_pin(codec, "RINPUT2");
snd_soc_dapm_nc_pin(codec, "LINPUT3");
snd_soc_dapm_nc_pin(codec, "RINPUT3");
snd_soc_dapm_nc_pin(codec, "OUT3");
snd_soc_dapm_nc_pin(codec, "MONO");

/* Add jive specific widgets */
err = snd_soc_dapm_new_controls(codec, wm8750_dapm_widgets,
Expand Down

0 comments on commit afd120c

Please sign in to comment.