Date: Sun, 26 Mar 2006 00:36:29 GMT From: Gheorghe Ardelean <ardelean@ww.uni-erlangen.de> To: freebsd-gnats-submit@FreeBSD.org Subject: sparc64/94940: add hooks to activate support for cs4231 audio Message-ID: <200603260036.k2Q0aT0o083447@www.freebsd.org> Resent-Message-ID: <200603260040.k2Q0eHn1018299@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 94940 >Category: sparc64 >Synopsis: add hooks to activate support for cs4231 audio >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-sparc64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 26 00:40:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Gheorghe Ardelean >Release: FreeBSD 6.1-PRERELEASE >Organization: >Environment: FreeBSD ultra1 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Sun Mar 26 03:55:59 CEST 2006 root@ultra1:/usr/src/sys/sparc64/compile/ULTRA1 sparc64 >Description: The support for cs4231 audio codec was added a while ago but the necessary hooks to activate this are still missing. >How-To-Repeat: >Fix: Add the following lines to the kernel definition file (e.g. GENERIC): device sound device "snd_cs4231" and apply this patches to the corresponding files (relative to /usr/src): --- ./sys/conf/NOTES.orig Thu Feb 23 03:13:30 2006 +++ ./sys/conf/NOTES Sun Mar 26 03:52:48 2006 @@ -1939,6 +1939,7 @@ # snd_audiocs: Crystal Semiconductor CS4231 SBus/EBus. Only # for sparc64. # snd_cmi: CMedia CMI8338/CMI8738 PCI. +# snd_cs4231: Crystal Semiconductor CS4231. # snd_cs4281: Crystal Semiconductor CS4281 PCI. # snd_csa: Crystal Semiconductor CS461x/428x PCI. (except # 4281) @@ -1976,6 +1977,7 @@ #device snd_au88x0 #device snd_audiocs device snd_cmi +device snd_cs4231 device snd_cs4281 device snd_csa device snd_ds1 --- ./sys/conf/files.orig Sun Mar 26 01:30:11 2006 +++ ./sys/conf/files Sun Mar 26 03:47:16 2006 @@ -843,6 +843,8 @@ dev/sound/pcm/sndstat.c optional sound dev/sound/pcm/sound.c optional sound dev/sound/pcm/vchan.c optional sound +dev/sound/sbus/cs4231.c optional snd_cs4231 sbus +dev/sound/sbus/cs4231.c optional snd_cs4231 ebus #dev/sound/usb/upcm.c optional snd_upcm usb dev/sound/usb/uaudio.c optional snd_uaudio usb dev/sound/usb/uaudio_pcm.c optional snd_uaudio usb --- ./sys/modules/sound/driver/Makefile.orig Fri Dec 30 20:55:54 2005 +++ ./sys/modules/sound/driver/Makefile Sun Mar 26 03:49:04 2006 @@ -3,7 +3,7 @@ .if ${MACHINE_ARCH} == "sparc64" SUBDIR = audiocs es137x .else -SUBDIR = als4000 ad1816 atiixp cmi cs4281 csa ds1 emu10k1 es137x ess +SUBDIR = als4000 ad1816 atiixp cmi cs4231 cs4281 csa ds1 emu10k1 es137x ess SUBDIR += fm801 ich maestro maestro3 mss neomagic sb16 sb8 sbc solo SUBDIR += t4dwave via8233 via82c686 vibes SUBDIR += driver uaudio after this compile a new kernel and reboot the system. The audio device shows up as: pcm0: <Sun Audiocs> mem 0xc000000-0xc0001ff irq 2020 on sbus0 pcm0: <CS4231A Codec Id. 10> It works nicely on my plain Ultra1. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603260036.k2Q0aT0o083447>