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

Audio Configuration

SigmaDSP & SigmaStudio eogut Mar 5, 2024 00:00 3 replies Original on forum ↗
Subscribe
eogut Question
Mar 5, 2024 00:00

I have been trying to verify audio capture and playback functionality (using ADAU1761 codec and NOT HDMI) for the past few days.

So far I could get the board to playback audio from line in to line out & hph out but audio capture through mic & line in are not working. And I couldn't play audio or speaker-test on it.

which settings should i change to play audio and capture?

you can see some settings of my device below

zed_aud:~$ amixer -c0 scontrols
Simple mixer control 'Headphone',0
Simple mixer control 'Headphone Bias',0
Simple mixer control 'Lineout',0
Simple mixer control 'Mic Bias Mode',0
Simple mixer control 'Aux',0
Simple mixer control 'Mono',0
Simple mixer control 'Playback Bias',0
Simple mixer control 'Playback De-emphasis',0
Simple mixer control 'Capture Bias',0
Simple mixer control 'Capture Boost',0
Simple mixer control 'Capture Mux',0
Simple mixer control 'ADC Bias',0
Simple mixer control 'ADC High Pass Filter',0
Simple mixer control 'DAC Bias',0
Simple mixer control 'DAC Mono-Stereo-Mode',0
Simple mixer control 'DAC Playback Mux',0
Simple mixer control 'Digital',0
Simple mixer control 'Input 1',0
Simple mixer control 'Input 2',0
Simple mixer control 'Input 3',0
Simple mixer control 'Input 4',0
Simple mixer control 'Left LR Playback Mixer Left',0
Simple mixer control 'Left LR Playback Mixer Right',0
Simple mixer control 'Left Playback Mixer Aux Bypass',0
Simple mixer control 'Left Playback Mixer Left Bypass',0
Simple mixer control 'Left Playback Mixer Left DAC',0
Simple mixer control 'Left Playback Mixer Right Bypass',0
Simple mixer control 'Left Playback Mixer Right DAC',0
Simple mixer control 'Right LR Playback Mixer Left',0
Simple mixer control 'Right LR Playback Mixer Right',0
Simple mixer control 'Right Playback Mixer Aux Bypass',0
Simple mixer control 'Right Playback Mixer Left Bypass',0
Simple mixer control 'Right Playback Mixer Left DAC',0
Simple mixer control 'Right Playback Mixer Right Bypass',0
Simple mixer control 'Right Playback Mixer Right DAC',0

zed_aud:~$ amixer -c 0
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 63
Mono:
Front Left: Playback 63 [100%] [6.00dB] [off]
Front Right: Playback 63 [100%] [6.00dB] [off]
Simple mixer control 'Headphone Bias',0
Capabilities: enum
Items: 'Normal operation' 'Extreme power saving' 'Enhanced performance' 'Power saving'
Item0: 'Normal operation'
Simple mixer control 'Lineout',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 63
Mono:
Front Left: Playback 0 [0%] [-57.00dB] [off]
Front Right: Playback 0 [0%] [-57.00dB] [off]
Simple mixer control 'Mic Bias Mode',0
Capabilities: enum
Items: 'Normal operation' 'High performance'
Item0: 'Normal operation'
Simple mixer control 'Aux',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 7
Front Left: Capture 7 [100%] [6.00dB]
Front Right: Capture 7 [100%] [6.00dB]
Simple mixer control 'Mono',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 63
Mono: Playback 37 [59%] [-20.00dB] [on]
Simple mixer control 'Playback Bias',0
Capabilities: enum
Items: 'Normal operation' 'Enhanced performance' 'Power saving'
Item0: 'Normal operation'
Simple mixer control 'Playback De-emphasis',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Capture Bias',0
Capabilities: enum
Items: 'Normal operation' 'Enhanced performance' 'Power saving'
Item0: 'Normal operation'
Simple mixer control 'Capture Boost',0
Capabilities: enum
Items: 'Normal operation' 'Boost Level 1' 'Boost Level 2' 'Boost Level 3'
Item0: 'Normal operation'
Simple mixer control 'Capture Mux',0
Capabilities: enum
Items: 'DSP' 'Decimator'
Item0: 'Decimator'
Simple mixer control 'ADC Bias',0
Capabilities: enum
Items: 'Normal operation' 'Extreme power saving' 'Enhanced performance' 'Power saving'
Item0: 'Normal operation'
Simple mixer control 'ADC High Pass Filter',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'DAC Bias',0
Capabilities: enum
Items: 'Normal operation' 'Extreme power saving' 'Enhanced performance' 'Power saving'
Item0: 'Normal operation'
Simple mixer control 'DAC Mono-Stereo-Mode',0
Capabilities: enum
Items: 'Stereo' 'Mono Left Channel (L+R)' 'Mono Right Channel (L+R)' 'Mono (L+R)'
Item0: 'Stereo'
Simple mixer control 'DAC Playback Mux',0
Capabilities: enum
Items: 'DSP' 'AIFIN'
Item0: 'DSP'
Simple mixer control 'Digital',0
Capabilities: pvolume cvolume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 255 Capture 0 - 255
Front Left: Playback 255 [100%] [0.00dB] Capture 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB] Capture 255 [100%] [0.00dB]
Simple mixer control 'Input 1',0
Capabilities: cvolume cvolume-joined
Capture channels: Mono
Limits: Capture 0 - 7
Mono: Capture 0 [0%] [-99999.99dB]
Simple mixer control 'Input 2',0
Capabilities: cvolume cvolume-joined
Capture channels: Mono
Limits: Capture 0 - 7
Mono: Capture 0 [0%] [-99999.99dB]
Simple mixer control 'Input 3',0
Capabilities: cvolume cvolume-joined
Capture channels: Mono
Limits: Capture 0 - 7
Mono: Capture 0 [0%] [-99999.99dB]
Simple mixer control 'Input 4',0
Capabilities: cvolume cvolume-joined
Capture channels: Mono
Limits: Capture 0 - 7
Mono: Capture 0 [0%] [-99999.99dB]
Simple mixer control 'Left LR Playback Mixer Left',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 2
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Left LR Playback Mixer Right',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 2
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Left Playback Mixer Aux Bypass',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 8
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Left Playback Mixer Left Bypass',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 8
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Left Playback Mixer Left DAC',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Left Playback Mixer Right Bypass',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 8
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Left Playback Mixer Right DAC',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Right LR Playback Mixer Left',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 2
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Right LR Playback Mixer Right',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 2
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Right Playback Mixer Aux Bypass',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 8
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Right Playback Mixer Left Bypass',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 8
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Right Playback Mixer Left DAC',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Right Playback Mixer Right Bypass',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 8
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Right Playback Mixer Right DAC',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]

Thanks ,

Sincerely Emre OGUT

Audio Signal Processors

Audio Products

amixer

software

codec

SigmaDSP Audio Processors

adau1761

Petalinux 2022.2

audio

Show More

DaveThib Reply
Mar 5, 2024 00:00

Hello Emre,

This is a lot to go through.

What hardware are you using?

Have you downloaded SigmaStudio? It helps you to see the signal flow all on a few window tabs.

Then you can capture the register settings and then figure out how to get the driver to set it up. The mixer and control numbers are on the diagram so that will help since it looks like the defines are using those names.

Dave T

eogut Reply
Mar 6, 2024 00:00

Hi Dave,

Thank you for your message. Here's the information you requested:

I am currently working with the Zedboard (adau1761) Rev F for my audio processing project. Yes, I have downloaded SigmaStudio and installed it on my system. I've successfully generated a bin file using SigmaStudio according to this link. However, I'm encountering difficulty integrating this file into my Petalinux image. Could you provide guidance on which directory I should place the bin file in? In the link there is an explanation below.

"It is also possible to install the firmware file on the root filesystem. This allows to update it without having to update the whole kernel. To install it on the root file system copy it to the “/lib/firmware/“ folder on the target system."

In my system there is no firmware folder under lib. You can see below.

zed_aud:/$ ls
bin boot dev etc home lib log_lock.pid media mnt proc run sbin sys tmp usr var
zed_aud:/$ cd lib/
zed_aud:/lib$ ls
depmod.d libcap.so libe2p.so libm.so.6 libnss_dns.so.2 libpam.so.0 librt.so.1 libtinfo.so.5.9 modprobe.d
ld-linux-armhf.so.3 libcap.so.2 libe2p.so.2 libmount.so.1 libnss_files.so.2 libpam.so.0.85.1 libsmartcols.so.1 libudev.so.1 modules
libBrokenLocale.so.1 libcap.so.2.51 libe2p.so.2.3 libmount.so.1.1.0 libnss_hesiod.so.2 libpam_misc.so libsmartcols.so.1.1.0 libudev.so.1.7.2 security
libanl.so.1 libcom_err.so libext2fs.so libncurses.so.5 libnss_mdns.so.2 libpam_misc.so.0 libss.so libusb-1.0.so.0 systemd
libblkid.so.1 libcom_err.so.2 libext2fs.so.2 libncurses.so.5.9 libnss_mdns4.so.2 libpam_misc.so.0.82.1 libss.so.2 libusb-1.0.so.0.3.0 udev
libblkid.so.1.1.0 libcom_err.so.2.1 libext2fs.so.2.4 libncursesw.so.5 libnss_mdns4_minimal.so.2 libpamc.so libss.so.2.0 libutil.so.1
libc.so.6 libcrack.so libfdisk.so.1 libncursesw.so.5.9 libnss_mdns6.so.2 libpamc.so.0 libsystemd.so.0 libwrap.so.0
libc_malloc_debug.so.0 libcrack.so.2 libfdisk.so.1.1.0 libnsl.so.1 libnss_mdns6_minimal.so.2 libpamc.so.0.82.1 libsystemd.so.0.32.0 libwrap.so.0.7.6
libcap-ng.so.0 libcrack.so.2.9.0 libgcc_s.so libnss_compat.so.2 libnss_mdns_minimal.so.2 libpthread.so.0 libthread_db.so.1 libz.so.1
libcap-ng.so.0.0.0 libdl.so.2 libgcc_s.so.1 libnss_db.so.2 libpam.so libresolv.so.2 libtinfo.so.5 libz.so.1.2.11

Additionally, I'm wondering if there is a generic bin file available for the adau1761 placed on the Zedboard. This would greatly facilitate my project. My goal is to route audio from the line-in input to my PC and vice versa, utilizing the line-out. Any insights or resources on achieving this would be greatly appreciated.

Lastly, I'm seeking sources or references that explain audio concepts, particularly regarding audio codecs. Having a better understanding of these concepts would greatly aid in my project development.

GT

auin Reply
Nov 6, 2024 00:00

Hi eogut ,

Did you get any feedback ?

Load the firmware on the target system

I got the same issue. instead of loading the firmware on the target system according to this link, i copied adau1761.bin file into /lib/firmware/ directory.

Welcome to Buildroot
buildroot login: root
#
#
# ls
#
#
#
#
# ls /lib/firmware/
adau1761.bin
#

I have this error:

# dmesg | grep adau
[ 4.137517] adau1761 0-0070: Direct firmware load for adau1761.bin failed with error -2
[ 4.151445] adau1761 0-0070: Could not find firmware file: -2

Please i need your feedback.

Best regards,