Skip to contentSkip to conversation

azt3328.c recording, joystick etc.

PATCH New Andreas Mohr 1 participant 1 message Nov 16, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 azt3328.c recording, joystick etc.

Hello all,

- add recording input select and volume (that one was the missing part :)
- add smart joystick configuration part (autodetect etc.)
- add more PCI IDs
- silence MIDI IRQ output

This patch finally allowed me to record e.g. wave playback, albeit with an *insane* amount of clicks and pops (my K7S5A DMA hardware behaviour *really* sucks for this card :-\).

In other words: the azt3328 driver is now fairly complete, with the only major missing part being the power management stuff... (maybe I'm also going to tackle that one soon, dunno yet, depends on how hot the chip runs in idle operation)

Signature · 2 lines
Andreas Mohr                        Stauferstr. 6, D-71272 Renningen, Germany
Tel. +49 7159 800604                http://mohr.de.tt

Index: alsa-driver/pci/azt3328.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/pci/azt3328.h,v retrieving revision 1.1

pci/azt3328.h +10 -2
diff -u -r1.1 azt3328.h
@@ -134,8 +134,16 @@
 #define IDX_MIXER_AUX           0x14
 #define IDX_MIXER_WAVEOUT       0x16
 #define IDX_MIXER_FMSYNTH       0x18
-#define IDX_MIXER_WAVEIN        0x1a
-#define IDX_MIXER_REC_MASTER    0x1c
+#define IDX_MIXER_REC_SELECT    0x1a
+  #define MIXER_REC_SELECT_MIC		0x00
+  #define MIXER_REC_SELECT_CD		0x01
+  #define MIXER_REC_SELECT_VIDEO	0x02
+  #define MIXER_REC_SELECT_AUX		0x03
+  #define MIXER_REC_SELECT_LINEIN	0x04
+  #define MIXER_REC_SELECT_MIXSTEREO	0x05
+  #define MIXER_REC_SELECT_MIXMONO	0x06
+  #define MIXER_REC_SELECT_MONOIN	0x07
+#define IDX_MIXER_REC_VOLUME    0x1c
 #define IDX_MIXER_ADVCTL1       0x1e
   /* unlisted bits are unmodifiable */
   #define MIXER_ADVCTL1_3DWIDTH_MASK	0x000e

Index: alsa-driver/pci/azt3328.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/pci/azt3328.c,v retrieving revision 1.2

pci/azt3328.c +202 -80

438 lines not on this page · raw message