Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Problem: No sound coming out of the 3.5 jack on Cm4 nano b
#1
Greatings 
I managed to make everything work(usb, hat, tidal ext.) But can't find anything on how to make the aux to work.

A link to a post about that would be very helpful thanks
#2
Post the startup log and I'll have a look.

Code:
moodeutl -l
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#3
@Fabien32

Have you read the documentation which applies to the CM4 Nano B?

I did. It took me a quick Google search to find https://www.waveshare.com/wiki/CM4-NANO-B

Here's what it says under Audio

Quote:Audio Interface

The Audio of this device uses GPIO. If you use GPIO18 and GPIO19, you need to enable via the configuration file.

1. Edit config.txt.
sudo nano /boot/config.txt

2.Add the following content at the bottom.
dtparam=audio=on
dtoverlay=audremap,pins_18_19

3.Reboot the CM4

sudo reboot

In moOde, the config.txt already contains the dtparam=audio=on line. I'd guess you need also to include the audremap line in order to direct audio signals from the CM4 to the Nano B carrier board's audio jack. Note that moOde also makes changes to this file so custom changes you make possibly could be overwritten later on.

I'll bet no other moOde user has this particular board so you'll have to do the testing yourself. The Raspberry Pi CM4 IO board I have, for example, has no audio jack.

Regards,
Kent
#4
(11-13-2022, 12:44 AM)TheOldPresbyope Wrote: @Fabien32

Have you read the documentation which applies to the CM4 Nano B?

I did. It took me a quick Google search to find https://www.waveshare.com/wiki/CM4-NANO-B

Here's what it says under Audio

Quote:Audio Interface

The Audio of this device uses GPIO. If you use GPIO18 and GPIO19, you need to enable via the configuration file.

1. Edit config.txt.
sudo nano /boot/config.txt

2.Add the following content at the bottom.
dtparam=audio=on
dtoverlay=audremap,pins_18_19

3.Reboot the CM4

sudo reboot

In moOde, the config.txt already contains the dtparam=audio=on line. I'd guess you need also to include the audremap line in order to direct audio signals from the CM4 to the Nano B carrier board's audio jack. Note that moOde also makes changes to this file so custom changes you make possibly could be overwritten later on.

I'll bet no other moOde user has this particular board so you'll have to do the testing yourself. The Raspberry Pi CM4 IO board I have, for example, has no audio jack.

Regards,
Kent

I was looking for something like that exactly, but didn't think to search on Google. Thanks
I will try this
#5
(11-13-2022, 12:44 AM)TheOldPresbyope Wrote: @Fabien32

Have you read the documentation which applies to the CM4 Nano B?

I did. It took me a quick Google search to find https://www.waveshare.com/wiki/CM4-NANO-B

Here's what it says under Audio

Quote:Audio Interface

The Audio of this device uses GPIO. If you use GPIO18 and GPIO19, you need to enable via the configuration file.

1. Edit config.txt.
sudo nano /boot/config.txt

2.Add the following content at the bottom.
dtparam=audio=on
dtoverlay=audremap,pins_18_19

3.Reboot the CM4

sudo reboot

In moOde, the config.txt already contains the dtparam=audio=on line. I'd guess you need also to include the audremap line in order to direct audio signals from the CM4 to the Nano B carrier board's audio jack. Note that moOde also makes changes to this file so custom changes you make possibly could be overwritten later on.

I'll bet no other moOde user has this particular board so you'll have to do the testing yourself. The Raspberry Pi CM4 IO board I have, for example, has no audio jack.

Regards,
Kent
I did all that, and i even tried another line and writing the command line differently (because i am also talking with waveshare support) but still no sound from the Aux. Anything else?
#6
@Fabien32

Assuming you've booted with the additional /boot/config.txt line(s) suggested by WaveShare, do you see any useful diagnostic messages in the system log /var/log/syslog? Especially warning or error messages?

What does aplay report for audio device names?

Example for a player with a Creative Tech USB-BT/W2 audio adapter:


Code:
pi@m82p3a:~ $ aplay -L
null
   Discard all samples (playback) or generate zero samples (capture)
btaplay_dmix
plug_btaplay_dmix
_audioout
_audioout__
alsaequal
plug_alsaequal
btstream
camilladsp
crossfeed
plug_bs2b
eqfa12p
plug_eqfa12p
invpolarity
trx_send
hw:CARD=b1,DEV=0
   bcm2835 HDMI 1, bcm2835 HDMI 1
   Direct hardware device without any conversions
plughw:CARD=b1,DEV=0
   bcm2835 HDMI 1, bcm2835 HDMI 1
   Hardware device with all software conversions
default:CARD=b1
   bcm2835 HDMI 1, bcm2835 HDMI 1
   Default Audio Device
sysdefault:CARD=b1
   bcm2835 HDMI 1, bcm2835 HDMI 1
   Default Audio Device
dmix:CARD=b1,DEV=0
   bcm2835 HDMI 1, bcm2835 HDMI 1
   Direct sample mixing device
hw:CARD=Headphones,DEV=0
   bcm2835 Headphones, bcm2835 Headphones
   Direct hardware device without any conversions
plughw:CARD=Headphones,DEV=0
   bcm2835 Headphones, bcm2835 Headphones
   Hardware device with all software conversions
default:CARD=Headphones
   bcm2835 Headphones, bcm2835 Headphones
   Default Audio Device
sysdefault:CARD=Headphones
   bcm2835 Headphones, bcm2835 Headphones
   Default Audio Device
dmix:CARD=Headphones,DEV=0
   bcm2835 Headphones, bcm2835 Headphones
   Direct sample mixing device
hw:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   Direct hardware device without any conversions
plughw:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   Hardware device with all software conversions
default:CARD=W2
   Creative Bluetooth Audio W2, USB Audio
   Default Audio Device
sysdefault:CARD=W2
   Creative Bluetooth Audio W2, USB Audio
   Default Audio Device
front:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   Front output / input
surround21:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   4.0 Surround output to Front and Rear speakers
surround41:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   Direct sample mixing device
pi@m82p3a:~ $

Using this information I can test my W2 adapter using aplay and a WAV file [1]. 

I don't know what to expect for your carrier board but WaveShare should be able to tell you.

Regards,
Kent

[1] Here's my test:

First, an easy way to create a WAV file if you don't have one, all from the home directory on your moOde player and using the test FLAC file provided by Tim:

Code:
ffmpeg -i '/mnt/SDCARD/Stereo Test/LRMonoPhase4.flac' LRMonoPhase4.wav

And the test itself:

Code:
aplay -D default:CARD=W2 LRMonoPhase4.wav

et voila, I hear the "this is my voice..." test from the wireless headphones paired and connected to the W2 adapter.
#7
(11-12-2022, 10:50 PM)Fabien32 Wrote: Greatings 
I managed to make everything work(usb, hat, tidal ext.) But can't find anything on how to make the aux to work.

A link to a post about that would be very helpful thanks

Reboot and then post the startup log.

Code:
Code:
moodeutl -l

ETA: If you are unwilling to post the startup log then thread will be closed.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#8
Wait, I just reread your original post with caffeine-enhanced eyes.

Quote:I managed to make everything work(usb, hat, tidal ext.) But can't find anything on how to make the aux to work.

Calling it "the aux" --- are you expecting this audio-output jack to be an input?

Regards,
Kent
#9
(11-14-2022, 03:02 PM)TheOldPresbyope Wrote: Wait, I just reread your original post with caffeine-enhanced eyes.

Quote:I managed to make everything work(usb, hat, tidal ext.) But can't find anything on how to make the aux to work.

Calling it "the aux" --- are you expecting this audio-output jack to be an input?

Regards,
Kent

no, I am trying to connect headphones to it. i want to listen to music without having to connect a dac
#10
i got it  to  work , so thank you very much


Forum Jump: