Commit f14d8e97 authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Jaroslav Kysela

ALSA: ice1712/wtm: fix coding style

before:
total: 2 errors, 0 warnings, 20 lines checked
total: 49 errors, 2 warnings, 518 lines checked

after:
total: 0 errors, 0 warnings, 20 lines checked
total: 0 errors, 0 warnings, 518 lines checked

Compile tested, size and code are equal.
Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 1ce211a9
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <asm/io.h> #include <linux/io.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -89,7 +89,7 @@ static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, ...@@ -89,7 +89,7 @@ static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol,
if (id < 6) if (id < 6)
val = stac9460_get(ice, idx); val = stac9460_get(ice, idx);
else else
val = stac9460_2_get(ice,idx - 6); val = stac9460_2_get(ice, idx - 6);
ucontrol->value.integer.value[0] = (~val >> 7) & 0x1; ucontrol->value.integer.value[0] = (~val >> 7) & 0x1;
return 0; return 0;
} }
...@@ -105,7 +105,7 @@ static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, ...@@ -105,7 +105,7 @@ static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol,
if (kcontrol->private_value) { if (kcontrol->private_value) {
idx = STAC946X_MASTER_VOLUME; idx = STAC946X_MASTER_VOLUME;
old = stac9460_get(ice, idx); old = stac9460_get(ice, idx);
new = (~ucontrol->value.integer.value[0]<< 7 & 0x80) | new = (~ucontrol->value.integer.value[0] << 7 & 0x80) |
(old & ~0x80); (old & ~0x80);
change = (new != old); change = (new != old);
if (change) { if (change) {
...@@ -119,7 +119,7 @@ static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, ...@@ -119,7 +119,7 @@ static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol,
old = stac9460_get(ice, idx); old = stac9460_get(ice, idx);
else else
old = stac9460_2_get(ice, idx - 6); old = stac9460_2_get(ice, idx - 6);
new = (~ucontrol->value.integer.value[0]<< 7 & 0x80) | new = (~ucontrol->value.integer.value[0] << 7 & 0x80) |
(old & ~0x80); (old & ~0x80);
change = (new != old); change = (new != old);
if (change) { if (change) {
...@@ -371,7 +371,7 @@ static int stac9460_mic_sw_put(struct snd_kcontrol *kcontrol, ...@@ -371,7 +371,7 @@ static int stac9460_mic_sw_put(struct snd_kcontrol *kcontrol,
old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE); old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE);
else else
old = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE); old = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE);
new = (~ucontrol->value.integer.value[0]<< 7 & 0x80) | (old & ~0x80); new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | (old & ~0x80);
change = (new != old); change = (new != old);
if (change) { if (change) {
if (id == 0) if (id == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment