remove dead OSS/AC97 code
PATCH 1/1 remove dead OSS/AC97 code
sound/oss/ac97.c +3 -6
@@ -133,7 +133,7 @@ ac97_reset (struct ac97_hwint *dev)/* Return the contents of register REG; use the cache if the value in it is valid. Returns a negative error code on failure. */ -int +static int ac97_get_register (struct ac97_hwint *dev,u8 reg) {if (reg >127 || (reg &1 ))
@@ -226,7 +226,7 @@ ac97_scale_from_oss_val (int value, int } } -int +static int ac97_set_mixer (struct ac97_hwint *dev,int oss_channel,u16 oss_value) {int scaled_value;
@@ -262,7 +262,7 @@ ac97_set_mixer (struct ac97_hwint *dev,return result; } -int +static int ac97_get_mixer_scaled (struct ac97_hwint *dev,int oss_channel) {struct ac97_chn_desc *channel =ac97_find_chndesc (dev, oss_channel);
@@ -439,10 +439,7 @@ ac97_mixer_ioctl (struct ac97_hwint *devEXPORT_SYMBOL (ac97_init);EXPORT_SYMBOL (ac97_set_values); -EXPORT_SYMBOL (ac97_set_mixer); -EXPORT_SYMBOL (ac97_get_register);EXPORT_SYMBOL (ac97_put_register); -EXPORT_SYMBOL (ac97_get_mixer_scaled);EXPORT_SYMBOL (ac97_mixer_ioctl);EXPORT_SYMBOL (ac97_reset);MODULE_LICENSE ("GPL" );
===== sound/oss/ac97.h 1.4 vs edited =====
sound/oss/ac97.h +0 -16
@@ -184,25 +184,9 @@ extern int ac97_init (struct ac97_hwintextern int ac97_set_values (struct ac97_hwint *dev,struct ac97_mixer_value_list *value_list); -/* Sets one mixer channel OSS_CHANNEL to the scaled value OSS_VALUE. -Returns the resulting (rescaled) value, or a negative value -representing an error code. - -Stereo channels have two values in OSS_VALUE (the left value is in the -lower 8 bits, the right value is in the upper 8 bits). */ -extern int ac97_set_mixer (struct ac97_hwint *dev,int oss_channel, -u16 oss_value); - -/* Return the contents of the specified AC97 register REG; it uses the -last-written value if it is available. */ -extern int ac97_get_register (struct ac97_hwint *dev,u8 reg); -/* Writes the specified VALUE to the AC97 register REG in the mixer. Takes care of setting the last-written cache as well. */ extern int ac97_put_register (struct ac97_hwint *dev,u8 reg,u16 value); - -/* Returns the last OSS value written to the OSS_CHANNEL mixer channel. */ -extern int ac97_get_mixer_scaled (struct ac97_hwint *dev,int oss_channel);/* Default ioctl. */ extern int ac97_mixer_ioctl (struct ac97_hwint *dev, unsigned int cmd,
Seems to be a subset of
http://www.ussg.iu.edu/hypermail/linux/kernel/0412.2/0732.html
:-)
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed