Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev Recognize the OF labels used for line ou...
details: https://anonhg.NetBSD.org/src/rev/6af844252a1f
branches: trunk
changeset: 366602:6af844252a1f
user: martin <martin%NetBSD.org@localhost>
date: Wed Jun 01 05:42:52 2022 +0000
description:
Recognize the OF labels used for line output and headphone output on a
G5 powermac 7,3.
diffstat:
sys/arch/macppc/dev/snapper.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 3dd87f21d3e7 -r 6af844252a1f sys/arch/macppc/dev/snapper.c
--- a/sys/arch/macppc/dev/snapper.c Wed Jun 01 05:06:45 2022 +0000
+++ b/sys/arch/macppc/dev/snapper.c Wed Jun 01 05:42:52 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: snapper.c,v 1.61 2021/08/07 16:18:58 thorpej Exp $ */
+/* $NetBSD: snapper.c,v 1.62 2022/06/01 05:42:52 martin Exp $ */
/* Id: snapper.c,v 1.11 2002/10/31 17:42:13 tsubai Exp */
/* Id: i2s.c,v 1.12 2005/01/15 14:32:35 tsubai Exp */
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: snapper.c,v 1.61 2021/08/07 16:18:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: snapper.c,v 1.62 2022/06/01 05:42:52 martin Exp $");
#include <sys/param.h>
#include <sys/audioio.h>
@@ -2200,10 +2200,12 @@
}
}
if (strcmp(audio_gpio, "lineout-mute") == 0 ||
- strcmp(name, "lineout-mute") == 0)
+ strcmp(name, "lineout-mute") == 0 ||
+ strcmp(name, "line-output-mute") == 0)
lineout_mute = addr;
if (strcmp(audio_gpio, "lineout-detect") == 0 ||
- strcmp(name, "lineout-detect") == 0) {
+ strcmp(name, "lineout-detect") == 0 ||
+ strcmp(name, "line-output-detect") == 0) {
uint32_t act = 0;
lineout_detect = addr;
OF_getprop(gpio, "audio-gpio-active-state", &act, 4);
Home |
Main Index |
Thread Index |
Old Index