Re: How to configure a U24XL adc/dac for digital input

From: Craig Leres <leres_at_freebsd.org>
Date: Sat, 02 Mar 2024 02:58:11 UTC
On 3/1/24 13:50, Craig Leres wrote:
> I've been using an ESI U24XL for about 8 years to simultaneously record 
> and play back S/PDIF (using in-house C programs under FreeBSD). Recently 
> recording stopped working (playback is still fine) and I believe the 
> cause is that the device has somehow switched to using its analog input.

I figured out how to fix this; some how I clobbered/reset my mixer 
config for the U24XL. Appended shows how I fixed it... Sorry for the noise.

		Craig

// starting point
tiny 25 # mixer -f /dev/mixer2
Mixer vol      is currently set to  75:75
Mixer pcm      is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer pcm2     is currently set to 100:100
Recording source: line

// change default input
tiny 27 # mixer -f /dev/mixer2 =rec pcm2
Recording source: pcm2

// verifiy
tiny 28 # mixer -f /dev/mixer2
Mixer vol      is currently set to  75:75
Mixer pcm      is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer pcm2     is currently set to 100:100
Recording source: pcm2

// view saved mixer state
tiny 29 # cat /var/db/mixer2-state ; echo ''
vol 75:75 pcm 75:75 line 75:75 pcm2 100:100 =rec line

// update
tiny 30 # mixer -f /dev/mixer2 -s >  /var/db/mixer2-state

// view new mixer state
tiny 29 # cat /var/db/mixer2-state ; echo ''
vol 75:75 pcm 75:75 line 75:75 pcm2 100:100 =rec pcm2