Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

Moode Audio Player for Raspberry Pi
Moode Audio Player for Raspberry Pi
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 13th November 2015, 12:10 AM   #1021
tgraan is offline tgraan  United States
diyAudio Member
 
Join Date: Sep 2007
Quote:
Originally Posted by TimCurtis View Post
Hi,

I'm not able to repro this in my test environment but one way to possibly work around the issue would be to move the music collections under a single root folder on the NAS and then share this folder out.

You would end up making a single source mount in Moode.

Regards,
Tim
Thanks for all your work Tim. Right now I think that I'll stick with my version of a work around until I learn more about the problem.
  Reply With Quote
Old 13th November 2015, 01:47 AM   #1022
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Quote:
Originally Posted by wakajazz View Post
jpeg4, did you by chance have this issue using Moode 2.3? Or is 2.4 your first Moode install.

Tim, this behavior is along the lines of what I described to you via email. 2.4 drops the PCM stream/lock completely once a track/album has finished or is paused. 2.3 did not exhibit this behavior and maintained a lock even if the PCM stream has stopped. I guess that this loss of lock is causing jpeg4's DAC to enter stand-by mode whereas 2.3 would have kept it 'awake'?

wj
Hi,

I investigated this a bit tonight and I'm seeing that when DAC is unplugged then plugged back in, ALSA configures it correctly but MPD shows "error: failed to open audio output" when trying to play.

This can probably be fixed but I'm not sure whether it is permission issue, configuration issue or what?

Regards,
Tim
  Reply With Quote
Old 13th November 2015, 02:25 AM   #1023
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Hi,

Here is some additional diagnostic info from MPD verbose logging. This is after DAC unplugged then plugged back in then press Moode play button.

ALSA lib pcm_hw.c:1667: (_snd_pcm_hw_open) Invalid value for card
Nov 12 21:58 : alsa_output: Failed to open "Output" [alsa]: Failed to open ALSA device "hw:0,0": No such file or directory
Nov 12 21:58 : output: Failed to open audio output
Nov 12 21:58 : player: problems opening audio device while playing "http://uwstream2.somafm.com:3000"


Regards,
Tim
  Reply With Quote
Old 13th November 2015, 07:27 AM   #1024
jpeg4 is offline jpeg4  United Kingdom
diyAudio Member
 
Join Date: Nov 2015
Quote:
Originally Posted by TimCurtis View Post
Hi,

Here is some additional diagnostic info from MPD verbose logging. This is after DAC unplugged then plugged back in then press Moode play button.

ALSA lib pcm_hw.c:1667: (_snd_pcm_hw_open) Invalid value for card
Nov 12 21:58 : alsa_output: Failed to open "Output" [alsa]: Failed to open ALSA device "hw:0,0": No such file or directory
Nov 12 21:58 : output: Failed to open audio output
Nov 12 21:58 : player: problems opening audio device while playing "http://uwstream2.somafm.com:3000"


Regards,
Tim
Tim
thanks for investigating. I don't have any expertise to offer but if MPD is the issue then is my comment on Volumio a clue? Would it handle MPD differently?
  Reply With Quote
Old 13th November 2015, 07:53 AM   #1025
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Sound card index is not fixed in alsa - it may change at every boot/unplug cycle.

You may want to use the card name instead which is stable for each different soundcard. Using card index in the alsa device identifier string is not recommended for the above reason.

e.g.
https://wiki.archlinux.org/index.php...rnative_method
  Reply With Quote
Old 13th November 2015, 01:55 PM   #1026
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Quote:
Originally Posted by phofman View Post
Sound card index is not fixed in alsa - it may change at every boot/unplug cycle.

You may want to use the card name instead which is stable for each different soundcard. Using card index in the alsa device identifier string is not recommended for the above reason.

e.g.
https://wiki.archlinux.org/index.php...rnative_method
Hi,

Yes this is root cause. Thanks so much :-)

There are two cases to deal with (1) boot/reboot and (2) hotplug.

Currently at boot/reboot the configuration always yields hw:0. When hotplug it changes to hw:1. This can be verified by editing /etc/mpd.conf after hotplug and changing hw:0 to hw:1, then music plays.

I'll add this to my to-do list for fixing :-)

Regards,
Tim
  Reply With Quote
Old 13th November 2015, 03:18 PM   #1027
OOD34 is offline OOD34  Netherlands
diyAudio Member
 
Join Date: Nov 2010
Quote:
Originally Posted by TimCurtis View Post
Hi,

I just want to confirm that this is exFAT file system on your USB drive.

exFAT support was added to Moode 2.4 and this behavior did not show up in my testing but I will definitely retest. My earlier tests regarding this issue were with NTFS format USB drives.

Regards,
Tim
Indeed, exFat was file system.
  Reply With Quote
Old 13th November 2015, 03:19 PM   #1028
jpeg4 is offline jpeg4  United Kingdom
diyAudio Member
 
Join Date: Nov 2015
Quote:
Originally Posted by TimCurtis View Post
Hi,

Yes this is root cause. Thanks so much :-)

There are two cases to deal with (1) boot/reboot and (2) hotplug.

Currently at boot/reboot the configuration always yields hw:0. When hotplug it changes to hw:1. This can be verified by editing /etc/mpd.conf after hotplug and changing hw:0 to hw:1, then music plays.

I'll add this to my to-do list for fixing :-)

Regards,
Tim
Thanks Tim and phofman, good to know there is a solution.
  Reply With Quote
Old 13th November 2015, 06:03 PM   #1029
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Quote:
Originally Posted by TimCurtis View Post
Quote:
Originally Posted by phofman View Post
Sound card index is not fixed in alsa - it may change at every boot/unplug cycle.

You may want to use the card name instead which is stable for each different soundcard. Using card index in the alsa device identifier string is not recommended for the above reason.

e.g.
https://wiki.archlinux.org/index.php...rnative_method
Hi,

Yes this is root cause. Thanks so much :-)

There are two cases to deal with (1) boot/reboot and (2) hotplug.

Currently at boot/reboot the configuration always yields hw:0. When hotplug it changes to hw:1. This can be verified by editing /etc/mpd.conf after hotplug and changing hw:0 to hw:1, then music plays.

I'll add this to my to-do list for fixing :-)

Regards,
Tim
Hi,

Of course hw:1 is just the on-board audio device on the Pi and not the DAC so my result is not valid. I should remember to leave the audio cable plugged into the DAC :-)

Whats interesting is that all the command output indicates DAC is assigned to card 0 (hw:0) after hotplug, yet MPD cannot open hw:0.

Regards,
Tim
  Reply With Quote
Old 13th November 2015, 10:02 PM   #1030
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
The log message

Code:
Failed to open ALSA device "hw:0,0": No such file or directory
clearly suggests the soundcard has been renumbered. aplay -l gives the card name, e.g. my analog output card would be hw:PCH,0 since aplay says:

Code:
pavel@probook ~ $ LANG=C aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC3227 Analog [ALC3227 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  Reply With Quote

Reply


Moode Audio Player for Raspberry PiHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My DAC for the Raspberry Pi usul27 Digital Line Level 156 29th April 2017 11:10 PM
DSP for the Raspberry Pi usul27 Digital Line Level 39 30th August 2016 07:29 AM
Raspberry Pi + CirrusLogic Audio Card = FAIL solderhead PC Based 31 26th January 2016 06:48 PM
RaspyFi/Volumio - Turn raspberry Pi into Audiophile audio Player mikelangeloz PC Based 295 14th June 2014 05:32 PM
miniAMP and raspberry pi kp93300 miniDSP 0 3rd March 2014 03:38 AM


New To Site? Need Help?

All times are GMT. The time now is 12:59 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki