summaryrefslogtreecommitdiff
path: root/sys/dev/pci/neo.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/neo.c')
-rw-r--r--sys/dev/pci/neo.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/pci/neo.c b/sys/dev/pci/neo.c
index 1dd62e4e5ac..2baccef69de 100644
--- a/sys/dev/pci/neo.c
+++ b/sys/dev/pci/neo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: neo.c,v 1.21 2008/04/21 00:32:43 jakemsr Exp $ */
+/* $OpenBSD: neo.c,v 1.22 2008/05/29 02:10:01 jakemsr Exp $ */
/*
* Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
@@ -185,6 +185,7 @@ int neo_open(void *, int);
void neo_close(void *);
int neo_query_encoding(void *, struct audio_encoding *);
int neo_set_params(void *, int, int, struct audio_params *, struct audio_params *);
+void neo_get_default_params(void *, int, struct audio_params *);
int neo_round_blocksize(void *, int);
int neo_trigger_output(void *, void *, void *, int, void (*)(void *),
void *, struct audio_params *);
@@ -280,7 +281,7 @@ struct audio_hw_if neo_hw_if = {
neo_get_props,
neo_trigger_output,
neo_trigger_input,
- NULL
+ neo_get_default_params
};
@@ -829,6 +830,12 @@ neo_query_encoding(addr, fp)
}
}
+void
+neo_get_default_params(void *addr, int mode, struct audio_params *params)
+{
+ ac97_get_default_params(params);
+}
+
/* Todo: don't commit settings to card until we've verified all parameters */
int
neo_set_params(addr, setmode, usemode, play, rec)