mpc playing but no output ?

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Post Reply
7amadabsi
Posts: 2
Joined: Thu Mar 22, 2012 8:21 am

mpc playing but no output ?

Post by 7amadabsi »

Hello,

Im using Tp-link TL-MR3220 , hacked ( openwrt )

i done everything step by step , until i reached the finals step :
when i write : Mpd
it loads successfully , and when i run mpc
i get volume 100% .....
so i add a radio server http://relay3......
then when i hit , mpc play i get :
http://relay3......
playing #1/1 0:00/0:00 (0%)
volume 100% repeat .....


but i dont hear anything ?
User avatar
gerben
Posts: 164
Joined: Sat Oct 16, 2010 8:41 am
Location: Netherlands

Re: mpc playing but no output ?

Post by gerben »

Which soundcard do you use?
7amadabsi
Posts: 2
Joined: Thu Mar 22, 2012 8:21 am

Re: mpc playing but no output ?

Post by 7amadabsi »

eam
Posts: 7
Joined: Tue Mar 01, 2011 8:15 pm

Re: mpc playing but no output ?

Post by eam »

I had no luck with that one, but no problems with the device that shows up when you search ebay for "USB Sound Card 7.1 Channel 3D Audio"
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: mpc playing but no output ?

Post by mightyohm »

rcr
Posts: 4
Joined: Wed Jul 11, 2012 9:54 am

Re: mpc playing but no output ?

Post by rcr »

Ok, guys. I've managed to install and run mpd on my flash drive. I run it with following audio_output settings in mpd.conf

Code: Select all

audio_output {
        type            "oss"
        name            "My OSS Device"
        device          "/dev/sound/dsp"        # optional
        format          "44100:16:2"    # optional
        mixer_device    "/dev/sound/mixer"      # optional
        mixer_control   "PCM"           # optional
}
it runs without a word, everything looks fine. I start Ario on my PC and push the play button. I see timer running in Ario and AIR led blinking on router. Led on the USB sound card doesn't blink as it should when working. And I can hear no sound.
I run mpc on router - and it gives me:

Code: Select all

root@OpenWrt:/mnt/usb/.mpd# mpc
volume: n/a   repeat: off   random: off   single: off   consume: off
I try mpc volume +10 and it gives me:

Code: Select all

root@OpenWrt:/mnt/usb/.mpd# mpc volume +10
error: ACK [52@0] {volume} problems setting volume
I'm using Asus WL-520GU (Backfire OpenWRT 10.03 brcm2.4), A4Tech USB Hub and plugged in it USB sound card (right this one: http://www.ebay.com/itm/New-USB-2-0-to- ... 4ab86672b4).

I've tried to comment following lines in mpd.conf

Code: Select all

#        mixer_device    "/dev/sound/mixer"      # optional
#       mixer_control   "PCM"           # optional
but no luck

related dmesg part:

Code: Select all

USB20H fcr: 0x64
USB20H shim cr: 0x8f7
PCI: Setting latency timer of device 00:03.1 to 64
ehci_hcd 00:03.1: PCI device 14e4:471a
ehci_hcd 00:03.1: irq 6, pci mem b8003800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:03.1: illegal capability!
ehci_hcd 00:03.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 ports detected
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 352 bytes per conntrack
hub.c: new USB device 00:03.1-1, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected
SB USB20H init
SB COREREV: 2
USB20H fcr: 0x64
USB20H shim cr: 0x8f7
PCI: Setting latency timer of device 00:03.0 to 64
usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
usb-ohci.c: usb-00:03.0, PCI device 14e4:471a
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
uhci.c: USB Universal Host Controller Interface driver v1.1
hub.c: new USB device 00:03.1-1.1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-32)
usb.c: registered new driver audio
audio.c: v1.0.0:USB Audio Class driver
hub.c: new USB device 00:03.1-1.1, assigned address 4
usbaudio: device 4 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
usbaudio: device 4 interface 2 altsetting 1 channels 1 framesize 2 configured
usbaudio: valid input sample rate 48000
usbaudio: valid input sample rate 44100
usbaudio: device 4 interface 2 altsetting 1: format 0x00000010 sratelo 44100 sratehi 48000 attributes 0x01
usbaudio: device 4 interface 1 altsetting 0 does not have an endpoint
usbaudio: device 4 interface 1 altsetting 1 channels 2 framesize 2 configured
usbaudio: valid output sample rate 48000
usbaudio: valid output sample rate 44100
usbaudio: device 4 interface 1 altsetting 1: format 0x01000010 sratelo 44100 sratehi 48000 attributes 0x01
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 6 type 0x0301
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usbaudio: warning: found 1 of 2 logical channels.
usbaudio: assuming that a stereo channel connected directly to a mixer is missing in search (got Labtec headset?). Should be fine.
usbaudio: registered mixer 14,0
usbaudio: constructing mixer for Terminal 7 type 0x0101
usbaudio: registered mixer 14,16
usb_audio_parsecontrol: usb_audio_state at 80a3c7a0
hub.c: new USB device 00:03.1-1.4, assigned address 5
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: JetFlash  Model: TS1GJFV30         Rev: 8.07
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 1986560 512-byte hdwr sectors (1017 MB)
sda: Write Protect is off
Partition check:
 /dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 5

opkg list-installed

Code: Select all

root@OpenWrt:/etc/modules.d# opkg list-installed
alsa-lib - 1.0.21a-1
base-files - 42-r20728
block-mount - 0.1.0-1
busybox - 1.15.3-2
dnsmasq - 2.52-2
dropbear - 0.52-4
fdisk - 2.13.0.1-4
firewall - 1-10
glib2 - 2.22.2-1
iptables - 1.4.6-2
iptables-mod-conntrack - 1.4.6-2
iptables-mod-nat - 1.4.6-2
kernel - 2.4.37.9-1
kmod-brcm-wl - 2.4.37.9+4.150.10.5.3-6
kmod-diag - 2.4.37.9-6
kmod-fs-ext2 - 2.4.37.9-1
kmod-fs-ext3 - 2.4.37.9-1
kmod-fs-vfat - 2.4.37.9-1
kmod-ipt-conntrack - 2.4.37.9-1
kmod-ipt-core - 2.4.37.9-1
kmod-ipt-nat - 2.4.37.9-1
kmod-ipt-nathelper - 2.4.37.9-1
kmod-ppp - 2.4.37.9-1
kmod-pppoe - 2.4.37.9-1
kmod-scsi-core - 2.4.37.9-1
kmod-sound-core - 2.4.37.9-1
kmod-switch - 2.4.37.9-3
kmod-usb-audio - 2.4.37.9-1
kmod-usb-core - 2.4.37.9-1
kmod-usb-ohci - 2.4.37.9-1
kmod-usb-storage - 2.4.37.9-1
kmod-usb-uhci - 2.4.37.9-1
kmod-usb2 - 2.4.37.9-1
kmod-wlcompat - 2.4.37.9+4.150.10.5.3-6
ldconfig - 0.9.30.1-42
libc - 0.9.30.1-42
libcurl - 7.19.6-1
libfaad2 - 2.7-1
libffmpeg - 20080419-2
libflac - 1.1.2-1
libgcc - 3.4.6-42
libiconv - 1.11-1
libid3tag - 0.15.1b-3
libintl - 0.17-1
libiptc - 1.4.6-2
liblua - 5.1.4-6
libmad - 0.15.1b-3
libmms - 0.5-1
libogg - 1.1.4-2
libopenssl - 0.9.8m-3
libpthread - 0.9.30.1-42
librt - 0.9.30.1-42
libshout - 2.2.2-1
libspeex - 1.2beta3.2-2
libsqlite3 - 3.6.20-2
libuci - 12012009.5-1
libuci-lua - 12012009.5-1
libvorbis - 1.2.3-1
libvorbisidec - 1.0.2+svn14261-1
libxtables - 1.4.6-2
lua - 5.1.4-6
luci - 0.9.0-1
luci-admin-core - 0.9.0-1
luci-admin-full - 0.9.0-1
luci-admin-mini - 0.9.0-1
luci-app-firewall - 0.9.0-1
luci-app-initmgr - 0.9.0-1
luci-cbi - 0.9.0-1
luci-core - 0.9.0-1
luci-http - 0.9.0-1
luci-i18n-english - 0.9.0-1
luci-ipkg - 0.9.0-1
luci-lmo - 0.9.0-1
luci-nixio - 0.9.0-1
luci-sgi-cgi - 0.9.0-1
luci-sys - 0.9.0-1
luci-theme-base - 0.9.0-1
luci-theme-openwrt - 0.9.0-1
luci-uci - 0.9.0-1
luci-uvl - 0.9.0-1
luci-web - 0.9.0-1
mdnsresponder - 107.6-1
mpc - 0.17-1
mpd - 0.15.8-2
mtd - 12
nas - 4.150.10.5.3-6
nvram - 5
opkg - 513-2
ppp - 2.4.4-5
ppp-mod-pppoe - 2.4.4-5
uci - 12012009.5-1
uhttpd - 7
wireless-tools - 29-4
wlc - 4.150.10.5.3-6
zlib - 1.2.3-5

I'm feeling I'm right near success and would appreciate your help.
User avatar
gerben
Posts: 164
Joined: Sat Oct 16, 2010 8:41 am
Location: Netherlands

Re: mpc playing but no output ?

Post by gerben »

Is MPD is running in the background?

Code: Select all

ps -aux
should give a list of all processes.
rcr
Posts: 4
Joined: Wed Jul 11, 2012 9:54 am

Re: mpc playing but no output ?

Post by rcr »

Here's my command sequence with ps -aux output:

Code: Select all

root@OpenWrt:~# mpd /mnt/usb/etc/mpd.conf
root@OpenWrt:~# mpc playlist
>1) gilmourish.com - high_hopes_backingtrack
root@OpenWrt:~# mpc play
gilmourish.com - high_hopes_backingtrack
[playing] #1/1   0:00/7:50 (0%)
volume: n/a   repeat: off   random: off   single: off   consume: off
root@OpenWrt:~# ps -aux
  PID USER       VSZ STAT COMMAND
    1 root      1408 S    init
    2 root         0 SW   [keventd]
    3 root         0 SWN  [ksoftirqd_CPU0]
    4 root         0 SW   [kswapd]
    5 root         0 SW   [bdflush]
    6 root         0 SW   [kupdated]
    8 root         0 SW   [mtdblockd]
  101 root         0 SWN  [jffs2_gcd_mtd4]
  125 root      1408 S    init
  151 root      1420 S    syslogd -C16
  153 root      1400 S    klogd
  274 root         0 SW   [khubd]
  304 root      1408 S    udhcpc -t 0 -i eth0.1 -b -p /var/run/eth0.1.pid -O ro
  517 root         0 SW   [usb-storage-0]
  520 root         0 SW   [scsi_eh_0]
  688 root      1120 S    /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
  694 root      1408 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -t
  709 nobody     860 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
  717 root      1180 S    /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
  718 root      1412 S    -ash
  725 root         0 SW   [kjournald]
  735 root     13540 S    mpd /mnt/usb/etc/mpd.conf
  736 root     13540 S    mpd /mnt/usb/etc/mpd.conf
  737 root     13540 S    mpd /mnt/usb/etc/mpd.conf
  738 root     13540 S    mpd /mnt/usb/etc/mpd.conf
  741 root     13540 S    mpd /mnt/usb/etc/mpd.conf
  742 root      1404 R    ps -aux
rcr
Posts: 4
Joined: Wed Jul 11, 2012 9:54 am

Re: mpc playing but no output ?

Post by rcr »

Well, after several attempts to run mpc via OSS and ALSA in various freaking ways I've reinstalled OpenWRT from MightyOhm precompiled image. Surprisingly it installed successfully, so gerben was right - some error during download or I don't know..
And it works! Thanks to MightyOhm for great tutorial!

As conclusion - either Backfire 10.03, nor Backfire 10.03.1 (a bit slower than 10.03) won't work with described setup. At least that didn't work for me.
Post Reply