diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-10-29 00:04:15 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-10-29 00:04:15 +0000 |
commit | 9c3381a0bf60596ef5bd4767646a36954061bd19 (patch) | |
tree | 7f4af91c559620d3e97c2f872328543b3af58900 /sys/arch/macppc/dev/tumbler.c | |
parent | c376c43fdb627dc0cdeefa8559053821e3cda6b5 (diff) |
native default parameters for i2s devices instead of 8kHz
mulaw mono, which few can even do.
"Please just get this in." brad@
Diffstat (limited to 'sys/arch/macppc/dev/tumbler.c')
-rw-r--r-- | sys/arch/macppc/dev/tumbler.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/tumbler.c b/sys/arch/macppc/dev/tumbler.c index e801e7d1a86..d6bc74b0ce6 100644 --- a/sys/arch/macppc/dev/tumbler.c +++ b/sys/arch/macppc/dev/tumbler.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tumbler.c,v 1.5 2008/04/21 00:32:42 jakemsr Exp $ */ +/* $OpenBSD: tumbler.c,v 1.6 2008/10/29 00:04:14 jakemsr Exp $ */ /*- * Copyright (c) 2001,2003 Tsubai Masanari. All rights reserved. @@ -65,6 +65,7 @@ void tumbler_defer(struct device *); void tumbler_set_volume(struct tumbler_softc *, int, int); void tumbler_set_bass(struct tumbler_softc *, int); void tumbler_set_treble(struct tumbler_softc *, int); +void tumbler_get_default_params(void *, int, struct audio_params *); int tas3001_write(struct tumbler_softc *, u_int, const void *); int tas3001_init(struct tumbler_softc *); @@ -103,7 +104,7 @@ struct audio_hw_if tumbler_hw_if = { i2s_get_props, i2s_trigger_output, i2s_trigger_input, - NULL + tumbler_get_default_params }; struct audio_device tumbler_device = { @@ -493,3 +494,9 @@ tumbler_getdev(void *h, struct audio_device *retp) *retp = tumbler_device; return (0); } + +void +tumbler_get_default_params(void *addr, int mode, struct audio_params *params) +{ + i2s_get_default_params(params); +} |