Skip to content

Commit

Permalink
[ALSA] powermac - Fix typos
Browse files Browse the repository at this point in the history
The kernel build fails, with following error
  CC      sound/ppc/tumbler.o
sound/ppc/tumbler.c: In function ‘snapper_get_capture_source’:
sound/ppc/tumbler.c:812: error: ‘union <anonymous>’ has no member named ‘value’
sound/ppc/tumbler.c: In function ‘snapper_put_capture_source’:
sound/ppc/tumbler.c:824: error: ‘union <anonymous>’ has no member named ‘enuemerated’
make[2]: *** [sound/ppc/tumbler.o] Error 1
make[1]: *** [sound/ppc] Error 2
make: *** [sound] Error 2

Signed-off-by: Kamalesh Babulal <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
Kamalesh Babulal authored and perexg committed Jan 31, 2008
1 parent f673dc8 commit dec44db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/ppc/tumbler.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ static int snapper_get_capture_source(struct snd_kcontrol *kcontrol,
struct pmac_tumbler *mix = chip->mixer_data;

snd_assert(mix, return -ENODEV);
ucontrol->value.enumerated.value[0] = mix->capture_source;
ucontrol->value.enumerated.item[0] = mix->capture_source;
return 0;
}

Expand All @@ -821,7 +821,7 @@ static int snapper_put_capture_source(struct snd_kcontrol *kcontrol,
int change;

snd_assert(mix, return -ENODEV);
change = ucontrol->value.enuemerated.item[0] != mix->capture_source;
change = ucontrol->value.enumerated.item[0] != mix->capture_source;
if (change) {
mix->capture_source = !!ucontrol->value.enumerated.item[0];
snapper_set_capture_source(mix);
Expand Down

0 comments on commit dec44db

Please sign in to comment.