diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-11-04 20:55:44 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-11-04 20:55:44 +0000 |
commit | 9a86b5ba260258b5ba3bb8e151309cc4a443f84f (patch) | |
tree | 3c7d5852538f7adeb3ab085fe38bf5e2a74654a1 /sys/dev/pci/azalia.h | |
parent | 0cdfe2144d480af8907ca96f2ab595f144a87c13 (diff) |
implement azalia_create_encodings, which scans through the supported
formats and creates an array of unique encodings. use the array in
azalia_query_encoding.
in other words, no more duplicate encodings in `audioctl encodings`.
Diffstat (limited to 'sys/dev/pci/azalia.h')
-rw-r--r-- | sys/dev/pci/azalia.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/azalia.h b/sys/dev/pci/azalia.h index c6a5a6b8101..9f0e6291f0e 100644 --- a/sys/dev/pci/azalia.h +++ b/sys/dev/pci/azalia.h @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.h,v 1.18 2008/11/04 07:58:43 jakemsr Exp $ */ +/* $OpenBSD: azalia.h,v 1.19 2008/11/04 20:55:43 jakemsr Exp $ */ /* $NetBSD: azalia.h,v 1.6 2006/01/16 14:15:26 kent Exp $ */ /*- @@ -614,7 +614,8 @@ typedef struct codec_t { struct audio_format* formats; int nformats; - struct audio_encoding_set *encodings; + struct audio_encoding* encs; + int nencs; uint32_t *extra; u_int rate; |