Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92234
b: refs/heads/master
c: 775c199
h: refs/heads/master
v: v3
  • Loading branch information
Karsten Wiese authored and Takashi Iwai committed Apr 24, 2008
1 parent 5116497 commit a51624f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 988f0664779674c7c06252a6d549eee8debd5d76
refs/heads/master: 775c199e6af5e4212bfa7ebeadee09563c14694b
8 changes: 6 additions & 2 deletions trunk/sound/pci/ice1712/ice1712.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,14 @@ int snd_ice1712_gpio_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_valu
static inline void snd_ice1712_gpio_write_bits(struct snd_ice1712 *ice,
unsigned int mask, unsigned int bits)
{
unsigned val;

ice->gpio.direction |= mask;
snd_ice1712_gpio_set_dir(ice, ice->gpio.direction);
snd_ice1712_gpio_set_mask(ice, ~mask);
snd_ice1712_gpio_write(ice, mask & bits);
val = snd_ice1712_gpio_read(ice);
val &= ~mask;
val |= mask & bits;
snd_ice1712_gpio_write(ice, val);
}

static inline int snd_ice1712_gpio_read_bits(struct snd_ice1712 *ice,
Expand Down

0 comments on commit a51624f

Please sign in to comment.