Thank you for your donation!


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


Solved: IQaudio Pi-AMP+ mute always on
#1
Hi everybody,

I've been willing to reuse my old setup, which consists of a Raspi 3, coupled to an IQaudio Pi-Dac+ and an IQaudio Pi-Amp+, as a standalone music player for our office at home, for the Mrs. and myself.

In the past, I've used the setup to play music on my stereo through the Pi-Dac+ and it worked perfectly. I also used the Pi-Amp+ with my speakers and it used to work as well.

Now, it's been hours since I was looking for a way to get the damn Pi-Amp+ to actually come out of mute, with absolutely no positive result.

What am I missing here?

Here's the result of moodeutil -l :

Code:
frederic@moode:/var $ moodeutl -l
20240811 155407 worker: --
20240811 155408 worker: -- Start moOde 9 series
20240811 155408 worker: --
20240811 155408 worker: Successfully daemonized
20240811 155408 worker: Wait for Linux startup
20240811 155414 worker: Linux startup complete
20240811 155414 worker: Boot config is ok
20240811 155415 worker: Session loaded
20240811 155418 worker: Package locks applied
20240811 155420 worker: File check complete
20240811 155420 worker: Debug logging off
20240811 155420 worker: --
20240811 155420 worker: -- System
20240811 155420 worker: --
20240811 155422 worker: Host name:     moode
20240811 155422 worker: RPi model:     Pi-3B+ 1.3 1GB
20240811 155422 worker: moOde release: 9.0.6 2024-08-03
20240811 155422 worker: RaspiOS:       12.6 Bookworm 64-bit
20240811 155422 worker: Linux Kernel:  6.6.31 64-bit
20240811 155422 worker: MPD version:   0.23.14
20240811 155422 worker: User id:       frederic
20240811 155422 worker: Home folder:   /home/frederic
20240811 155422 worker: Time zone:     Europe/Paris
20240811 155422 worker: Kbd layout:    fr
20240811 155422 worker: HDMI ports(s): on
20240811 155422 worker: HDMI-CEC:      off
20240811 155422 worker: Sys LED0:      on
20240811 155422 worker: Sys LED1:      on
20240811 155422 worker: Reduce power:  n/a
20240811 155422 worker: CPU governor:  ondemand
20240811 155422 worker: Integ audio:   vc4-kms-v3d
20240811 155422 worker: --
20240811 155422 worker: -- Network
20240811 155422 worker: --
20240811 155422 worker: Eth0
20240811 155422 worker: Ethernet: adapter exists
20240811 155422 worker: Ethernet: timeout off
20240811 155423 worker: Ethernet: address not assigned
20240811 155423 worker: Wlan0
20240811 155437 worker: Wireless: adapter exists
20240811 155437 worker: Wireless: country FR
20240811 155437 worker: Wireless: SSID    Freebox-C77A86
20240811 155437 worker: Wireless: other   None
20240811 155437 worker: Wireless: timeout up to 90 secs
20240811 155437 worker: Wireless: connect to Freebox-C77A86
20240811 155438 worker: Wireless: method  dhcp
20240811 155438 worker: Wireless: address 192.168.1.150
20240811 155438 worker: Wireless: netmask 255.255.255.0
20240811 155438 worker: Wireless: gateway 192.168.1.254
20240811 155438 worker: Wireless: pri DNS 192.168.1.254
20240811 155438 worker: Wireless: domain  none found
20240811 155438 worker: --
20240811 155438 worker: -- File sharing
20240811 155438 worker: --
20240811 155438 worker: SMB file sharing:  off
20240811 155438 worker: NFS file sharing:  on
20240811 155438 worker: DLNA file sharing: on
20240811 155438 worker: --
20240811 155438 worker: -- Special configs
20240811 155438 worker: --
20240811 155438 worker: Plexamp:          not installed
20240811 155438 worker: RoonBridge:       not installed
20240811 155438 worker: Allo Piano 2.1:   not detected
20240811 155438 worker: Allo Boss 2:      not detected, OLED script ok
20240811 155438 worker: IQaudIO AMP+:     unmuted
20240811 155438 worker: --
20240811 155438 worker: -- ALSA debug
20240811 155438 worker: --
20240811 155438 worker: Cards:  0:vc4hdmi         1:IQaudIODAC      2:empty           3:empty          
20240811 155438 worker:         4:empty           5:empty           6:empty           7:empty          
20240811 155439 worker: Mixers: 0:none            1:(Digital)       2:none            3:none            
20240811 155439 worker:         4:none            5:none            6:none            7:none            
20240811 155439 worker: --
20240811 155439 worker: -- Audio configuration
20240811 155439 worker: --
20240811 155439 worker: Audio device:  1:IQaudIO Pi-AMP+
20240811 155439 worker: ALSA card:     has not been reassigned
20240811 155439 worker: MPD config:    update not needed
20240811 155439 worker: ALSA output:   I2S
20240811 155439 worker: ALSA mode:     Default (plughw)
20240811 155439 worker: ALSA mixer     Digital
20240811 155440 worker: ALSA volume:   70% (-31.50dB)
20240811 155440 worker: ALSA maxvol:   100%
20240811 155440 worker: ALSA loopback: off
20240811 155440 worker: MPD mixer      Hardware
20240811 155440 worker: Audio formats: S16_LE, S24_LE, S32_LE
20240811 155440 worker: CamillaDSP:    off
20240811 155440 worker: CDSP volume:   0dB
20240811 155440 worker: CDSP volrange: 60dB
20240811 155440 worker: --
20240811 155440 worker: -- MPD startup
20240811 155440 worker: --
20240811 155441 worker: MPD service:        started
20240811 155441 worker: MPD port 6600:      accepting connections
20240811 155441 worker: MPD ALSA Default:   on
20240811 155441 worker: MPD ALSA Bluetooth: off
20240811 155441 worker: MPD HTTP Server:    off
20240811 155442 worker: MPD volume:         30
20240811 155442 worker: Saved MPD vol:      -1
20240811 155442 worker: Saved SRC vol:      0
20240811 155442 worker: MPD crossfade:      off
20240811 155442 worker: MPD ignore CUE:     yes
20240811 155442 worker: MPD CDSP volsync:   off
20240811 155442 worker: --
20240811 155442 worker: -- Music sources
20240811 155442 worker: --
20240811 155442 worker: USB drives:     none
20240811 155442 worker: NVMe drives:    none
20240811 155442 worker: NAS source:     Musique (nfs)
20240811 155442 worker: --
20240811 155442 worker: -- Feature availability
20240811 155442 worker: --
20240811 155442 worker: Input select:    available, Source: MPD, Output: IQaudIO Pi-AMP+
20240811 155442 worker: Bluetooth:       available, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20240811 155442 worker: AirPlay:         available
20240811 155442 worker: Spotify Connect: available
20240811 155442 worker: Squeezelite:     available
20240811 155442 worker: UPnP client:     available
20240811 155442 worker: Plexamp:         not installed, ALSA maxvol: 100%
20240811 155442 worker: RoonBridge:      not installed
20240811 155442 worker: Multiroom:       available
20240811 155442 worker: GPIO buttons:    available
20240811 155442 worker: HTTPS mode:      available
20240811 155442 worker: Stream recorder: n/a
20240811 155442 worker: --
20240811 155442 worker: -- Peripherals
20240811 155442 worker: --
20240811 155447 worker: Local display:   off
20240811 155447 worker: HDMI 4K 60Hz:    off
20240811 155447 worker: On-screen kbd:   off
20240811 155447 worker: Rotary encoder:  off
20240811 155447 worker: USB volume knob: on
20240811 155447 worker: LCD updater:     off
20240811 155447 worker: --
20240811 155447 worker: -- Miscellaneous
20240811 155447 worker: --
20240811 155447 worker: Software update:   Automatic check on
20240811 155447 worker: Software update:   Checking for available update...
20240811 155447 worker: Software update:   Software is up to date
20240811 155447 worker: Auto-CoverView:    off
20240811 155447 worker: CoverView timeout: Never
20240811 155447 worker: Auto-shuffle:      off
20240811 155447 worker: Auto-play:         off
20240811 155447 worker: Web SSH server:    off
20240811 155447 worker: Maintenance task:  360 mins
20240811 155447 worker: Current view:      reset to Playback
20240811 155447 worker: Active flags:      all false
20240811 155447 worker: Reset flags:       skipped
20240811 155447 worker: Session check:     ok
20240811 155447 worker: --
20240811 155447 worker: -- Startup complete
20240811 155447 worker: --
20240811 155447 worker: Mount monitor:    started
20240811 155447 worker: Radio monitor:    off
20240811 155447 worker: Watchdog monitor: started
20240811 155447 worker: Responsiveness:   Boosted
20240811 155447 worker: Ready
Reply
#2
Thats a really old device.

The log shows that the AMP+ was detected and the commands sent to unmute it.

Here are the commands being used.
Code:
# Unmute IQaudIO Pi-AMP+, Pi-DigiAMP+
if [[ $1 = "unmute-pi-ampplus" || $1 = "unmute-pi-digiampplus" ]]; then
    echo "22" >/sys/class/gpio/export
    echo "out" >/sys/class/gpio/gpio22/direction
    echo "1" >/sys/class/gpio/gpio22/value
    exit
fi

Its possible that RaspiOS Bookworm has changed something in how /sys/class/gpio is structured.
Try running the echo commands from a terminal to see if there are any errors.

I also seem to remember that the AMP+ will be muted if the headphone jack is in use.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Hi Tim!

No cigar on the commands:

Code:
frederic@moode:~ $ echo "22" >/sys/class/gpio/export
-bash: echo: write error: Invalid argument
frederic@moode:~ $ echo "out" >/sys/class/gpio/gpio22/direction
-bash: /sys/class/gpio/gpio22/direction: No such file or directory
frederic@moode:~ $ echo "1" >/sys/class/gpio/gpio22/value
-bash: /sys/class/gpio/gpio22/value: No such file or directory

Here's the content of /sys/class/gpio:
Code:
frederic@moode:/sys/class/gpio $ ls
export  gpiochip512  gpiochip566  unexport

There were no headphones attached, but I wondered it would unmute if I plugged one and uplugged it right away... Nope.
By the way: there IS sound coming through to the headphones.

I guess the answer is a shell script away maybe.
Reply
#4
It looks like the GPIO subsystem changed in Bookworm. I'll add to the TODO list to investigate.

In the meantime you might want to search the Raspberry Pi forums to find out how to poke a value to a GPIO pin.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
I did a quick search and it seems as though the sysfs GPIO interface had been long deprecated and was dropped in Bookworm. The gpiod tools are the replacement of the sysfs GPIO interface. I will continue looking around for how gpoid tools work.

I switched to Moode 8.3.9 and the Pi-Amp+ is indeed unmuted.
Reply
#6
These commands should work on the 9 series. I'll update for upcoming 9.0.7 release

Code:
# Get the GPIO chip
CHIP=$(gpiodetect | awk '/pinctrl/ {print $1}')

# Set GPIO22 on/off (1/0)
gpioset $CHIP 22=1
gpioset $CHIP 22=0
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
Tim, I confirm the commands did work. Looking forward to the upcoming 9.0.7 update.
You're the man!
Reply
#8
Great, thanks for confirming.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#9
The update definitely solved the issue. Thank you Tim for your commitment to the community!
Reply
#10
Be sure to apply the patch mentioned in the updated Announcement.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: