Skip to contentSkip to conversation

DAC Direct Mode on ALi 5451

DISCUSSION Fredrik Lingvall 2 participants 2 messages May 11, 2003

lore
Share & tools
lore
#0 lore raw

Hi!

The Cirrus Logic CS4299 audio chip used in the ALi 5451 chipset has a DAC Direct Mode which sends the DAC output directly to the line output drivers. Does anyone know how to enable this mode? I have tried the
alsamixer (and gnome-alsamixer) but there is no such switch in these
apps.

Background: I want to process the adio data from the ADC:s (eg. FIR filter the audio data) and then send the processed audio stream to the DAC:s and the line out on my laptop (Acer TM 636). To do this I must mute the PCM line in the mixer which otherwise feeds back into the ADC:s (see Figure 8.mixer diagram in: http://www.alsa-project.org/alsa/ftp/manuals/cirrus/cs4299-4.pdf)
but this also kills the PCM output. However, if the DAC Direct Mode bit is set (bit 8 in the AC Mode Control Register (5Eh)) the PCM stream will
be send to the line out by-passing the mixer.

Fredrik

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com

#1 lore raw
Quoted 8 lines · Fredrik Lingvall

Hi!

The Cirrus Logic CS4299 audio chip used in the ALi 5451 chipset has a DAC Direct Mode which sends the DAC output directly to the line output drivers. Does anyone know how to enable this mode? I have tried the alsamixer (and gnome-alsamixer) but there is no such switch in these apps.

Quoted 9 lines

Background: I want to process the adio data from the ADC:s (eg. FIR filter the audio data) and then send the processed audio stream to the DAC:s and the line out on my laptop (Acer TM 636). To do this I must mute the PCM line in the mixer which otherwise feeds back into the ADC:s (see Figure 8.mixer diagram in:
http://www.alsa-project.org/alsa/ftp/manuals/cirrus/cs4299-4.pdf)
but this also kills the PCM output. However, if the DAC Direct Mode bit is set (bit 8 in the AC Mode Control Register (5Eh)) the PCM stream will be send to the line out by-passing the mixer.

Is not this sequence enough to solve your problem?

- set Line to mute ('m' in alsamixer)
- set Line to capture (space in alsamixer)

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com