Patch-ID# 102161-04
Keywords: watchdog DMA_SETUP playback failed audio SS5 aurora audio_4231 
Synopsis: SunOS 4.1.3_U1: sun4m  audio patch for SS5
Date: May/22/95

Solaris Release: 1.1.1A 1.1.1B

SunOS Release: 4.1.3_U1A 4.1.3_U1B

Unbundled Product: 

Unbundled Release: 

Relevant Architecture: sparc
    NOTE: sun4m

******************************************************************************
*       Please make sure to use the new Sun Microphone ( SunMic 2 ) on the   *
*	SS-5. The older standard SunMic does not work properly on the SS-5.  *
******************************************************************************

Topic: 4.1.3_U1: sun4m audio patch for SS5 

BugId's fixed with this patch: 1152441 1172217 1157547 1153505 1176131 1183925 1186767 1157948 1203697

Changes incorporated in this version: 1203697

Patches which may conflict with this patch: 101508-06
	NOTE: rev -06 or lower 

Other patches this accumulates and obsoletes: 

	This patch also obsoletes the ms2 (microSPARC2) patch distributed
	on the Solaris 1.1.1B media.
					
Obsoleted by: 

Files included with this patch:
README
copypatchfiles
conf.c
conf.c.xbox
audio_4231.o
GENERIC.audiocsfiles.audiocs

NOTE:
copypatchfiles	- script to assist copying patch files to /sys
sun:
	conf.c, conf.c.xbox
sun4m:
sun4m/OBJ:
audio_4231.o
sun4m/conf:
	GENERIC.audiocsfiles.audiocs

Problem Description: 

1203697 SunLink x.25 does not work when running audio applicaion on SS5
1164836 vat (audio conferencing tool) does not work on sparcstation 5
1183393 Can't Resume after Gaintool Pause on AudioTool file open
1182380 sample count incorrectly set on cs4231 audio chip
1187814 when accessing to the audio driver, the ss5 panics
1186767 ioctl() failed on /dev/audioctl on SS5 with right after reboot
1157948 CDware application produces DMA_SETUP failed in playback! error
1183925 "SHOWME AUDIO: AUD::SCT:SET_INFO ERROR 22: INVALID ARGUMENT"
1152441 "DMA_SETUP failed in playback" warning while running demo with audio
1172217	Cat to /dev/audio does not finish
1157547 Audio causes Watchdog Reset when audio track ends.
1153505 Looping record+play test hangs with Sundiag on 2.3 85mHZ system
1176131 SS5 audio sample counts are inaccurate

Note:  The audio_4231 driver has been taken out  from the jumbo kernel patch 
101508-06 and includes additional fixes. So if the jumbo kernel patch is
installed ,this audio patch should be installed on top of or AFTER  the
jumbo kernel patch.

Install Instructions: 

For SunOS 4.1.3U1
-----------------

CHECK THAT YOUR KERNEL ARCHITECTURE IS SUN4M:

	% arch -k
	sun4m

	If your kernel architecture is not sun4m then this 
	patch is not appropriate to install onto your machine.

AS ROOT, CD TO PATCH DIRECTORY:

1.	Run copypatchfiles script to copy patch files to /sys directory

		# ./copypatchfiles


2 	If you have previously installed the ms2 patch from the Solaris
	1.1.1B CD then skip to step 3. Otherwise you need to perform the
	following steps in order to enable support for the audiocs
	device used on microSPARC2 systems and if applicable for Sbus 
  	Expansion Subsystem.
	
		# cat sun4m/conf/files.audiocs >> /sys/sun4m/conf/files
		# cat sun4m/conf/GENERIC.audiocs >> /sys/sun4m/conf/<YOUR_CONFIG_FILE_NAME> 

	where <YOUR_CONFIG_FILE_NAME> is the config(8) file description that 
	you will be using to rebuild the kernel image.

	If YOU HAVE PREVIOUSLY INSTALLED UNBUNDLED PRODUCTS YOU 
	MAY NEED TO MERGE THE FOLLOWING TWO FILES :

		# diff /sys/sun/conf.c /sys/sun/conf.c.FCS

	If the only differences listed are related to audio_4231 (audiocs
	device) then you can skip to step 3. If the differences refer to 
        the xbox device in addition to the audio_4231 device, you would
        need to "mv /sys/sun/conf.c.xbox /sys/sun/conf.c". With more 
        differences than just audio_4231 and xbox devices,you must merge the
	two files to create a version of conf.c that is their superset. 

3. Rebuild the kernel and reboot the system.

	Refer to the System Administration Manual for information about
	building and booting new kernels using config(8) and make(1).
