summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/onyx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/macppc/dev/onyx.c')
-rw-r--r--sys/arch/macppc/dev/onyx.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/onyx.c b/sys/arch/macppc/dev/onyx.c
index afb883f77a3..7a05325778d 100644
--- a/sys/arch/macppc/dev/onyx.c
+++ b/sys/arch/macppc/dev/onyx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: onyx.c,v 1.8 2008/04/21 00:32:42 jakemsr Exp $ */
+/* $OpenBSD: onyx.c,v 1.9 2008/10/29 00:04:14 jakemsr Exp $ */
/*-
* Copyright (c) 2005 Tsubai Masanari. All rights reserved.
@@ -72,6 +72,7 @@ int onyx_match(struct device *, void *, void *);
void onyx_attach(struct device *, struct device *, void *);
void onyx_defer(struct device *);
void onyx_set_volume(struct onyx_softc *, int, int);
+void onyx_get_default_params(void *, int, struct audio_params *);
struct cfattach onyx_ca = {
sizeof(struct onyx_softc), onyx_match, onyx_attach
@@ -108,7 +109,7 @@ struct audio_hw_if onyx_hw_if = {
i2s_get_props,
i2s_trigger_output,
i2s_trigger_input,
- NULL
+ onyx_get_default_params
};
struct audio_device onyx_device = {
@@ -206,3 +207,9 @@ onyx_set_volume(struct onyx_softc *sc, int left, int right)
kiic_write(sc->sc_i2c, PCM3052_I2C_ADDR,
PCM3052_REG_RIGHT_VOLUME, &data, 1);
}
+
+void
+onyx_get_default_params(void *addr, int mode, struct audio_params *params)
+{
+ i2s_get_default_params(params);
+}