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: Alexander Beregalov <a.beregalov@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
committed by
Jaroslav Kysela
parent
1ce211a9db
commit
f14d8e9750
@@ -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,
|
|||||||
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,
|
|||||||
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,
|
|||||||
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,
|
|||||||
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)
|
||||||
|
Reference in New Issue
Block a user