patch-2.1.105 linux/drivers/sound/sgalaxy.c

Next file: linux/drivers/sound/sound_config.h
Previous file: linux/drivers/sound/sb_midi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.104/linux/drivers/sound/sgalaxy.c linux/drivers/sound/sgalaxy.c
@@ -121,7 +121,9 @@
 	
 	request_region( ai->ai_sgbase, 0x10, "SoundGalaxy SB" );
  
-	n=attach_ms_sound( ai );
+	attach_ms_sound( ai );
+	n=ai->slots[0];
+	
 	if (n!=-1 && audio_devs[n]->mixer_dev != -1 )
 	{
 		AD1848_REROUTE( SOUND_MIXER_LINE1, SOUND_MIXER_LINE );   /* Line-in */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov