From 64337581e0aed5990bffe3e011f83a04f35e419e Mon Sep 17 00:00:00 2001 From: Jacob Meuser Date: Wed, 18 Nov 2009 21:13:18 +0000 Subject: * always move the same amount of data (256 frames) in the interrupt handler * round blocksizes to multiples of 256 frames * fix display of record.source.volume and add record.mic.preamp mixer controls * add recording support ok kettenis@. ok ratchov@ on a slightly different version. --- sys/dev/ic/ad1843reg.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/ad1843reg.h b/sys/dev/ic/ad1843reg.h index d5a742c5795..fd1172839b9 100644 --- a/sys/dev/ic/ad1843reg.h +++ b/sys/dev/ic/ad1843reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ad1843reg.h,v 1.1 2005/01/02 19:25:41 kettenis Exp $ */ +/* $OpenBSD: ad1843reg.h,v 1.2 2009/11/18 21:13:17 jakemsr Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -71,6 +71,8 @@ #define AD1843_CHANNEL_SAMPLE_RATE 15 #define AD1843_DA1C_SHIFT 8 +#define AD1843_ADRC_SHIFT 2 +#define AD1843_ADLC_SHIFT 0 #define AD1843_CLOCK1_SAMPLE_RATE 17 #define AD1843_CLOCK2_SAMPLE_RATE 20 @@ -81,6 +83,11 @@ #define AD1843_DA2F_SHIFT 10 #define AD1843_DA1F_MASK 0x0300 #define AD1843_DA1F_SHIFT 8 +#define AD1843_ADTLK 0x0010 +#define AD1843_ADRF_MASK 0x000c +#define AD1843_ADRF_SHIFT 2 +#define AD1843_ADLF_MASK 0x0003 +#define AD1843_ADLF_SHIFT 0 #define AD1843_PCM8 0 #define AD1843_PCM16 1 #define AD1843_ULAW 2 -- cgit v1.2.3