1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MPD

Discussion in 'Tomato Firmware' started by Gameman Advanced Kid, Apr 5, 2014.

  1. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    i read whatever my eyes could find, but no success. i installed shibby extrases for the right firmware version (116), entware, and then MPD. i get this every time i launch.


    root@unknown:/tmp/home/root# mpd
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    output: No "audio_output" defined in config file
    output: Attempt to detect audio output device
    output: Attempting to detect a alsa audio device
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
    alsa: Error opening default ALSA device: No such file or directory
    output: Attempting to detect a oss audio device
    oss: Error opening OSS device "/dev/dsp": No such file or directory
    oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
    output: Unable to detect an audio device
    root@unknown:/tmp/home/root#



    this is on Shibby Tomato 116 on the Linksys E3000 router. i am using a usb 2.0 hub with an el cheapo 3d sound card (which works on ALL computers) that i bought on ebay and an 8gb flash drive with a 4.50gb partition (fart32), 1gb opt partition (ext2), 1gb jffs partition (ext2), and Linux swap. it is a SAN DISK flash drive.
     
  2. leandroong

    leandroong Addicted to LI Member

    This is the way I do it:
    1. Requirements: usb audio and extra kernels provided by Shibby FW.

    2. modify /opt/etc/mpd.conf, ff are impts:
    music_directory "/opt/mpd/music"
    playlist_directory "/opt/mpd/playlists"
    db_file "/opt/mpd/database"
    log_file "syslog"
    state_file "/opt/etc/mpd.state"
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    }
    audio_output {
    type "oss"
    ## name "Cheap 7D Sound USB Device"
    mixer_control "PHONEOUT" # optional
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    }


    3. load extra kernel and run mpd via script, mpd-start.sh
    #!/bin/sh
    if [ -z "`lsmod | grep snd_usb_audio`" ]; then
    insmod /opt/audio-modules/r1/soundcore.ko
    insmod /opt/audio-modules/r1/snd.ko
    insmod /opt/audio-modules/r1/snd-hwdep.ko
    insmod /opt/audio-modules/r1/snd-page-alloc.ko
    insmod /opt/audio-modules/r1/snd-timer.ko
    insmod /opt/audio-modules/r1/snd-pcm.ko
    insmod /opt/audio-modules/r1/snd-seq-device.ko
    insmod /opt/audio-modules/r1/snd-seq.ko
    insmod /opt/audio-modules/r1/snd-rawmidi.ko
    insmod /opt/audio-modules/r1/snd-seq-midi-event.ko
    insmod /opt/audio-modules/r1/snd-seq-midi.ko
    insmod /opt/audio-modules/r1/snd-mixer-oss.ko
    insmod /opt/audio-modules/r1/snd-pcm-oss.ko
    insmod /opt/audio-modules/r1/snd-usb-lib.ko
    insmod /opt/audio-modules/r1/snd-usb-audio.ko
    break
    fi
    sleep 1
    mpd /opt/etc/mpd.conf
    mpc clear

    #ex of laoding internet radios, radio-chinese.m3u
    mpd load radio-chinese
    mpc random on
    mpc volume 30
    mpc play
     
  3. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    where do i put mpd-start.sh? im getting mpd-start.sh not found even though i put it where im trying to run it at which is /opt.
     
  4. leandroong

    leandroong Addicted to LI Member

    Anywhere. Mine is located on /opt folder. What matters, you specify path where it is located.
    Run it like "sh /opt/mpd-start.sh".
    Edit: You can place mpd-start.sh on /opt/sbin folder for simplicity and run it, "sh mpd-start.sh"
     
  5. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    not working

    /opt/sbin$ mpd-start.sh
    -sh: mpd-start.sh: Permission denied
    /opt/sbin$ sh mpd-start.sh
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    output: No "audio_output" defined in config file
    output: Attempt to detect audio output device
    output: Attempting to detect a alsa audio device
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
    alsa: Error opening default ALSA device: No such file or directory
    output: Attempting to detect a oss audio device
    oss: Error opening OSS device "/dev/dsp": No such file or directory
    oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
    output: Unable to detect an audio device
    mpd-start.sh: line 22: mpc: not found
     
  6. leandroong

    leandroong Addicted to LI Member

    Last edited: Apr 6, 2014
  7. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    link is irrelevent now. all i need to do is properly config mpd.conf since every error im getting is related to the mpd.conf file.

    will edit or add more updates later as i progress through this pitn process.

    EDIT:
    /mnt/opt/mpd$ mpd
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    Failed to load database: Database corrupted
    oss: /dev/dsp not found
    oss: /dev/sound/dsp not found
    output: line 12: error trying to open default OSS device
     
  8. leandroong

    leandroong Addicted to LI Member

    Note: You need to create folder where your music, playlists and database located also, needed in mpd.conf
    Mine was created on /opt/mpd with subfolder, music, playlists and file database.
     
  9. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    http://gyazo.com/f410719ad392cf8ad3dab68e99b244d2

    got the script to work...but still getting the same message

    /mnt/opt/sbin$ sh mpd-start.sh
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    Failed to load database: Database corrupted
    oss: /dev/dsp not found
    oss: /dev/sound/dsp not found
    output: line 12: error trying to open default OSS device
    mpd-start.sh: line 21: mpc: not found

    EDIT2: i checked the dev folder for "dsp" and i didnt see it anywhere...help?
     
  10. leandroong

    leandroong Addicted to LI Member

    1. create MPD folder mention above
    2. For initialization, you need to create database on that folder manually. I don't remember the command.

    edit2: It seems that you are lacking mpc optware. Normally, you install it
    opkg install mpc mpd

    edit3: database creation, http://mpd.wikia.com/wiki/Music_Player_Daemon_Database_Updating
     
  11. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    did you miss in my OP that i had installed entware instead of mpd? so what do i do now? erase everything and start over using optware?
     
  12. leandroong

    leandroong Addicted to LI Member

    mpc and mpd are repository of entware optware. You just need to install MPC, opkg install mpc.
     
  13. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    installed mpc and still no dice.

    /opt/sbin$ mpd-start.sh
    -sh: mpd-start.sh: Permission denied
    /opt/sbin$ sh mpd-start.sh
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    Failed to load database: Database corrupted
    oss: /dev/dsp not found
    oss: /dev/sound/dsp not found
    output: line 12: error trying to open default OSS device
    error: Connection refused


    so i tried again after making folders /dev/sound/dsp and /dev/dsp only to get thsi message

    /dev$ sh /opt/sbin/mpd-start.sh
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    Failed to load database: Database corrupted
    oss: /dev/dsp is not a character device
    oss: /dev/sound/dsp is not a character device
    output: line 12: error trying to open default OSS device
    error: Connection refused
     
  14. leandroong

    leandroong Addicted to LI Member

    1. so i tried again after making folders /dev/sound/dsp and /dev/dsp
    ans: you don't need this, just audio kernel folder, /opt/etc/audio-modules and copy there Shibby extras required kernel modules:
    soundcore.ko
    snd.ko
    snd-hwdep.ko
    snd-page-alloc.ko
    snd-timer.ko
    snd-pcm.ko
    snd-seq-device.ko
    snd-seq.ko
    snd-rawmidi.ko
    snd-seq-midi-event.ko
    snd-seq-midi.ko
    snd-mixer-oss.ko
    snd-pcm-oss.ko
    snd-usb-lib.ko
    snd-usb-audio.ko

    Note: you need to edit path for this inside mpd-start.sh

    2. Create folder, MPD (whatever), that holds folder music and playlists

    3. edit /opt/etc/mpd.conf for data folder location

    4. create initial database, http://mpd.wikia.com/wiki/Music_Player_Daemon_Database_Updating
     
  15. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    /opt/etc$ sh /opt/sbin/mpd-start.sh
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    Failed to load database: Database corrupted
    oss: /dev/dsp not found
    oss: /dev/sound/dsp not found
    output: line 12: error trying to open default OSS device
    error: Connection refused
    /opt/etc$ mpd update
    Failed to open update: No such file or directory
    /opt/etc$ mpd --create-db

    ** (mpd:2586): CRITICAL **: option parsing failed: Unknown option --create-db

    /opt/etc$ mpc update
    error: Connection refused
    /opt/etc$ sh mpc update
    sh: can't open 'mpc'
     
  16. leandroong

    leandroong Addicted to LI Member

    1. Try using my database attached file, copy it to data folder (MPD). Edit mpd.conf and correct database path.
    database url: https://shared.com/pp23fpx88u?s=l
    Note: database will self correct by issuing command "mpc update"

    2. are you using 7D Sound USB Device? If different, you need to make research how to invoke it

    check my previous note as follow:

    2. modify /opt/etc/mpd.conf, ff are impts:
    music_directory "/opt/mpd/music"
    playlist_directory "/opt/mpd/playlists"
    db_file "/opt/mpd/database"
    log_file "syslog"
    state_file "/opt/etc/mpd.state"
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    }
    audio_output {
    type "oss"
    ## name "Cheap 7D Sound USB Device"
    mixer_control "PHONEOUT" # optional
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    }

    Edit: To this to check if sound driver kernel added: on tools->system command, type
    lsmod, click execute. You should get like this
    Module Size Used by Tainted: P
    snd_usb_audio 59328 2
    snd_usb_lib 12608 1 snd_usb_audio
    snd_pcm_oss 40160 1
    snd_mixer_oss 14880 2 snd_pcm_oss
    snd_seq_midi 4160 0
    snd_seq_midi_event 4160 1 snd_seq_midi
    snd_rawmidi 17728 2 snd_usb_lib,snd_seq_midi
    snd_seq 47216 2 snd_seq_midi,snd_seq_midi_event
    snd_seq_device 5008 3 snd_seq_midi,snd_rawmidi,snd_seq
    snd_pcm 56960 2 snd_usb_audio,snd_pcm_oss
    snd_timer 17200 2 snd_seq,snd_pcm
    snd_page_alloc 5520 1 snd_pcm
    snd_hwdep 5072 1 snd_usb_audio
    snd 38224 9 snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_rawmidi,snd_seq,snd_seq_device,snd_pcm,snd_timer,snd_hwdep
    soundcore 4016 3 snd
     
    Last edited: Apr 6, 2014
  17. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    well the only thing im getting now oss errors. i checked for the sound card using dmesg and i couldnt find it. i do see the sound drivers though. here are the results of dmesg.

    login as: root
    root@192.168.2.4's password:

    Tomato v1.28.0000 MIPSR2-116 K26 USB Nocat-VPN
    ========================================================
    Welcome to the Linksys E3000 [TomatoUSB]
    Uptime: 05:34:35 up 4 min
    Load average: 0.07, 0.05, 0.01
    Mem usage: 20.6% (used 12.46 of 60.56 MB)
    WAN : 0.0.0.0/0 @ C0:C1:C0:4F:58:A6
    LAN : 192.168.2.4/24 @ DHCP: -
    WL0 : Sellman357 @ channel: US6 @ C0:C1:C0:4F:58:A7
    WL1 : Tomato50 @ channel: USauto @ C0:C1:C0:4F:58:A8
    ========================================================

    root@unknown:/tmp/home/root# dmesg
    Linux version 2.6.22.19 (root@tomato) (gcc version 4.2.4) #47 Sat Jan 18 17:10:4 0 CET 2014
    CPU revision is: 00019740
    Determined physical RAM map:
    memory: 04000000 @ 00000000 (usable)
    On node 0 totalpages: 16384
    Normal zone: 128 pages used for memmap
    Normal zone: 0 pages reserved
    Normal zone: 16256 pages, LIFO batch:3
    Built 1 zonelists. Total pages: 16256
    Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
    Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
    Primary data cache 32kB, 4-way, linesize 32 bytes.
    Synthesized TLB refill handler (20 instructions).
    Synthesized TLB load handler fastpath (32 instructions).
    Synthesized TLB store handler fastpath (32 instructions).
    Synthesized TLB modify handler fastpath (31 instructions).
    PID hash table entries: 256 (order: 8, 1024 bytes)
    CPU: BCM4716 rev 1 pkg 10 at 480 MHz
    Using 240.000 MHz high precision timer.
    console [ttyS0] enabled
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Memory: 61840k/65536k available (33k kernel code, 3640k reserved, 2726k data, 11 6k init, 0k highmem)
    Calibrating delay loop... 239.20 BogoMIPS (lpj=1196032)
    Mount-cache hash table entries: 512
    NET: Registered protocol family 16
    PCI: Using membase 8000000
    PCI: Initializing host
    PCI: Reset RC
    PCI: Fixing up bus 0
    PCI: Fixing up bridge
    PCI: Setting latency timer of device 0000:01:00.0 to 64
    PCI: Fixing up bridge
    PCI: Setting latency timer of device 0000:01:00.1 to 64
    PCI: Enabling device 0000:01:00.1 (0004 -> 0006)
    PCI: Fixing up bus 1
    NET: Registered protocol family 2
    Time: MIPS clocksource has been installed.
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP reno registered
    squashfs: version 3.0 (2006/03/15) Phillip Lougher
    io scheduler noop registered (default)
    HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
    N_HDLC line discipline registered.
    Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
    serial8250: ttyS0 at MMIO 0xb8000300 (irq = 8) is a 16550A
    PPP generic driver version 2.4.2
    MPPE/MPPC encryption/compression module registered
    NET: Registered protocol family 24
    PPPoL2TP kernel driver, V0.18.3
    PPTP driver version 0.8.5
    Physically mapped flash: Found 1 x16 devices at 0x0 in 8-bit bank
    Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
    Amd/Fujitsu Extended Query Table at 0x0040
    number of CFI chips: 1
    cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
    Flash device: 0x800000 at 0x1c000000
    Creating 5 MTD partitions on "Physically mapped flash":
    0x00000000-0x00040000 : "pmon"
    0x00040000-0x007f0000 : "linux"
    0x00127c00-0x00780000 : "rootfs"
    0x00780000-0x007f0000 : "jffs2"
    0x007f0000-0x00800000 : "nvram"
    Found a 0MB serial flash
    sflash: found no supported devices
    u32 classifier
    OLD policer on
    Netfilter messages via NETLINK v0.30.
    nf_conntrack version 0.5.0 (512 buckets, 4096 max)
    ip_tables: (C) 2000-2006 Netfilter Core Team
    ipt_account 0.1.21 : Piotr Gasidlo <quaker@barbara.eu.org>, http://www.barbara.e u.org/~quaker/ipt_account/
    net/ipv4/netfilter/tomato_ct.c [Jan 18 2014 16:16:04]
    NET: Registered protocol family 1
    NET: Registered protocol family 10
    ip6_tables: (C) 2000-2006 Netfilter Core Team
    NET: Registered protocol family 17
    802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
    All bugs added by David S. Miller <davem@redhat.com>
    VFS: Mounted root (squashfs filesystem) readonly.
    Freeing unused kernel memory: 116k freed
    Warning: unable to open an initial console.
    emf: module license 'Proprietary' taints kernel.
    PCI: Setting latency timer of device 0000:00:02.0 to 64
    eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.10.147.0
    PCI: Setting latency timer of device 0000:00:01.0 to 64
    eth1: Broadcom BCM4329 802.11 Wireless Controller 5.10.147.0
    PCI: Enabling device 0000:01:01.0 (0000 -> 0002)
    PCI: Setting latency timer of device 0000:01:01.0 to 64
    eth2: Broadcom BCM4322 802.11 Wireless Controller 5.10.147.0
    Algorithmics/MIPS FPU Emulator v1.5
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    SCSI subsystem initialized
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    PCI: Setting latency timer of device 0000:00:04.1 to 64
    ehci_hcd 0000:00:04.1: EHCI Host Controller
    ehci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 1
    ehci_hcd 0000:00:04.1: irq 5, io mem 0x18004000
    ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 2 ports detected
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    PCI: Setting latency timer of device 0000:00:04.0 to 64
    ohci_hcd 0000:00:04.0: OHCI Host Controller
    ohci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 2
    ohci_hcd 0000:00:04.0: irq 5, io mem 0x18009000
    usb usb2: configuration #1 chosen from 1 choice
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 2 ports detected
    vlan1: add 33:33:00:00:00:01 mcast address to master interface
    vlan1: add 01:00:5e:00:00:01 mcast address to master interface
    vlan1: dev_set_allmulti(master, 1)
    vlan1: dev_set_promiscuity(master, 1)
    device eth0 entered promiscuous mode
    device vlan1 entered promiscuous mode
    usb 2-1: new full speed USB device using ohci_hcd and address 2
    usb 2-1: configuration #1 chosen from 1 choice
    hub 2-1:1.0: USB hub found
    hub 2-1:1.0: 4 ports detected
    device eth1 entered promiscuous mode
    device eth2 entered promiscuous mode
    br0: port 3(eth2) entering forwarding state
    br0: port 2(eth1) entering forwarding state
    br0: port 1(vlan1) entering forwarding state
    vlan2: Setting MAC address to c0 c1 c0 4f 58 a6.
    usb 2-1.1: new full speed USB device using ohci_hcd and address 3
    IMQ starting with 2 devices...
    IMQ driver loaded successfully.
    Hooking IMQ after NAT on PREROUTING.
    Hooking IMQ before NAT on POSTROUTING.
    usb 2-1.1: device not accepting address 3, error -62
    usb 2-1.1: new full speed USB device using ohci_hcd and address 4
    usb 2-1.1: device not accepting address 4, error -62
    usb 2-1.1: new full speed USB device using ohci_hcd and address 5
    usb 2-1.1: device descriptor read/64, error -62
    usb 2-1.1: device descriptor read/64, error -62
    usb 2-1.1: new full speed USB device using ohci_hcd and address 6
    usb 2-1.1: device descriptor read/64, error -62
    usb 2-1.1: device descriptor read/64, error -62
    hub 2-1:1.0: unable to enumerate USB device on port 1
    usb 2-1.4: new full speed USB device using ohci_hcd and address 7
    usb 2-1.4: not running at top speed; connect to a high speed hub
    usb 2-1.4: configuration #1 chosen from 1 choice
    scsi0 : SCSI emulation for USB Mass Storage devices
    Registered led device: 2-1.4
    scsi 0:0:0:0: Direct-Access SanDisk Cruzer Glide 1.26 PQ: 0 ANSI: 6
    sd 0:0:0:0: [sda] 15633408 512-byte hardware sectors (8004 MB)
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
    sd 0:0:0:0: [sda] Assuming drive cache: write through
    sd 0:0:0:0: [sda] Assuming drive cache: write through
    sda: sda1 sda2 sda3 sda4
    sd 0:0:0:0: [sda] Attached SCSI disk
    EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
    usbcore: registered new interface driver snd-usb-audio
    usbcore: registered new interface driver hiddev
    usbcore: registered new interface driver usbhid
    drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
    EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
    root@unknown:/tmp/home/root#
    root@unknown:/tmp/home/root# sh /opt/sbin/mpd-start.sh
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    oss: /dev/dsp not found
    oss: /dev/sound/dsp not found
    output: line 12: error trying to open default OSS device
    error: Connection refused
    root@unknown:/tmp/home/root#
     
  18. leandroong

    leandroong Addicted to LI Member

    let see if we can make it play sound first:
    1. opkg install madplay
    2. test play:
    wget -O - http://ca.ah.fm:9000 | madplay -
     
  19. leandroong

    leandroong Addicted to LI Member

    my partial dmesg shows:
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    PCI: Setting latency timer of device 0000:00:03.1 to 64
    ehci_hcd 0000:00:03.1: EHCI Host Controller
    ehci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 1
    ehci_hcd 0000:00:03.1: irq 6, io mem 0x18003800
    ehci_hcd 0000:00:03.1: USB 0.0 started, EHCI 1.00
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 2 ports detected
    usb 1-1: new high speed USB device using ehci_hcd and address 2
    usb 1-1: configuration #1 chosen from 1 choice
    hub 1-1:1.0: USB hub found
    hub 1-1:1.0: 7 ports detected
    usb 1-1.5: new full speed USB device using ehci_hcd and address 3
    usb 1-1.5: configuration #1 chosen from 1 choice
    input: USB Headphone Set as /class/input/input0
    input: USB HID v1.00 Device [USB Headphone Set] on usb-0000:00:03.1-1.5
    usb 1-1.6: new high speed USB device using ehci_hcd and address 4
    usb 1-1.6: configuration #1 chosen from 1 choice

    edit2:
    root@BTRouter2:/tmp/home/root# mpc
    AnimeNfo Radio | Serving you the best Anime and Doujin music!: Aya - Over Night (Le Chevalier D'Eon OST)
    [playing] #38/47 48:27/0:00 (0%)
    volume: 30% repeat: off random: on single: off consume: off
    root@BTRouter2:/tmp/home/root#

    edit3: From your dmesg, it appears that your sound card not detectable
     
    Last edited: Apr 6, 2014
  20. leandroong

    leandroong Addicted to LI Member

    read this: http://tomatousb.org/doc:play-audio-with-usb-audio-adapter
    required optwares:
    1. opkg instll mpc mpd
    2. opkg install sqlite libuclibc++

    edit: my oss_mixer
    root@BTRouter2:/tmp/home/root# cat /proc/asound/card0/oss_mixer
    VOLUME "" 0
    BASS "" 0
    TREBLE "" 0
    SYNTH "" 0
    PCM "" 0
    SPEAKER "" 0
    LINE "" 0
    MIC "Mic" 0
    CD "" 0
    IMIX "" 0
    ALTPCM "" 0
    RECLEV "" 0
    IGAIN "" 0
    OGAIN "" 0
    LINE1 "" 0
    LINE2 "" 0
    LINE3 "" 0
    DIGITAL1 "" 0
    DIGITAL2 "" 0
    DIGITAL3 "" 0
    PHONEIN "" 0
    PHONEOUT "Speaker" 0
    VIDEO "" 0
    RADIO "" 0
    MONITOR "" 0
    root@BTRouter2:/tmp/home/root#

    edit 2: my audio setting, from mpd.conf
    audio_output {
    type "oss"
    ## name "Cheap 7D Sound USB Device"
    mixer_control "PHONEOUT" # optional
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    }

    edit 3: take note of prefix "##". Your setting device "/dev/dsp" seems enabled
     
    Last edited: Apr 6, 2014
  21. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    this is strange. i dont see usb audio anywhere even after changing plugs. i didnt enable usb 1.1 support and tested this usb audio on other computers to make sure its working properly...maybe i goofed up somewhere...

    EDIT: i would like to add that this was working before i did anything else...

    EDIT2: i reset the usb hub and re-attached the devices. mpd is now running but is unable to "open audio device" according to auremo. tried using BJJB and i got nothing.
     
    Last edited: Apr 6, 2014
  22. leandroong

    leandroong Addicted to LI Member

  23. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    http://gyazo.com/74581b6715a92c47f410f449fb4b40d5

    EDIT:

    root@unknown:/tmp/home/root# wget -O - http://ca.ah.fm:9000 | madplay -
    MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
    Connecting to ca.ah.fm:9000 (206.223.161.106:9000)
    audio: /dev/dsp: No such device
    root@unknown:/tmp/home/root#


    seems like we still have a problem with the device. i tried dmesg again and i see the usb audio device.
     
    Last edited: Apr 6, 2014
  24. leandroong

    leandroong Addicted to LI Member

    1. MPD do not have gui. Access via ssh or use cp MPD app to control music player.
    2. Have you tried using my mpd.conf?

    Edit: If still it does not, your problem lies on your usb audio sound card or usb hub. Madplay is independent from mpd and both not playing audio sound, it could only conclude that usb audio not properly detected by the router usb port.

    Edit2: Try your usb audio on pc and check for audio sound. Plug and insert headset. It should produce sound. No sound means defective.
     
    Last edited: Apr 6, 2014
  25. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    go re-read my previous posts.
     
  26. leandroong

    leandroong Addicted to LI Member

    Sorry, I can't help you anymore. Maybe others can..
     
  27. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    try helping me on this part

    when i run madplay i get this

    audio: /dev/dsp: No such device

    and when i run dmesg i see the usb audio device.

    input: USB Headphone Set as /class/input/input0
    input: USB HID v1.00 Device [USB Headphone Set] on usb-0000:00:04.0-1
     
  28. Gameman Advanced Kid

    Gameman Advanced Kid Connected Client Member

    never mind! i got it working!

    i had to turn the router and the hub off, then hub on first, then the router second. i am able to control it using bills jamming jukebox and auremo.

    thanks!
     

Share This Page