Module Name: src Committed By: nat Date: Sun Oct 13 12:34:56 UTC 2024
Modified Files: src/sys/arch/mac68k/obio: ascaudio.c Log Message: Match against an EASC chip that reports a different version id. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/mac68k/obio/ascaudio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mac68k/obio/ascaudio.c diff -u src/sys/arch/mac68k/obio/ascaudio.c:1.1 src/sys/arch/mac68k/obio/ascaudio.c:1.2 --- src/sys/arch/mac68k/obio/ascaudio.c:1.1 Wed Mar 13 07:55:28 2024 +++ src/sys/arch/mac68k/obio/ascaudio.c Sun Oct 13 12:34:56 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: ascaudio.c,v 1.1 2024/03/13 07:55:28 nat Exp $ */ +/* $NetBSD: ascaudio.c,v 1.2 2024/10/13 12:34:56 nat Exp $ */ /*- * Copyright (c) 2017, 2023 Nathanial Sloss <nathanialsl...@yahoo.com.au> @@ -29,7 +29,7 @@ /* Based on pad(4) and asc(4) */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ascaudio.c,v 1.1 2024/03/13 07:55:28 nat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ascaudio.c,v 1.2 2024/10/13 12:34:56 nat Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -134,7 +134,8 @@ static const struct audio_hw_if ascaudio .get_locks = ascaudio_get_locks, }; -#define EASC_VER 0xb0 +#define EASC_VER 0xb0 +#define EASC_VER2 0xbb enum { ASC_OUTPUT_CLASS, @@ -244,6 +245,9 @@ ascaudioattach(device_t parent, device_t sc->sc_rate /= 2; } + if (sc->sc_ver == EASC_VER2) + sc->sc_ver = EASC_VER; + if (sc->sc_ver != EASC_VER) printf(": Apple Sound Chip"); else