ΣSigmaStudio Ask AI Русский Log in

ADAU1452 for Digital Volume control

SigmaDSP & SigmaStudio gr4eme Mar 31, 2014 00:00 8 replies Original on forum ↗
Thread Summary

Thread Summary

The user inquired about using the ADAU1452 for real-time attenuation of a 192/24 signal without quality loss. The engineer explained that while the ADAU1452 supports 32-bit I/O, SigmaStudio does not yet integrate 32-bit I/O, and a 32-bit DAC is required to maintain signal integrity after attenuation. Dithering can improve the perceived quality of attenuated signals, but practical limitations of 24-bit converters mean that losing a few bits often does not affect the audible quality.
AI Generated Content
Subscribe
gr4eme Question
Mar 31, 2014 00:00

Hey Guys,

I have been doing a bit of reading on digital volume control and the good/bad, now i seem to run across dithering used as a solution and talk of 32bit devices doing this without interfering in the 24bit audio stream. Would the 1452 be a possible solution to solving the issues?

Can i pull a 192/24 signal into the 1452 real time attenuate and spit it back out in 192/24 with no loss in quality?

Im new to the whole digital world so any explanations would be gratefully recieved

Thanks Guys

Audio Signal Processors

adau1452

SigmaDSP Audio Processors

gr4eme Reply
Apr 10, 2014 00:00

Can any one explain this?

KJBob Reply
Apr 13, 2014 00:00

Hello Graeme

Dithering can typically add a bit or two of additional resolution when digitizing an analog signal -- see Chapter 3, page 38 of Steven W. Smith's book The Scientist and Engineer's Guide to Digital Signal Processing, available here: http://www.analog.com/en/content/scientist_engineers_guide/fca.html

I'm afraid I'm not familiar with its use in volume control. However, I don't see how it's possible to attenuate the 24-bit stream you described while maintaining full quality. Regardless of the processor's word length, the 24-bit serial link limits your resolution to 24 bits at full volume. Each 6 dB of attenuation inactivates a high-order bit -- at 24 dB attenuation you have a 20-bit signal remaining. This becomes very clear if we examine two I2S streams, the left one at full volume, the second attenuated. We see less activity in the attenuated stream:

If you could share the dithering reference you mentioned, that may help me understand the issues involved.

Best regards,

Bob

c38d1ef820f287a267084c36040eb510.jpg
c38d1ef820f287a267084c36040eb510.jpg
c38d1ef820f287a267084c36040eb510.jpg-258x133.jpg
c38d1ef820f287a267084c36040eb510.jpg-258x133.jpg
6ab9a7dab1a4baa151045355da20721a.jpg
6ab9a7dab1a4baa151045355da20721a.jpg
6ab9a7dab1a4baa151045355da20721a.jpg-258x130.jpg
6ab9a7dab1a4baa151045355da20721a.jpg-258x130.jpg
gr4eme Reply
Apr 13, 2014 00:00

Hi Bob

I have attached the article

Its based on 16 bit signals and you can see he explains when you add an 8 bit gain factor it becomes a 24bit word length, I'm guessing at the time the article was written the 24 bit DAC's were in their infancy.

My question is if we take the same 8 bit gain factor and add it to the 24 bit signal am i correct in thinking that the word length would be 32 bits?

If thats correct can i process this in the 1445 to leave me a signal thats both attenuated and still at its core a 24 bit signal?

My digital background os pretty limited so I'm probably missing something here I'm sure

Graeme

Yagami Reply
Apr 14, 2014 00:00

Hi Graeme,

In theory you can do this. The ADAU1452's hardware supports 32 bit audio I/O on the serial ports, but it's my understanding that the corresponding input/outputs have not yet been integrated into SigmaStudio.

Still, you would need a 32-bit DAC on the output side. Otherwise, you're losing bits (and signal integrity along with it), like KJBob mentioned.

Remember, attenuation effectively bit-shifts the signal. This means that bits containing information are shifted down, and that information will be lost if those bits are not output by the serial port.

I can make a diagram if you're still having trouble picturing this. Let me know.

gr4eme Reply
Apr 14, 2014 00:00

Thanks Yagami

I thought this might be the case, the whole system would need to be 32bit. I was hoping there was maybe a way to re package the signal after attenuation.

Im curious how this is done from computer based software. A lot of studios are going all computer based and using digital outputs to monitors.

Graeme

KJBob Reply
Apr 15, 2014 00:00

Hi Graeme,

Thank you for sharing the article, it's interesting. The author got a surprising amount of benefit from high-frequency dithering the eight-bit samples. You can partially demonstrate this effect with your -1452 mini eval board. The circuit below boosts the audio level to 30 bits (I left two extra bits for headroom). Then you adjust attenuation as desired, after which the dithering is added. Next it purposely decimates this signal by shifting the last 16 bits overboard. If you set the attenuator to -60 dB or so, there aren't many bits left and you can hear the quantization effect. Switching the noise (dither) source ON makes it sound better, although the dither in this case is in-band and thus audible. The eval board's AD1938 codec is hardwired for 48KHz, thus we cannot explore the further benefit of 192KHz operation with ultrasonic dither.

Note that many A-D and D-A converters, though accommodating 24 bits-wide signals, do not actually perform to that level. 24 bits implies a dynamic range of about 144dB, but for example the AD1938 codec is rated for about 110dB (about 19 bits worth). Thus in practice you can lose a few bits and not hear the difference at all.

Best regards,

Bob

2e7a133d19298052ded74ce370add3b8.jpg
2e7a133d19298052ded74ce370add3b8.jpg
2e7a133d19298052ded74ce370add3b8.jpg-564x172.jpg
2e7a133d19298052ded74ce370add3b8.jpg-564x172.jpg
Yagami Reply
Apr 15, 2014 00:00

Robert Blowsky wrote:

Note that many A-D and D-A converters, though accommodating 24 bits-wide signals, do not actually perform to that level. 24 bits implies a dynamic range of about 144dB, but for example the AD1938 codec is rated for about 110dB (about 19 bits worth). Thus in practice you can lose a few bits and not hear the difference at all.

Good point, KJBob. I was about to mention that as well.

16 bit audio has a theoretical noise floor of -96 dBFS, and most ADCs and DACs can out-perform that. However, the theoretical noise floor of 24 bit audio is -144 dBFS, and most ADCs and DACs don't even come close! Thanks to thermal noise (electrons moving around due to heat) and all of the electromagnetic noise in our environment (radio, solar interference, EMI/EMC in electronics, and so forth), 24 bits is pretty much always overkill. Going for 32 bits in an audio application doesn't really make sense to me.

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin