diff options
Diffstat (limited to 'sound/pci/emu10k1/emufx.c')
-rw-r--r-- | sound/pci/emu10k1/emufx.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c index 52419959178c..0275209ca82e 100644 --- a/sound/pci/emu10k1/emufx.c +++ b/sound/pci/emu10k1/emufx.c | |||
@@ -1073,7 +1073,7 @@ static int snd_emu10k1_ipcm_peek(struct snd_emu10k1 *emu, | |||
1073 | #define SND_EMU10K1_PLAYBACK_CHANNELS 8 | 1073 | #define SND_EMU10K1_PLAYBACK_CHANNELS 8 |
1074 | #define SND_EMU10K1_CAPTURE_CHANNELS 4 | 1074 | #define SND_EMU10K1_CAPTURE_CHANNELS 4 |
1075 | 1075 | ||
1076 | static void __devinit | 1076 | static void |
1077 | snd_emu10k1_init_mono_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | 1077 | snd_emu10k1_init_mono_control(struct snd_emu10k1_fx8010_control_gpr *ctl, |
1078 | const char *name, int gpr, int defval) | 1078 | const char *name, int gpr, int defval) |
1079 | { | 1079 | { |
@@ -1094,7 +1094,7 @@ snd_emu10k1_init_mono_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | |||
1094 | } | 1094 | } |
1095 | } | 1095 | } |
1096 | 1096 | ||
1097 | static void __devinit | 1097 | static void |
1098 | snd_emu10k1_init_stereo_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | 1098 | snd_emu10k1_init_stereo_control(struct snd_emu10k1_fx8010_control_gpr *ctl, |
1099 | const char *name, int gpr, int defval) | 1099 | const char *name, int gpr, int defval) |
1100 | { | 1100 | { |
@@ -1116,7 +1116,7 @@ snd_emu10k1_init_stereo_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | |||
1116 | } | 1116 | } |
1117 | } | 1117 | } |
1118 | 1118 | ||
1119 | static void __devinit | 1119 | static void |
1120 | snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | 1120 | snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, |
1121 | const char *name, int gpr, int defval) | 1121 | const char *name, int gpr, int defval) |
1122 | { | 1122 | { |
@@ -1129,7 +1129,7 @@ snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | |||
1129 | ctl->translation = EMU10K1_GPR_TRANSLATION_ONOFF; | 1129 | ctl->translation = EMU10K1_GPR_TRANSLATION_ONOFF; |
1130 | } | 1130 | } |
1131 | 1131 | ||
1132 | static void __devinit | 1132 | static void |
1133 | snd_emu10k1_init_stereo_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, | 1133 | snd_emu10k1_init_stereo_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, |
1134 | const char *name, int gpr, int defval) | 1134 | const char *name, int gpr, int defval) |
1135 | { | 1135 | { |
@@ -1168,7 +1168,7 @@ static int snd_emu10k1_audigy_dsp_convert_32_to_2x16( | |||
1168 | * initial DSP configuration for Audigy | 1168 | * initial DSP configuration for Audigy |
1169 | */ | 1169 | */ |
1170 | 1170 | ||
1171 | static int __devinit _snd_emu10k1_audigy_init_efx(struct snd_emu10k1 *emu) | 1171 | static int _snd_emu10k1_audigy_init_efx(struct snd_emu10k1 *emu) |
1172 | { | 1172 | { |
1173 | int err, i, z, gpr, nctl; | 1173 | int err, i, z, gpr, nctl; |
1174 | int bit_shifter16; | 1174 | int bit_shifter16; |
@@ -1757,14 +1757,14 @@ A_OP(icode, &ptr, iMAC0, A_GPR(var), A_GPR(var), A_GPR(vol), A_EXTIN(input)) | |||
1757 | 1757 | ||
1758 | /* when volume = max, then copy only to avoid volume modification */ | 1758 | /* when volume = max, then copy only to avoid volume modification */ |
1759 | /* with iMAC0 (negative values) */ | 1759 | /* with iMAC0 (negative values) */ |
1760 | static void __devinit _volume(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) | 1760 | static void _volume(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) |
1761 | { | 1761 | { |
1762 | OP(icode, ptr, iMAC0, dst, C_00000000, src, vol); | 1762 | OP(icode, ptr, iMAC0, dst, C_00000000, src, vol); |
1763 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); | 1763 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); |
1764 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000001); | 1764 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000001); |
1765 | OP(icode, ptr, iACC3, dst, src, C_00000000, C_00000000); | 1765 | OP(icode, ptr, iACC3, dst, src, C_00000000, C_00000000); |
1766 | } | 1766 | } |
1767 | static void __devinit _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) | 1767 | static void _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) |
1768 | { | 1768 | { |
1769 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); | 1769 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); |
1770 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); | 1770 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); |
@@ -1772,7 +1772,7 @@ static void __devinit _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *pt | |||
1772 | OP(icode, ptr, iSKIP, C_00000000, C_7fffffff, C_7fffffff, C_00000001); | 1772 | OP(icode, ptr, iSKIP, C_00000000, C_7fffffff, C_7fffffff, C_00000001); |
1773 | OP(icode, ptr, iMAC0, dst, dst, src, vol); | 1773 | OP(icode, ptr, iMAC0, dst, dst, src, vol); |
1774 | } | 1774 | } |
1775 | static void __devinit _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) | 1775 | static void _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) |
1776 | { | 1776 | { |
1777 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); | 1777 | OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); |
1778 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); | 1778 | OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); |
@@ -1803,7 +1803,7 @@ static void __devinit _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *pt | |||
1803 | _SWITCH_NEG(icode, ptr, GPR(dst), GPR(src)) | 1803 | _SWITCH_NEG(icode, ptr, GPR(dst), GPR(src)) |
1804 | 1804 | ||
1805 | 1805 | ||
1806 | static int __devinit _snd_emu10k1_init_efx(struct snd_emu10k1 *emu) | 1806 | static int _snd_emu10k1_init_efx(struct snd_emu10k1 *emu) |
1807 | { | 1807 | { |
1808 | int err, i, z, gpr, tmp, playback, capture; | 1808 | int err, i, z, gpr, tmp, playback, capture; |
1809 | u32 ptr; | 1809 | u32 ptr; |
@@ -2373,7 +2373,7 @@ static int __devinit _snd_emu10k1_init_efx(struct snd_emu10k1 *emu) | |||
2373 | return err; | 2373 | return err; |
2374 | } | 2374 | } |
2375 | 2375 | ||
2376 | int __devinit snd_emu10k1_init_efx(struct snd_emu10k1 *emu) | 2376 | int snd_emu10k1_init_efx(struct snd_emu10k1 *emu) |
2377 | { | 2377 | { |
2378 | spin_lock_init(&emu->fx8010.irq_lock); | 2378 | spin_lock_init(&emu->fx8010.irq_lock); |
2379 | INIT_LIST_HEAD(&emu->fx8010.gpr_ctl); | 2379 | INIT_LIST_HEAD(&emu->fx8010.gpr_ctl); |
@@ -2626,7 +2626,8 @@ static int snd_emu10k1_fx8010_release(struct snd_hwdep * hw, struct file *file) | |||
2626 | return 0; | 2626 | return 0; |
2627 | } | 2627 | } |
2628 | 2628 | ||
2629 | int __devinit snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, struct snd_hwdep ** rhwdep) | 2629 | int snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, |
2630 | struct snd_hwdep **rhwdep) | ||
2630 | { | 2631 | { |
2631 | struct snd_hwdep *hw; | 2632 | struct snd_hwdep *hw; |
2632 | int err; | 2633 | int err; |
@@ -2647,7 +2648,7 @@ int __devinit snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, struct | |||
2647 | } | 2648 | } |
2648 | 2649 | ||
2649 | #ifdef CONFIG_PM_SLEEP | 2650 | #ifdef CONFIG_PM_SLEEP |
2650 | int __devinit snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu) | 2651 | int snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu) |
2651 | { | 2652 | { |
2652 | int len; | 2653 | int len; |
2653 | 2654 | ||