hdspmixer: Add RME HDSPe AES and AES32 support.

Code provided by  Fredrik Lingvall <fredrik.lingvall@gmail.com>

It seems the PCIe (AES) and PCI (AES32) versions behave the same, so we
can kill two birds with one stone.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Adrian Knoth 2011-02-07 18:55:25 +01:00 committed by Takashi Iwai
parent cef20c040c
commit 69991756aa
6 changed files with 52 additions and 0 deletions

View file

@ -46,6 +46,7 @@ static void readregisters_cb(void *arg)
if ((HDSPeMADI == w->cards[w->current_card]->type) ||
(HDSPeAIO == w->cards[w->current_card]->type) ||
(HDSP_AES == w->cards[w->current_card]->type) ||
(HDSPeRayDAT == w->cards[w->current_card]->type)) {
if ((err = snd_hwdep_ioctl(hw, SNDRV_HDSPM_IOCTL_GET_PEAK_RMS, (void *)&hdspm_peak_rms)) < 0) {
fprintf(stderr, "HwDep ioctl failed. Metering stopped\n");
@ -552,6 +553,15 @@ void HDSPMixerWindow::restoreDefaults(int card)
maxdest[2] = 8;
num_modes = 3;
break;
case HDSP_AES: /* these cards support full channel count at all modes */
chnls[0] = 16;
chnls[1] = 16;
chnls[2] = 16;
maxdest[0] = 16;
maxdest[1] = 16;
maxdest[2] = 16;
num_modes = 3;
break;
case HDSPeAIO:
chnls[0] = 14;
chnls[1] = 10;