Thank you for your donation!


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


Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such
#11
After switch to second USB2 port:



Code:
pi@moode:~ $ moodeutl -l
20211218 045123 worker: -- Start
20211218 045123 worker: Successfully daemonized
20211218 045123 worker: Integrity check (passed)
20211218 045124 worker: File check (OK)
20211218 045124 worker: Session vacuumed
20211218 045124 worker: Session loaded
20211218 045124 worker: Debug logging (OFF)
20211218 045124 worker: -- Audio debug
20211218 045124 worker: ALSA cards: (0:b1 | 1:Headphones | 2:R20 | 3:empty
20211218 045124 worker: MPD config: (2:Rotel USB Audio 2.0 | mixer:(Rotel USB Audio 2.0 ) | card:2)
20211218 045124 worker: ALSA mixer actual (Rotel USB Audio 2.0 )
20211218 045125 worker: ALSA Rotel USB Audio 2.0 volume set to (0%)
20211218 045125 worker: -- System
20211218 045126 worker: Host     (moode)
20211218 045126 worker: moOde    (7.6.1 2021-12-17)
20211218 045126 worker: RaspiOS  (10.6)
20211218 045126 worker: Kernel   (5.4.77-v7l+ #1371)
20211218 045126 worker: Platform (Pi-4B 1.1 2GB)
20211218 045126 worker: ARM arch (armv7l, 32-bit kernel)
20211218 045126 worker: MPD ver  (0.23.4_p0x3)
20211218 045126 worker: CPU gov  (ondemand)
20211218 045126 worker: USB boot not available
20211218 045126 worker: File system not expanded yet
20211218 045126 worker: HDMI port off
20211218 045126 worker: -- Network
20211218 045126 worker: IP address check timeout (90 secs)
20211218 045126 worker: eth0 adapter exists
20211218 045126 worker: eth0 IP address check (No)
20211218 045126 worker: IP addr (192.168.1.200)
20211218 045126 worker: Netmask (255.255.255.0)
20211218 045126 worker: Gateway (192.168.1.1)
20211218 045126 worker: Pri DNS (192.168.1.1)
20211218 045126 worker: Domain  (lan)
20211218 045126 worker: wlan0 adapter does not exist
20211218 045126 worker: -- Audio config
20211218 045126 worker: MPD conf update skipped (USB device)
20211218 045126 worker: ALSA card number (2)
20211218 045126 worker: MPD audio output (Rotel USB Audio 2.0)
20211218 045126 worker: Audio formats (S16_LE, S32_LE, SPECIAL, DSD_U32_BE)
20211218 045127 worker: ALSA mixer name (Rotel USB Audio 2.0 )
20211218 045127 worker: MPD mixer type (software)
20211218 045127 worker: Hdwr volume controller exists
20211218 045127 worker: Max ALSA volume (100%)
20211218 045127 worker: ALSA output mode (Default: plughw)
20211218 045127 worker: ALSA loopback (Off)
20211218 045127 worker: Reset renderer active flags
20211218 045127 worker: CamillaDSP (off)
20211218 045127 worker: -- MPD startup
20211218 045127 worker: MPD started
20211218 045127 worker: MPD accepting connections
20211218 045128 worker: MPD output 1 ALSA Default (on)
20211218 045128 worker: MPD output 2 ALSA Bluetooth (off)
20211218 045128 worker: MPD output 3 HTTP Server (off)
20211218 045128 worker: MPD crossfade (off)
20211218 045128 worker: MPD ignore CUE files (yes)
20211218 045128 worker: -- Feature availability
20211218 045128 worker: Source select (available)
20211218 045128 worker: Source select (source: MPD)
20211218 045128 worker: Source select (output: Rotel USB Audio 2.0)
20211218 045128 worker: Bluetooth (available)
20211218 045128 worker: Airplay renderer (available)
20211218 045128 worker: Spotify renderer (available)
20211218 045128 worker: Squeezelite (available)
20211218 045128 worker: RoonBridge renderer (not installed)
20211218 045128 worker: Multiroom sender (available)
20211218 045128 worker: Multiroom receiver (available)
20211218 045128 worker: UPnP renderer (available)
20211218 045128 worker: DLNA server (available)
20211218 045128 worker: UPnP browser (available)
20211218 045128 worker: GPIO button handler (available)
20211218 045128 worker: Stream recorder (n/a)
20211218 045128 worker: -- Music sources
20211218 045128 worker: USB sources (none attached)
20211218 045130 worker: NAS and UPnP sources (mountall initiated)
20211218 045130 worker: -- Other
20211218 045130 worker: USB volume knob (Off)
20211218 045130 worker: USB auto-mounter (udisks-glue)
20211218 045130 worker: LED0 (On)
20211218 045130 worker: LED1 (On)
20211218 045130 worker: Saved MPD vol level (0)
20211218 045130 worker: Preamp volume level (0)
20211218 045130 worker: MPD volume level (98) restored
20211218 045130 worker: ALSA Rotel USB Audio 2.0 volume (100%)
20211218 045130 worker: Auto-play (Off)
20211218 045130 worker: Maintenance interval (3 hours)
20211218 045130 worker: Screen saver activation (Never)
20211218 045130 worker: Session permissions (OK)
20211218 045130 worker: Watchdog started
20211218 045130 worker: Ready





Code:
pi@moode:~ $ moodeutl -F
*** Scanning for playback devices ***
Card 0, ID `b1', name `bcm2835 HDMI 1'
Device 0, ID `bcm2835 HDMI 1', name `bcm2835 HDMI 1', 4 subdevices (4 available)
  1..8 channels, sampling rate 8000..192000 Hz
  Sample formats: U8, S16_LE
  Buffer size range from 80 to 131072
  Period size range from 80 to 131072

    Subdevice 0, name `subdevice #0'
    Subdevice 1, name `subdevice #1'
    Subdevice 2, name `subdevice #2'
    Subdevice 3, name `subdevice #3'
Card 1, ID `Headphones', name `bcm2835 Headphones'
Device 0, ID `bcm2835 Headphones', name `bcm2835 Headphones', 4 subdevices (4 available)
  1..8 channels, sampling rate 8000..192000 Hz
  Sample formats: U8, S16_LE
  Buffer size range from 80 to 131072
  Period size range from 80 to 131072

    Subdevice 0, name `subdevice #0'
    Subdevice 1, name `subdevice #1'
    Subdevice 2, name `subdevice #2'
    Subdevice 3, name `subdevice #3'
Card 2, ID `R20', name `Rotel USB Audio 2.0'
Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
  2 channels, sampling rate 44100..384000 Hz
  Sample formats: S16_LE, S32_LE, SPECIAL, DSD_U32_BE
  Buffer size range from 16 to 262144
  Period size range from 8 to 131072

    Subdevice 0, name `subdevice #0'


Code:
MPD log:

Dec 18 04:49 : output: Failed to play on "ALSA Default" (alsa): snd_pcm_writei() failed: File descriptor in bad state
Dec 18 04:49 : exception: Failed to open audio output
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
Dec 18 04:49 : exception: Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such file or directory
Dec 18 04:49 : exception: Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such file or directory
Dec 18 04:49 : output: Failed to play on "ALSA Default" (alsa): snd_pcm_writei() failed: Broken pipe
Dec 18 04:49 : exception: Failed to open audio output
Dec 18 04:49 : player: played "NAS/Martin/Adele_-_25_(Target_Deluxe_Edition)_(2015)_[CD-FLAC]/Adele - 25 (Target Deluxe Edition) (2015) [CD-FLAC]/01 Hello.fl$
Dec 18 04:51 : output: Failed to play on "ALSA Default" (alsa): snd_pcm_writei() failed: Broken pipe
Dec 18 04:51 : exception: Failed to open audio output
Reply
#12
You could also try setting ALSA output mode to Direct (hw) in Audio Config but if that does not resolve the issue then it could be that the Linux USB audio driver in the kernel used in moOde 7 is not compatible with the USB receiver in the audio device. A newer Linux kernel may resolve this.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#13
Is it an A12 (with the Woolfson chipset)  or A12 MK2 (with the Ti chipset) ?
----------
bob
Reply
#14
(03-11-2022, 03:47 AM)DRONE7 Wrote: Is it an A12 (with the Woolfson chipset)  or A12 MK2 (with the Ti chipset) ?

To be honest, I do not know I reckon new one as I bought it a year ago, but I need to check it.


And it is A12 with Woolfson chipset. Is it bad or good?
Reply
#15
(03-11-2022, 02:44 AM)Tim Curtis Wrote: You could also try setting ALSA output mode to Direct (hw) in Audio Config but if that does not resolve the issue then it could be that the Linux USB audio driver in the kernel used in moOde 7 is not compatible with the USB receiver in the audio device. A newer Linux kernel may resolve this.

Have you thought about making moOde standalone package that could be installed on Ubuntu or maybe just migrate to ARCH Linux which has the latest kernels and drivers? Debian is very outdated in that matter, so not so multimedia too.
Reply
#16
@DRONE7 you gave me some thinking and I google out this:

https://www.horus.com/~hias/cirrus-driver.html

Might be handy but I do not know how if ever need to be implemented here.
Reply
#17
(03-11-2022, 06:30 AM)Relocated2007 Wrote:
(03-11-2022, 03:47 AM)DRONE7 Wrote: Is it an A12 (with the Woolfson chipset)  or A12 MK2 (with the Ti chipset) ?

To be honest, I do not know I reckon new one as I bought it a year ago, but I need to check it.


And it is A12 with Woolfson chipset. Is it bad or good?

Many in-house-brands ignore linux and use a low cost alternative... Wolfson have been problematic...:-(

However...you may be interested here.. though this refers to an I2S hat

https://moodeaudio.org/forum/showthread....ht=wolfson

and Kent's post...
https://moodeaudio.org/forum/showthread....9#pid27219

You may be better advised to get some sort of Digi-HAT for the Pi and use the Coax/optical inputs on the Rotel ?
----------
bob
Reply
#18
(03-11-2022, 06:36 AM)Relocated2007 Wrote:
(03-11-2022, 02:44 AM)Tim Curtis Wrote: You could also try setting ALSA output mode to Direct (hw) in Audio Config but if that does not resolve the issue then it could be that the Linux USB audio driver in the kernel used in moOde 7 is not compatible with the USB receiver in the audio device. A newer Linux kernel may resolve this.

Have you thought about making moOde standalone package that could be installed on Ubuntu or maybe just migrate to ARCH Linux which has the latest kernels and drivers? Debian is very outdated in that matter, so not so multimedia too.

Upcoming moOde 8 is a Debian package but there is no free lunch when it comes to separating moOde the application from the underlying OS because of dependencies between moOde and specific versions of OS components and the custom patches we make to improve MPD and several kernel drivers. 

For the moOde project RaspiOS has proven to be an excellent OS for audio and offers he widest support for 3rd party software addon's many of which we use and are not available in other Linux distros like Arch.

Feel free to study the repos.
https://github.com/moode-player

The 8 release will also provide developer documentation that describes how to build and install the moode-player package (or any of the other packages) on RaspiOS Bullseye or optionally generate a complete ISO image containing moOde. You can incorporate whatever customizations and kernel version you desire using the new build tooling but you are on your own as far as testing and troubleshooting goes.

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#19
(03-11-2022, 11:57 AM)Tim Curtis Wrote:
(03-11-2022, 06:36 AM)Relocated2007 Wrote:
(03-11-2022, 02:44 AM)Tim Curtis Wrote: You could also try setting ALSA output mode to Direct (hw) in Audio Config but if that does not resolve the issue then it could be that the Linux USB audio driver in the kernel used in moOde 7 is not compatible with the USB receiver in the audio device. A newer Linux kernel may resolve this.

Have you thought about making moOde standalone package that could be installed on Ubuntu or maybe just migrate to ARCH Linux which has the latest kernels and drivers? Debian is very outdated in that matter, so not so multimedia too.

Upcoming moOde 8 is a Debian package but there is no free lunch when it comes to separating moOde the application from the underlying OS because of dependencies between moOde and specific versions of OS components and the custom patches we make to improve MPD and several kernel drivers. 

For the moOde project RaspiOS has proven to be an excellent OS for audio and offers he widest support for 3rd party software addon's many of which we use and are not available in other Linux distros like Arch.

Feel free to study the repos.
https://github.com/moode-player

The 8 release will also provide developer documentation that describes how to build and install the moode-player package (or any of the other packages) on RaspiOS Bullseye or optionally generate a complete ISO image containing moOde. You can incorporate whatever customizations and kernel version you desire using the new build tooling but you are on your own as far as testing and troubleshooting goes.

-Tim
Hi Tim,

That sounds very well. It was just my thoughts. You are doing a great job. When I hopefully sort out my problem I will donate some money to help the project.

Cheers
Reply
#20
(03-11-2022, 07:14 AM)DRONE7 Wrote:
(03-11-2022, 06:30 AM)Relocated2007 Wrote:
(03-11-2022, 03:47 AM)DRONE7 Wrote: Is it an A12 (with the Woolfson chipset)  or A12 MK2 (with the Ti chipset) ?

To be honest, I do not know I reckon new one as I bought it a year ago, but I need to check it.


And it is A12 with Woolfson chipset. Is it bad or good?

Many in-house-brands ignore linux and use a low cost alternative... Wolfson have been problematic...:-(

However...you may be interested here.. though this refers to an I2S hat

https://moodeaudio.org/forum/showthread....ht=wolfson

and Kent's post...
https://moodeaudio.org/forum/showthread....9#pid27219

You may be better advised to get some sort of Digi-HAT for the Pi and use the Coax/optical inputs on the Rotel ?

Thanks, I am working along that way but still no luck. It seems that I loaded the driver but I can not pick it up by MoOde GUI, oh well I am too weak with Linux. I am amusing Bluetooth for now but I would love to use my PI4 to play my library. maybe Tim will come up with something in the 8.0 version.
Reply


Forum Jump: