Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293355
b: refs/heads/master
c: 0e66821
h: refs/heads/master
i:
  293353: b83783c
  293351: fe7b743
v: v3
  • Loading branch information
Liam Girdwood authored and Mark Brown committed Feb 16, 2012
1 parent 4bb4f32 commit 5aef21f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 905b41956c81e5914470a13a166d4b4c4ee71f92
refs/heads/master: 0e66821f63b3bf1468f5793759beb09b3e1ffa4f
12 changes: 6 additions & 6 deletions trunk/sound/soc/pxa/spitz.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ static int spitz_jack_func;
static int spitz_spk_func;
static int spitz_mic_gpio;

static void spitz_ext_control(struct snd_soc_codec *codec)
static void spitz_ext_control(struct snd_soc_card *card)
{
struct snd_soc_dapm_context *dapm = &codec->dapm;
struct snd_soc_dapm_context *dapm = &card->dapm;

if (spitz_spk_func == SPITZ_SPK_ON)
snd_soc_dapm_enable_pin(dapm, "Ext Spk");
Expand Down Expand Up @@ -173,13 +173,13 @@ static int spitz_get_jack(struct snd_kcontrol *kcontrol,
static int spitz_set_jack(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
struct snd_soc_card *card = snd_kcontrol_chip(kcontrol);

if (spitz_jack_func == ucontrol->value.integer.value[0])
return 0;

spitz_jack_func = ucontrol->value.integer.value[0];
spitz_ext_control(codec);
spitz_ext_control(card);
return 1;
}

Expand All @@ -193,13 +193,13 @@ static int spitz_get_spk(struct snd_kcontrol *kcontrol,
static int spitz_set_spk(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
struct snd_soc_card *card = snd_kcontrol_chip(kcontrol);

if (spitz_spk_func == ucontrol->value.integer.value[0])
return 0;

spitz_spk_func = ucontrol->value.integer.value[0];
spitz_ext_control(codec);
spitz_ext_control(card);
return 1;
}

Expand Down

0 comments on commit 5aef21f

Please sign in to comment.