unable to set I2S in Audio Output Device - bikerman - 07-09-2024
Hi all,
is there a command I can run or any way to determine if my DAC HAT is seen by the moode susyem?
I am running MoodeAudio v9.04 on a RP4, this dac is the Innomaker DAC Pro (brand new). I am able to set the DT overlay to 'allo-katana-dac-audio' but unable to set the Output device to I2S.
So hoping to figure out if my HAT is DOA
Thanks in advance
RE: unable to set I2S in Audio Output Device - Tim Curtis - 07-09-2024
Look in the Output device list for the name of the DAC
RE: unable to set I2S in Audio Output Device - TheOldPresbyope - 07-09-2024
You did reboot the Pi after you selected the DT Overlay, right?
On a Pi 4B with the Innomaker DAC Pro HAT installed and moOde 9.0.4 booted, selecting either the allo-katana-dac-audio DT Overlay or the"Allo Katana DAC" Named I2S device, and rebooting, a Output Device "2:Allo Katana" shows up in the Audio config screen.
Whether or not I actually select that Output device, I get the following from the command line
Code: rho@mpi4b:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Katana [Allo Katana], device 0: fe203000.i2s-allo-katana-codec allo-katana-codec-0 [fe203000.i2s-allo-katana-codec allo-katana-codec-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
If there's no "Katana" card showing up on your player then perhaps your suspicion is right. I'd double check to make sure the board is properly seated on the Pi's GPIO pins.
Regards,
Kent
RE: unable to set I2S in Audio Output Device - bikerman - 07-09-2024
(07-09-2024, 04:47 PM)Tim Curtis Wrote: Look in the Output device list for the name of the DAC
That's where I was expecting to the be able to set it, but was showing hdmi and rp headphone. All other slots are empty.
Thanks
RE: unable to set I2S in Audio Output Device - Tim Curtis - 07-09-2024
If it's showing Headphone it means the "Integrated audio" setting on System Config is set to "Firmware mode (Legacy).
Set it back to Kernel mode (Default) and see if the DAC shows up in the list.
If not then reboot and then post the contents of the startup log.
The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from any of the Config screens. The startup log will be at the end of System info output.
RE: unable to set I2S in Audio Output Device - bikerman - 07-09-2024
(07-09-2024, 05:25 PM)TheOldPresbyope Wrote: You did reboot the Pi after you selected the DT Overlay, right?
On a Pi 4B with the Innomaker DAC Pro HAT installed and moOde 9.0.4 booted, selecting either the allo-katana-dac-audio DT Overlay or the"Allo Katana DAC" Named I2S device, and rebooting, a Output Device "2:Allo Katana" shows up in the Audio config screen.
Whether or not I actually select that Output device, I get the following from the command line
Code: rho@mpi4b:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Katana [Allo Katana], device 0: fe203000.i2s-allo-katana-codec allo-katana-codec-0 [fe203000.i2s-allo-katana-codec allo-katana-codec-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
If there's no "Katana" card showing up on your player then perhaps your suspicion is right. I'd double check to make sure the board is properly seated on the Pi's GPIO pins.
Regards,
Kent Yep rebooted.
A play doesn't show the card just the onboard HDMI and headphone.
Must be a DOA Hat
Thanks for all your help
RE: unable to set I2S in Audio Output Device - bikerman - 07-09-2024
(07-09-2024, 08:12 PM)Tim Curtis Wrote: If it's showing Headphone it means the "Integrated audio" setting on System Config is set to "Firmware mode (Legacy).
Set it back to Kernel mode (Default) and see if the DAC shows up in the list.
If not then reboot and then post the contents of the startup log.
The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from any of the Config screens. The startup log will be at the end of System info output.
Below is output of aplay -l when in Firmware mode
Code: @MoodePi4:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: b1 [bcm2835 HDMI 1], device 1: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: b2 [bcm2835 HDMI 2], device 0: bcm2835 HDMI 2 [bcm2835 HDMI 2]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 1: b2 [bcm2835 HDMI 2], device 1: bcm2835 HDMI 2 [bcm2835 HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
below is the output in Kernel mode
Code: @MoodePi4:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
and outpur of moodeutl
Code: MoodePi4:~ $ moodeutl -l
20240709 220905 worker: --
20240709 220905 worker: -- Start moOde 9 series
20240709 220905 worker: --
20240709 220905 worker: Successfully daemonized
20240709 220905 worker: Wait for Linux startup
20240709 220911 worker: Linux startup complete
20240709 220911 worker: Boot config is ok
20240709 220911 worker: Session loaded
20240709 220913 worker: Package locks applied
20240709 220914 worker: File check complete
20240709 220914 worker: Debug logging off
20240709 220914 worker: --
20240709 220914 worker: -- System
20240709 220914 worker: --
20240709 220915 worker: Host name: MoodePi4
20240709 220915 worker: RPi model: Pi-4B 1.5 4GB
20240709 220915 worker: moOde release: 9.0.4 2024-07-06
20240709 220915 worker: RaspiOS: 12.6 Bookworm 64-bit
20240709 220915 worker: Linux Kernel: 6.6.31 64-bit
20240709 220915 worker: MPD version: 0.23.14
20240709 220915 worker: User id: damien
20240709 220915 worker: Home folder: /home/damien
20240709 220915 worker: Time zone: Europe/London
20240709 220915 worker: Kbd layout: gb
20240709 220915 worker: HDMI ports(s): on
20240709 220915 worker: Sys LED0: on
20240709 220915 worker: Sys LED1: on
20240709 220915 worker: Reduce power: n/a
20240709 220915 worker: CPU governor: ondemand
20240709 220915 worker: Integ audio: vc4-kms-v3d
20240709 220915 worker: --
20240709 220915 worker: -- Network
20240709 220915 worker: --
20240709 220915 worker: Eth0
20240709 220915 worker: Ethernet: adapter exists
20240709 220915 worker: Ethernet: timeout off
20240709 220915 worker: Ethernet: address not assigned
20240709 220915 worker: Wlan0
20240709 220915 worker: Wireless: adapter exists
20240709 220915 worker: Wireless: country GB
20240709 220915 worker: Wireless: SSID MasterDamo@33B
20240709 220915 worker: Wireless: other None
20240709 220915 worker: Wireless: timeout up to 90 secs
20240709 220915 worker: Wireless: connect to MasterDamo@33B
20240709 220915 worker: Wireless: method dhcp
20240709 220915 worker: Wireless: address 192.168.1.212
20240709 220916 worker: Wireless: netmask 255.255.255.0
20240709 220916 worker: Wireless: gateway 192.168.1.254
20240709 220916 worker: Wireless: pri DNS 192.168.1.254
20240709 220916 worker: Wireless: domain home
20240709 220916 worker: --
20240709 220916 worker: -- File sharing
20240709 220916 worker: --
20240709 220916 worker: SMB file sharing: on
20240709 220916 worker: NFS file sharing: off
20240709 220916 worker: DLNA file sharing: off
20240709 220916 worker: --
20240709 220916 worker: -- Special configs
20240709 220916 worker: --
20240709 220916 worker: Plexamp: not installed
20240709 220916 worker: RoonBridge: not installed
20240709 220916 worker: Allo Piano 2.1: not detected
20240709 220916 worker: Allo Boss 2: not detected, OLED script ok
20240709 220916 worker: IQaudIO AMP*: not detected
20240709 220916 worker: --
20240709 220916 worker: -- ALSA debug
20240709 220916 worker: --
20240709 220916 worker: Cards: 0:vc4hdmi0 1:vc4hdmi1 2:empty 3:empty
20240709 220916 worker: 4:empty 5:empty 6:empty 7:empty
20240709 220916 worker: Mixers: 0:none 1:none 2:none 3:none
20240709 220916 worker: 4:none 5:none 6:none 7:none
20240709 220916 worker: --
20240709 220916 worker: -- Audio configuration
20240709 220916 worker: --
20240709 220916 worker: Audio device: 0:Pi HDMI 1
20240709 220917 worker: ALSA card: has not been reassigned
20240709 220917 isI2SDevice(): Error: aplay name not found for i2soverlay=allo-katana-dac-audio
20240709 220918 worker: MPD config: updated (iec958 device)
20240709 220918 isI2SDevice(): Error: aplay name not found for i2soverlay=allo-katana-dac-audio
20240709 220918 worker: ALSA output: HDMI
20240709 220918 worker: ALSA mode: IEC958 (iec958)
20240709 220918 isI2SDevice(): Error: aplay name not found for i2soverlay=allo-katana-dac-audio
20240709 220918 worker: ALSA mixer PCM
20240709 220921 worker: ALSA volume: controller not detected
20240709 220921 worker: ALSA maxvol: 100%
20240709 220921 worker: ALSA loopback: off
20240709 220921 worker: MPD mixer Software
20240709 220921 worker: Audio formats: Alsacap was unable to detect formats
20240709 220921 worker: CamillaDSP: off
20240709 220921 worker: CDSP volume: 0dB
20240709 220921 worker: CDSP volrange: 60dB
20240709 220921 worker: --
20240709 220921 worker: -- MPD startup
20240709 220921 worker: --
20240709 220922 worker: MPD service: started
20240709 220922 worker: MPD port 6600: accepting connections
20240709 220922 worker: MPD ALSA Default: on
20240709 220922 worker: MPD ALSA Bluetooth: off
20240709 220922 worker: MPD HTTP Server: off
20240709 220922 worker: MPD volume: 66
20240709 220922 worker: Saved MPD vol: -1
20240709 220922 worker: Saved SRC vol: 0
20240709 220922 worker: MPD crossfade: off
20240709 220922 worker: MPD ignore CUE: no
20240709 220922 worker: MPD CDSP volsync: off
20240709 220922 worker: --
20240709 220922 worker: -- Music sources
20240709 220922 worker: --
20240709 220922 worker: USB drives: no drives found
20240709 220922 worker: NAS sources: no music sources defined
20240709 220922 worker: --
20240709 220922 worker: -- Feature availability
20240709 220922 worker: --
20240709 220922 worker: Input select: available, Source: MPD, Output: Pi HDMI 1
20240709 220922 worker: Bluetooth: available, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20240709 220922 worker: AirPlay: available
20240709 220922 worker: Spotify Connect: available
20240709 220922 worker: Squeezelite: available
20240709 220922 worker: UPnP client: available
20240709 220922 worker: Plexamp: not installed
20240709 220922 worker: RoonBridge: not installed
20240709 220922 worker: Multiroom: available
20240709 220922 worker: GPIO buttons: available
20240709 220922 worker: HTTPS mode: available
20240709 220922 worker: Stream recorder: n/a
20240709 220922 worker: --
20240709 220922 worker: -- Peripherals
20240709 220922 worker: --
20240709 220940 worker: Local display: off
20240709 220940 worker: On-screen kbd: off
20240709 220940 worker: HDMI 4K 60Hz: off
20240709 220940 worker: Rotary encoder: off
20240709 220940 worker: USB volume knob: off
20240709 220940 worker: LCD updater: off
20240709 220940 worker: --
20240709 220940 worker: -- Miscellaneous
20240709 220940 worker: --
20240709 220940 worker: Software update: Automatic check off
20240709 220940 worker: Auto-CoverView: off
20240709 220940 worker: CoverView timeout: Never
20240709 220940 worker: Auto-shuffle: off
20240709 220940 worker: Auto-play: off
20240709 220940 worker: Web SSH server: on
20240709 220940 worker: Maintenance task: 360 mins
20240709 220940 worker: Current view: reset to Playback
20240709 220940 worker: Active flags: all false
20240709 220940 worker: Reset flags: skipped
20240709 220940 worker: Session check: ok
20240709 220940 worker: --
20240709 220940 worker: -- Startup complete
20240709 220940 worker: --
20240709 220940 worker: Mount monitor: started
20240709 220941 worker: Radio monitor: off
20240709 220941 worker: Watchdog monitor: started
20240709 220941 worker: Responsiveness: Boosted
20240709 220941 worker: Ready
The DAC HAT has the option to provide power to the rp4 or receive power from the rp4. Either options power the rp4, which is wy I am kinda 50-50 as to whether it is a DOA hat,
Thanks
RE: unable to set I2S in Audio Output Device - Tim Curtis - 07-09-2024
This log entry indicates the DAC was not recognized by Linux/ALSA. It should appear as assigned to Card 2.
Code: 20240709 220916 worker: Cards: 0:vc4hdmi0 1:vc4hdmi1 2:empty 3:empty
I'd contact the manufacturer and describe the issue "DAC not seen by Linux/ALSA" along with some info from the commands below.
Code: # Linux kernel version
uname -a
# RaspiOS version
cat /etc/debian_version
RE: unable to set I2S in Audio Output Device - bikerman - 07-09-2024
(07-09-2024, 09:55 PM)Tim Curtis Wrote: This log entry indicates the DAC was not recognized by Linux/ALSA. It should appear as assigned to Card 2.
Code: 20240709 220916 worker: Cards: 0:vc4hdmi0 1:vc4hdmi1 2:empty 3:empty
I'd contact the manufacturer and describe the issue "DAC not seen by Linux/ALSA" along with some info from the commands below.
Code: # Linux kernel version
uname -a
# RaspiOS version
cat /etc/debian_version
Thanks Tim, will take it up with inno-maker (God help me )
RE: unable to set I2S in Audio Output Device - bikerman - 08-02-2024
Hi all, this is a quick update to close the loop on this thread
Thanks to @Tim Curtis @TheOldPresbyope
Finally got replacement DAC and it works as expected and perfectly
Regards
|