MPD is not offering any audio output

Beaglebone Black related support

Re: MPD is not offering any audio output

Postby aleg » 27 Feb 2014, 22:18

Orion wrote:
aleg wrote:This evening I upgraded my new BBB to the latest Angstrom distro and installed RuneAudio.
Just like the original poster my USB-SPDIF converter doesn't show up in the list of audio devices in RuneGUI.
Just Null (test output) is shown.


Hi aleg,
I think that our init-routine is missing your audio device.
Try this mod at source code:

Edit the file /var/www/inc/player_lib.php at line 1134

Code: Select all
if (wrk_checkStrSysfile('/proc/asound/cards','USB-Audio')) {


and change it (all in a single line!!):

Code: Select all
if (wrk_checkStrSysfile('/proc/asound/cards','USB-Audio') OR wrk_checkStrSysfile('/proc/asound/cards','hiFace')) {


reboot your BBB.

Let me know if it works.

Ciao.

Simone


HI Simone

I added this piece of code on the same line as one long line of code, like this:

Code: Select all
        if (wrk_checkStrSysfile('/proc/asound/cards','USB-Audio') OR wrk_checkStrSysfile('/proc/asound/cards','hiFace')) {


but it didn't make any difference. The card still isn't enabled.

Thanks for your help

Cheers

Aleg
aleg
 
Posts: 11
Joined: 24 Feb 2014, 08:46

Re: MPD is not offering any audio output

Postby Orion » 28 Feb 2014, 02:36

Sorry, I've forgotten some informations:

also mod at line 1214

Code: Select all
if (wrk_checkStrSysfile('/proc/asound/cards','USB-Audio')) {


replace with the same mod:

Code: Select all
if (wrk_checkStrSysfile('/proc/asound/cards','USB-Audio') OR wrk_checkStrSysfile('/proc/asound/cards','hiFace')) {


then reset your MPD config and reboot.

Bye.
Simone
RuneAudio - Embedded Hi-Fi music player
SoloStereo - Alla riscoperta dell'alta fedeltà
User avatar
Orion
RuneAudio co-founder
 
Posts: 189
Joined: 29 Nov 2013, 02:03
Location: Udine, Italy

Re: MPD is not offering any audio output

Postby aleg » 28 Feb 2014, 15:52

Hi Simone

Thank you for your continued support on this.

The changes did have some effect but the device is still not available in the dropbox of RuneUI.
The effect of the changes is that my device is enabled in the mpd.conf, but the dropbox still only shows the Null (test output) even though that device is now shown as not enabled in mpd.conf

I did follow your instructions about resetting mpd config and reboot as well, via MPD Configuration hyperlink "reset to default" and menu option turn off/reboot. Also tried powerdown and power up a few times.

Code: Select all
###### System info ######
Linux version 3.12.6-2-ARCH (nobody@root-chroot-copy) (gcc version 4.7.2 (GCC) ) #1 SMP Mon Jan 6 12:59:03 MST 2014

system load:   0.00 0.01 0.05 1/77 760

HW platform:   BeagleBone Black (04)

playerID:   04e982c18599446a162f6ba2f08b9e05a8


###### Audio backend ######
Advanced Linux Sound Architecture Driver Version k3.12.6-2-ARCH.

Card list: (/proc/asound/cards)
--------------------------------------------------
 0 [hiFace         ]: snd-usb-hiface - hiFace
                      hiFace at usb-musb-hdrc.1.auto-1

ALSA interface #0: (/proc/asound/card0/pcm0p/info)
--------------------------------------------------
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: USB-SPDIF Audio
name: USB-SPDIF Audio
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1

ALSA interface #1: (/proc/asound/card1/pcm0p/info)
--------------------------------------------------

interface #0 stream status: (/proc/asound/card0/stream0)
--------------------------------------------------------
no stream present

interface #1 stream status: (/proc/asound/card1/stream0)
--------------------------------------------------------
no stream present


###### Kernel module snd_usb_audio settings ######

Module = "snd_usb_audio"

  Attributes:
    coresize            = "112254"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "0"
    taint               = ""
    uevent              =

  Parameters:
    autoclock           = "Y"
    device_setup        = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    enable              = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    id                  = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    ignore_ctl_error    = "N"
    index               = "0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    nrpacks             = "3"
    pid                 = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    vid                 = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"

  Sections:
    .ARM.exidx.exit.text= "0xbf140e94"
    .ARM.exidx.init.text= "0xbf140e8c"
    .ARM.exidx          = "0xbf143334"
    .ARM.extab          = "0xbf1432bc"
    .ARM.extab.init.text= "0xbf140e80"
    .bss                = "0xbf1471e4"
    .data               = "0xbf143898"
    .exit.text          = "0xbf13f19c"
    .gnu.linkonce.this_module= "0xbf147080"
    .init.text          = "0xbf150000"
    .note.gnu.build-id  = "0xbf143874"
    .rodata             = "0xbf13f1a8"
    .rodata.str1.1      = "0xbf140f2c"
    .strtab             = "0xbf155328"
    .symtab             = "0xbf150048"
    .text               = "0xbf133000"
    __param             = "0xbf140e9c"


###### Kernel optimization parameters ######

hardware platform:   BeagleBone Black
current orionprofile:   RuneAudio

kernel scheduler for mmcblk0:      [noop] deadline cfq
/proc/sys/vm/swappiness:      0
/proc/sys/kernel/sched_latency_ns:   4500000


###### Filesystem mounts ######

rootfs / rootfs rw 0 0
/dev/root / ext4 rw,relatime,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=253580k,nr_inodes=63395,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=27,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /tmp tmpfs rw 0 0
tmpfs /tmp tmpfs rw 0 0
/dev/root /var/tmp ext4 rw,relatime,data=ordered 0 0
//192.168.178.41/Klassiek /mnt/MPD/Klassiek cifs ro,relatime,vers=1.0,sec=ntlm,cache=strict,uid=45,forceuid,gid=45,forcegid,addr=192.168.178.41,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=16384,wsize=16384,actimeo=1 0 0


###### mpd.conf ######

###################################
# Auto generated mpd.conf file
# please DO NOT edit it manually!
# Use RuneUI MPD config section
###################################

follow_outside_symlinks    "yes"
follow_inside_symlinks    "yes"
db_file    "/var/lib/mpd/mpd.db"
log_file    "/var/log/runeaudio/mpd.log"
pid_file    "/var/run/mpd/pid"
music_directory    "/mnt/MPD"
playlist_directory    "/var/lib/mpd/playlists"
state_file    "/var/lib/mpd/mpdstate"
user    "mpd"
bind_to_address    "any"
port    "6600"
log_level    "default"
zeroconf_enabled    "yes"
zeroconf_name    "runeaudio"
volume_normalization    "no"
audio_buffer_size    "512"
buffer_before_play    "0%"
filesystem_charset    "UTF-8"
id3v1_encoding    "UTF-8"
gapless_mp3_playback    "yes"
auto_update    "no"
mixer_type    "none"
group    "audio"
max_connections "20"

decoder {
      plugin "ffmpeg"
      enabled "no"
}

input {
      plugin "curl"
}

audio_output {
enabled      "yes"
type      "alsa"
name      "USB-Audio"
device      "hw:0,0"
dsd_usb      "yes"
}

audio_output {
enabled      "no"
type      "null"
name      "Null"
}




###### PHP backend ######

php version:   5.5
debug level:   2


###### SESSION ######

STATUS:      1
ID:      9n9h15f2l563cnoq5r3hd3oc56
SAVE PATH:   /run


###### SESSION DATA ######

Array
(
    [orionprofile] => RuneAudio
    [cmediafix] => 0
    [playmod] => 0
    [ramplay] => 0
    [sessionid] => 9n9h15f2l563cnoq5r3hd3oc56
    [mpdconfhash] => d5085246fb4f61782e3631b036d40529
    [lastfm_apikey] => ba8ad00468a50732a3860832eaed0882
    [netconfhash] => 643f8967af551f683b3cfd493950c550
    [mpdconf_advanced] => 0
    [netconf_advanced] => 0
    [dev] =>
    [sourceconfhash] => d41d8cd98f00b204e9800998ecf8427e
    [sourceconf_advanced] => 1
    [debug] => 2
    [hiddendebug] => 0
    [opcache] => 1
    [playerid] => 04e982c18599446a162f6ba2f08b9e05a8
    [hwplatform] => BeagleBone Black
    [hwplatformid] => 04
    [airplay] => 0
    [scrobbling_lastfm] => 0
    [scrobbling_librefm] => 0
    [scrobbling_jamendo] => 0
    [spotify] => 0
    [db_version] => 1.2
    [udevil] => 1
    [coverart] => 1
    [volume] => 0
    [ao] => 0
    [ntpserver] => ntp.inrim.it
    [hostname] => runeaudio
    [w_queue] =>
    [w_queueargs] =>
    [w_lock] => 0
    [w_active] => 0
    [w_jobID] =>
    [debugdata] =>
    [netconf] => Array
        (
            [eth0] => Array
                (
                    [ip] => 192.168.178.53
                )

        )

)

Page created in 0.13233 seconds.


Cheers

Aleg
aleg
 
Posts: 11
Joined: 24 Feb 2014, 08:46

Re: MPD is not offering any audio output

Postby aleg » 28 Feb 2014, 18:32

An update.

Even though I can't select the output device in the RuneUI dropdown, it is actually playing my music.
At first I didn't even try to play music because it didn't show.

So will now start experimenting and enjoying .

Thank you

Cheers

Aleg
aleg
 
Posts: 11
Joined: 24 Feb 2014, 08:46

Re: MPD is not offering any audio output

Postby eragefe » 12 Mar 2014, 00:22

Hi
I think I was a little bit wrong about how easy it is to get bit perfect from BBB.
The last two days I looked into the bit perfect issue and It seems that BBB is equipped with only one oscillator so it can only reproduce the 48kHz family of sample rates.
So it seems that it is a hardware limitation after all.
Surely there is solutions with external clock boards combined with software fixes but nothing ready to use today as far as I know.

BR G
eragefe
 
Posts: 30
Joined: 25 Jan 2014, 19:52

Re: MPD is not offering any audio output

Postby ACX » 12 Mar 2014, 21:40

I'm also following the progress in this thread on diyAudio forum, hoping to see a concrete solution soon.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: MPD is not offering any audio output

Postby eragefe » 13 Mar 2014, 22:53

I'm also following the progress in this thread on diyAudio forum, hoping to see a concrete solution soon

Today I did some tests with that driver and I can confirm that is capable to play bit perfect on BBB.
It plays
44.1>48
48>48
96>96
192>192
As I understand the description that driver has support for external clock so I have to find out how I can integrate that with the software then it will be possible to play 44.1>44.1.
We must also have the source code to compile kernel modules for the RuneOS kernel.
It was difficult to even mount my windows drive on that angstrom distribution so I had to copy some tracks locally to make my tests.
(opkg install cifs-utils > unknown package???)

BR G
eragefe
 
Posts: 30
Joined: 25 Jan 2014, 19:52

Re: MPD is not offering any audio output

Postby ACX » 13 Mar 2014, 23:02

eragefe wrote:Today I did some tests with that driver and I can confirm that is capable to play bit perfect on BBB.

That's a great news! Let's see if we can integrate it under Arch environment as soon as possible to speed up development.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: MPD is not offering any audio output

Postby syklab » 25 Mar 2014, 14:59

Couldn't wait for try this out, will this be in the next release?
syklab
 
Posts: 4
Joined: 02 Mar 2014, 10:33

Re: MPD is not offering any audio output

Postby d888sp4 » 06 Apr 2014, 12:55

eragefe wrote:As you understand I am a hardware guy.
I have compiled some kernels for BBB/RPi/cubieboard but software is not my strongest area.
Here comes the layout I promised to post.
I hope you not misunderstood me. I think that RPi is a fantastic little thing.
But we have to know the issues around it if we will succeed to go around them.

BR G

Hi, impressive, great job !
You circuit combine all my preferences (I2S input, PCM1794 dual mono, ground isolation, xlr output...) that I never seen in others product.
I'm very interested to have it !
Do you plan to sell it (complete or pcb or...parts) ?
Please, let me know.

Kind regards.
Carlo Alberto.
d888sp4
 
Posts: 1
Joined: 06 Apr 2014, 12:46

support RuneAudio Donate with PayPal

Previous

Return to Beaglebone Black

Who is online

Users browsing this forum: No registered users and 1 guest