Skip to contentSkip to conversation

OSS/sb_mixer.c is broken on 2.5.59

BUG/PATCH Nuno Monteiro 2 participants 2 messages Jan 17, 2003 – Jan 21, 2003 Sound

lore
Share & tools
lore
#0 lore raw

Hi,

I know OSS is not all that supported, but it has been mostly working for the past 2.5 revisions. However, 2.5.59 broke it. Here is the fix, it allows sound/oss/sb_mixer.c to comple again -- I havent booted it yet, but its trivial enough to spot it from a mile away :)

Regards,

Nuno

sound/oss/sb_mixer.c renamed from sound/oss/sb_mixer.c.orig +2 -2
@@ -45,7 +45,7 @@
 					SOUND_MASK_TREBLE|SOUND_MASK_SPEAKER )
 
 #define SB16_RECORDING_DEVICES		(SOUND_MASK_SYNTH | \
-					SOUND_MASK_LINE | \ SOUND_MASK_MIC | \
+					SOUND_MASK_LINE | SOUND_MASK_MIC | \
 					SOUND_MASK_CD)
 
 #define SB16_OUTFILTER_DEVICES		(SOUND_MASK_LINE | SOUND_MASK_MIC | \
@@ -55,7 +55,7 @@
 					SOUND_MASK_SPEAKER | \
 					SOUND_MASK_LINE | SOUND_MASK_MIC | \
 					SOUND_MASK_CD | SOUND_MASK_IGAIN | \
-					SOUND_MASK_OGAIN | \ SOUND_MASK_VOLUME | \
+					SOUND_MASK_OGAIN | SOUND_MASK_VOLUME | \
 					SOUND_MASK_BASS | SOUND_MASK_TREBLE | \
 					SOUND_MASK_IMIX)
 
#1 lore raw
Quoted 6 lines · Nuno Monteiro

Hi,

I know OSS is not all that supported, but it has been mostly working for the past 2.5 revisions. However, 2.5.59 broke it. Here is the fix, it allows sound/oss/sb_mixer.c to comple again -- I havent booted it yet, but its trivial enough to spot it from a mile away :)

This file is OK in 2.5.59. Could it be that your editor or another program you use broke it?

Quoted 17 lines

Regards,

Nuno

sound/oss/sb_mixer.c renamed from sound/oss/sb_mixer.c.orig +1 -1
@@ -45,7 +45,7 @@
 					SOUND_MASK_TREBLE|SOUND_MASK_SPEAKER )
 
 #define SB16_RECORDING_DEVICES		(SOUND_MASK_SYNTH | \
-					SOUND_MASK_LINE | \ SOUND_MASK_MIC | \
+					SOUND_MASK_LINE | SOUND_MASK_MIC | \
 					SOUND_MASK_CD)
 
 #define SB16_OUTFILTER_DEVICES		(SOUND_MASK_LINE | SOUND_MASK_MIC | \

sound/oss/sb_mixer.c line 61

Quoted 8 lines
sound/oss/sb_mixer.c renamed from sound/oss/sb_mixer.c.orig +1 -1
@@ -55,7 +55,7 @@
 					SOUND_MASK_SPEAKER | \
 					SOUND_MASK_LINE | SOUND_MASK_MIC | \
 					SOUND_MASK_CD | SOUND_MASK_IGAIN | \
-					SOUND_MASK_OGAIN | \ SOUND_MASK_VOLUME | \
+					SOUND_MASK_OGAIN | SOUND_MASK_VOLUME | \
 					SOUND_MASK_BASS | SOUND_MASK_TREBLE | \
 					SOUND_MASK_IMIX)
 

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