diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-05-25 23:59:34 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-05-25 23:59:34 +0000 |
commit | 25c56bfecc8cfd48beae2373d3295d2a2d74994f (patch) | |
tree | d5331f7533b47eb0533332eab097980a67dd6a1d /sys/dev/pci/auich.c | |
parent | f0cdbe4f7744702991b761684e14a7e861e6663d (diff) |
use ac97 default parameters for auich(4), auixp(4) and auvia(4).
they may have codecs which only handle 48kHz sampling rates.
ok ratchov@
Diffstat (limited to 'sys/dev/pci/auich.c')
-rw-r--r-- | sys/dev/pci/auich.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c index 57e2c4a7014..b69877153fe 100644 --- a/sys/dev/pci/auich.c +++ b/sys/dev/pci/auich.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auich.c,v 1.72 2008/04/21 00:32:43 jakemsr Exp $ */ +/* $OpenBSD: auich.c,v 1.73 2008/05/25 23:59:33 jakemsr Exp $ */ /* * Copyright (c) 2000,2001 Michael Shalayeff @@ -304,6 +304,7 @@ int auich_trigger_input(void *, void *, void *, int, void (*)(void *), int auich_alloc_cdata(struct auich_softc *); int auich_allocmem(struct auich_softc *, size_t, size_t, struct auich_dma *); int auich_freemem(struct auich_softc *, struct auich_dma *); +void auich_get_default_params(void *, int, struct audio_params *); void auich_powerhook(int, void *); @@ -334,7 +335,7 @@ struct audio_hw_if auich_hw_if = { auich_get_props, auich_trigger_output, auich_trigger_input, - NULL + auich_get_default_params }; int auich_attach_codec(void *, struct ac97_codec_if *); @@ -635,6 +636,12 @@ auich_close(v) { } +void +auich_get_default_params(void *addr, int mode, struct audio_params *params) +{ + ac97_get_default_params(params); +} + int auich_query_encoding(v, aep) void *v; |