Post Go back to editing

zedboard kuiper no headphone output from gnuradio or audacity

Category: Software
Product Number: kuiper
Hi,
 
I am using the latest release ( March 2025 ) of kuiper for zedboard but I can not get any headphone output from either audacity or gnuradio, in fact I have never been able to get headphone audio with any version of  kuiper.
The audacity does say there is an "assertion failed ! ./src/AudioIO.cpp(973):assert "false" Failed in AudioIO()." It did not give this error in previous versions of kuiper but as I said  there was never any audio anyway. I have tried it on 2 zedboards so I do not think it is a hardware issue. any help you can give me with this would be appreciated even if it to try a different way to force headphone audio just to prove the alsa setup is correct.( BTW playback device under audacity is ZED ADAU1761... hw(1,0).
 
Tony Smith.
  • Hi Tony

    To check if the ADAU1761 is recognized, try running the ALSA commands aplay -l or arecord -l on the ZED board.  This will list the playback or record devices in the system.  The ADAU1761 should be returned;  in my case it is card 1.

    If that works, try adding a pair of headphones to the headphone jack of the ZED board.  You can run the ALSA command speaker-test to generate a test tone and verify that it is working.  This command will play a stereo 1khz tone at 48kHz, alternating between the channels:

    speaker-test -t sine -f 1000 -D hw:1,0 -r 48000 -c 2 -F S32_LE

    Now you won't hear anything unless you configure the playback path on the codec.  Run the ALSA command amixer -c 1 (replace the '1' with your card number), and you will get a list of all the controls that can be set on this codec, and their current status.  There are a lot of them.   You'll need the ADAU1761 datasheet and figure 32 (record path) and figure 44 (playback path) to work out what they all mean and how to set them.   You can use the amixer commands to do the configuration.   Or you can run alsamixer -c 1, and use the graphical tool to configure the record and playback paths.  

    When you have the playback path configured correctly, you can run the speaker-test again and you will hear the tone through the headphones.

    Now getting the audio to a tool like gnuradio or Audacity is another thing. I don't think we have an example for that, so it's outside the scope of what I can offer.  If gnuradio were running directly on the ZED, you would be able to just reference the ADAU1761 as hw:1,0 in the audio source and sink blocks.  But you probably mean that you have these apps running on a host machine.  So you'll need to get the audio shipped over the network to your host.  I'd probably try setting up a network socket using UDP on the ZED, and then use the UDP source and sink blocks in gnuradio. I'm sure there are other ways to do it as well.  I'm not familiar at all with Audacity.  Perhaps one of the community members with more experience using these tools will chime in.  Hope this helps.

    Regards

    Andy