1

Temat: Karta muzyczna USB audio i mpd

Wykonałem instalację karty dźwiękowej USB na Asus'ie WL500gP (KAMIKAZE (8.09.2, r18801), zgodnie z instrukcją na: http://eko.one.pl/?p=openwrt-audio
Po wykonaniu polecenia:
                                            root@OpenWrt:/# /etc/init.d/mpd start
otrzymuję komunikaty:

/usr/bin/mpd: can't load library 'libasound.so.2'
/usr/bin/mpd: can't load library 'libasound.so.2'
MPD_HOST and/or MPD_PORT environment variables are not set
error: problems connecting to "localhost" on port 6600: Connection refused
MPD_HOST and/or MPD_PORT environment variables are not set
error: problems connecting to "localhost" on port 6600: Connection refused
MPD_HOST and/or MPD_PORT environment variables are not set
error: problems connecting to "localhost" on port 6600: Connection refused
MPD_HOST and/or MPD_PORT environment variables are not set
error: problems connecting to "localhost" on port 6600: Connection refused

polecenie:
                root@OpenWrt:/# find -type f -name libasound*
daje wynik pusty, czyli nie mam potrzebnej biblioteki.
Pytanie:
1. Jak doinstalowć potrzebną bibliotekę, lub jakie dowiązanie zrobić?
2. Jak usunąć drugi problem, czyli jak wyże brak ustawionych zmienny środowiskowych i odrzucenie połączenie na porcie 6600 -zakładam że to nie wina biblioteki ?

jeżeli będą pomocne dane to załączam wpisy z dmesg oraz o załadowanych modułach

I. dmesg
CPU revision is: 00029006
Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, linesize 16 bytes.
Linux version 2.4.35.4 (user@debian) (gcc version 3.4.6 (OpenWrt-2.0)) #6 Sun Jan 10 22:38:25 CET 2010
Setting the PFC to its default value
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
CPU: BCM4704 rev 9 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 263.78 BogoMIPS
Memory: 30460k/32768k available (1431k kernel code, 2308k reserved, 100k data, 84k init, 0k highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Initializing host
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Setting latency timer of device 01:00.0 to 64
PCI: Fixing up bus 1
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Registering mini_fo version $Id$
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
b44.c:v0.93 (Mar, 2004)
PCI: Setting latency timer of device 00:01.0 to 64
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:1b:fc:c0:72:8e
PCI: Setting latency timer of device 00:02.0 to 64
eth1: Broadcom 47xx 10/100BaseT Ethernet 40:10:18:00:00:2d
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 v1.3 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x17b8d4
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x000bb800-0x00240000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007f0000-0x00800000 : "nvram"
0x00240000-0x007f0000 : "rootfs_data"
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
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.
Mounted devfs on /dev
Freeing unused kernel memory: 84k freed
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'ASUS WL-500g Premium'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
roboswitch: Probing device eth0: found!
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
jffs2.bbc: SIZE compression mode activated.
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
eth0.0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device eth0.0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: port 1(eth0.0) entering forwarding state
br-lan: topology change detected, propagating
SCSI subsystem driver Revision: 1.00
eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Setting latency timer of device 01:02.0 to 64
PCI: Enabling device 01:02.0 (0004 -> 0006)
PCI/DMA
wl0: wlc_attach: chiprev 2 coreunit 0 corerev 9 cccap 0x640009 maccap 0x0 band 2.4G, phy_type 2 phy_rev 7 ana_rev 3
wl0: Broadcom BCM4318 802.11 Wireless Controller 4.150.10.5
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
Journalled Block Device driver loaded
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 336 bytes per conntrack
usb-uhci.c: $Revision: 1.275 $ time 22:36:39 Jan 10 2010
usb-uhci.c: High bandwidth mode enabled
PCI: Enabling device 01:03.0 (0000 -> 0001)
UHCI: Enabling VIA 6212 workarounds
usb-uhci.c: USB UHCI at I/O 0x100, IRQ 2
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Enabling device 01:03.1 (0000 -> 0001)
UHCI: Enabling VIA 6212 workarounds
usb-uhci.c: USB UHCI at I/O 0x120, IRQ 2
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
PCI: Enabling device 01:03.2 (0000 -> 0002)
ehci_hcd 01:03.2: PCI device 1106:3104
ehci_hcd 01:03.2: irq 2, pci mem c023d000
usb.c: new USB bus registered, assigned bus number 3
EHCI: Enabling VIA 6212 workarounds
ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 4 ports detected
usb.c: registered new driver audio
audio.c: v1.0.0:USB Audio Class driver
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
hub.c: connect-debounce failed, port 1 disabled
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 01:03.2-2, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: MAXTOR S  Model:         9RAB5YHF  Rev: D
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
hub.c: new USB device 01:03.0-1, assigned address 2
usbaudio: device 2 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured
usbaudio: valid input sample rate 24000
usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 24000 sratehi 24000 attributes 0x00
usbaudio: device 2 interface 1 altsetting 0 does not have an endpoint
usbaudio: device 2 interface 1 altsetting 1 channels 2 framesize 2 configured
usbaudio: valid output sample rate 48000
usbaudio: device 2 interface 1 altsetting 1: format 0x01000010 sratelo 48000 sratehi 48000 attributes 0x00
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 3 type 0x0301
usbaudio: registered mixer 14,0
usbaudio: constructing mixer for Terminal 6 type 0x0101
usbaudio: registered mixer 14,16
usb_audio_parsecontrol: usb_audio_state at 81721220
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding Swap: 2040244k swap-space (priority -1)
device wl0 entered promiscuous mode
wl0: attempt to add interface with same source address.
br-lan: port 2(wl0) entering learning state
br-lan: port 2(wl0) entering forwarding state
br-lan: topology change detected, propagating

II. lsmod
Module                  Size  Used by    Tainted: P
usb-storage            69648   2
printer                 9852   0 (unused)
audio                  47112   0 (unused)
wlcompat                9504   0 (unused)
ehci-hcd               20556   0 (unused)
usb-uhci               27164   0 (unused)
ip_conntrack_tftp       1628   0 (unused)
ip_nat_irc              2296   0 (unused)
ip_conntrack_irc        3028   1
ip_nat_ftp              2920   0 (unused)
ip_conntrack_ftp        4172   1
ipt_MASQUERADE          1316   2
iptable_nat            20856   3 [ip_nat_irc ip_nat_ftp ipt_MASQUERADE]
ipt_state                408   6
ip_conntrack           22304   3 [ip_conntrack_tftp ip_nat_irc ip_conntrack_irc ip_nat_ftp ip_conntrack_ftp ipt_MASQUERADE iptable_nat ipt_state]
sd_mod                 12500   4
ipt_REJECT              3932   2
ipt_TCPMSS              2316   2
ipt_LOG                 3804   0 (unused)
ipt_multiport            748   0 (unused)
ipt_mac                  556   0 (unused)
ipt_limit                892   1
iptable_mangle          2156   0 (unused)
iptable_filter          1676   1
ip_tables              16960  13 [ipt_MASQUERADE iptable_nat ipt_state ipt_REJECT ipt_TCPMSS ipt_LOG ipt_multiport ipt_mac ipt_limit iptable_mangle iptable_filter]
ext2                   40304   0 (unused)
ext3                   71388   1
jbd                    51152   1 [ext3]
soundcore               4048   3 [audio]
ppp_async               8044   0 (unused)
ppp_generic            22380   0 [ppp_async]
slhc                    6064   0 [ppp_generic]
vfat                   11340   0 (unused)
fat                    34448   0 [vfat]
wl                    666560   0 (unused)
nls_iso8859-1           2672   0 (unused)
nls_cp437               4192   0 (unused)
usbcore                71296   1 [usb-storage printer audio ehci-hcd usb-uhci]
scsi_mod               66048   2 [usb-storage sd_mod]
switch-robo             5180   0 (unused)
switch-core             5104   0 [switch-robo]
diag                   50448   0 (unused)

pozdr
Radek

2

Odp: Karta muzyczna USB audio i mpd

1. alsa-lib
2. w pliku konfiguracyjnym. A tak naprawdę to pewnie nie znajduje go dlatego o zmienne się pluje.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Karta muzyczna USB audio i mpd

ok dodałem alsa-lib  i przywróciłem oryginalny plik konfiguracyjny wcześniej było to co w instrukcji na stronie podanej wyżej, czyli (oczywiście ścieżki odpowiednio zmienione):
music_directory "/hdd/mpd/music"
    playlist_directory "/hdd/mpd/playlists"
    db_file "/hdd/mpd/database"
    pid_file "/hdd/mpd/pid"
    state_file "/hdd/mpd/state"
    input {
        plugin "curl"
    }
    mixer_type "software"

jedna wyskakiwał mi błąd w linii input (nierozpoznane polecenie) więc cały input {} usunąłem.
Po uruchomieniu otrzymuję:
root@OpenWrt:~# /etc/init.d/mpd start
sh: #: unknown operand
added /Except_the_New_Girl.mp3
No "audio_output" defined in config file
Attempt to detect audio output device
Attempting to detect a alsa audio device
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3513:(_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:3513:(_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:3513:(_snd_config_evaluate) function snd_func_refer returned error: No s               uch file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM default
Error opening default ALSA device: No such file or directory
Attempting to detect a oss audio device
oss: Error opening OSS device "/dev/dsp": No such file or directory
Successfully detected a oss audio device
adding: Except_the_New_Girl.mp3
Chris Isaak - Except the New Girl
[playing] #1/1   0:00/3:21 (0%)
volume:100%   repeat: off   random: off
Chris Isaak - Except the New Girl
[playing] #1/1   0:00/3:21 (0%)
volume:100%   repeat: on    random: off

Nie mam katalogu /dev/dsp ale mam fizycznie /dev/sound z zawartością:
root@OpenWrt:/dev/sound# ls -al
drwxr-xr-x    1 root     root            0 Jan  1  1970 .
drwxr-xr-x    1 root     root            0 Jan  1  1970 ..
crw-------    1 root     root      14,   3 Jan  1  1970 dsp
crw-------    1 root     root      14,   0 Jan  1  1970 mixer
crw-------    1 root     root      14,  16 Jan  1  1970 mixer1

po włączeniu:
root@OpenWrt:/dev/sound# mpc play
Chris Isaak - Except the New Girl
[playing] #1/1   2:35/3:21 (77%)
volume:100%   repeat: on    random: off
root@OpenWrt:/dev/sound#

słyszę tylko cichy ciągły pisk.

pozdr
Radek


plik mpd.conf
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.

# Required files and directories ##############################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database.
#
music_directory            "/home/share/torrenty/muza"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format.
#
playlist_directory        "/home/share/torrenty/muza/.mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
# server is not up.
#
db_file                "/home/share/torrenty/muza/.mpd/database"
#
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
log_file            "/home/share/torrenty/muza/.mpd/log"
error_file            "/home/share/torrenty/muza/.mpd/error-log"
###############################################################################


# Optional files ##############################################################
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default.
#
pid_file            "/home/share/torrenty/muza/.mpd/pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default.
#
state_file            "/home/share/torretny/muza/.mpd/state"
#
###############################################################################


# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as, if set. MPD should
# never run as root and you may use this setting to make MPD change its user
# id after initialization. Do not use this setting if you start MPD as an
# unprivileged user. This setting is disabled by default, and the server will
# run as root.
#
#user                "nobody"
#
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon.
#
# For network
#bind_to_address        "any"
#
# And for Unix Socket
#bind_to_address        "~/.mpd/socket"
#
# This setting is the port that is desired for the daemon to get assigned to.
#
#port                "6600"
#
# This setting controls the type of information which is logged. Available
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
#
#log_level            "default"
#
# If you have a problem with your MP3s ending abruptly it is recommended that
# you set this argument to "no" to attempt to fix the problem. If this solves
# the problem, it is highly recommended to fix the MP3 files with vbrfix
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point gapless MP3 playback can be enabled.
#
#gapless_mp3_playback            "yes"
#
# This setting enables MPD to create playlists in a format usable by other
# music players.
#
#save_absolute_paths_in_playlists    "no"
#
# This setting defines a list of tag types that will be extracted during the
# audio file discovery process. Optionally, 'comment' can be added to this
# list.
#
#metadata_to_use    "artist,album,title,track,name,genre,date,composer,performer,disc"
#
###############################################################################

# Symbolic link behavior ######################################################
#
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links outside of the configured music_directory.
#
#follow_outside_symlinks    "yes"
#
# If this setting is set to "yes, MPD will discover audio files by following
# symbolic links inside of the configured music_directory.
#
#follow_inside_symlinks        "yes"
#
###############################################################################

# Zeroconf / Avahi Service Discovery ##########################################
#
# If this setting is set to "yes", service information will be published with
# Zeroconf / Avahi.
#
#zeroconf_enabled        "yes"
#
# The argument to this setting will be the Zeroconf / Avahi unique name for
# this MPD server on the network.
#
#zeroconf_name            "Music Player"
#
###############################################################################


# Permissions #################################################################
#
# If this setting is set, MPD will require password authorization. The password
# can setting can be specified multiple times for different password profiles.
#
#password                        "password@read,add,control,admin"
#
# This setting specifies the permissions a user has who has not yet logged in.
#
#default_permissions             "read,add,control,admin"
#
###############################################################################


# Audio Output ################################################################
#
# MPD supports various audio output types, as well as playing through multiple
# audio outputs at the same time, through multiple audio_output settings
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
#
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
# other audio outputs.
#
# An example of an ALSA output:
#
#audio_output {
#    type            "alsa"
#    name            "My ALSA Device"
#    device            "hw:0,0"    # optional
#    format            "44100:16:2"    # optional
#}
#
# An example of an OSS output:
#
#audio_output {
#    type            "oss"
#    name            "My OSS Device"
#    device            "/dev/dsp"    # optional
#    format            "44100:16:2"    # optional
#}
#
# An example of a shout output (for streaming to Icecast):
#
#audio_output {
#    type            "shout"
#    encoding        "ogg"            # optional
#    name            "My Shout Stream"
#    host            "localhost"
#    port            "8000"
#    mount            "/mpd.ogg"
#    password        "hackme"
#    quality            "5.0"
#    bitrate            "128"
#    format            "44100:16:1"
#    protocol        "icecast2"        # optional
#    user            "source"        # optional
#    description        "My Stream Description"    # optional
#    genre            "jazz"            # optional
#    public            "no"            # optional
#    timeout            "2"            # optional
#}
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#
#audio_output {
#    type            "pulse"
#    name            "My Pulse Output"
#    server            "remote_server"
#    sink            "remote_server_sink"
#}
#
## An example of a null output (for no audio output):
#
#audio_output {
#    type            "null"
#    name            "My Null Output"
#}
#
# This setting will change all decoded audio to be converted to the specified
# format before being passed to the audio outputs. By default, this setting is
# disabled.
#
#audio_output_format        "44100:16:2"
#
# If MPD has been compiled with libsamplerate support, this setting specifies
# the sample rate converter to use.  Possible values can be found in the
# mpd.conf man page or the libsamplerate documentation. By default, this is
# setting is disabled.
#
#samplerate_converter        "Fastest Sinc Interpolator"
#
###############################################################################


# Volume control mixer ########################################################
#
# MPD has limited volume controls, to use them pick one below. If one is not
# specified it may be autodetected at startup, depending on the dependencies
# which were compiled into the server.
#
# An example for controlling an ALSA mixer:
#
#mixer_type            "alsa"
#mixer_device            "default"
#mixer_control            "PCM"
#
# An example for controlling an OSS mixer:
#
#mixer_type            "oss"
#mixer_device            "/dev/mixer"
#mixer_control            "PCM"
#
# This example is a general volume control mixer, it is used to adjust the
# volume of the audio sent to the audio output, and will work with all outputs.
#
#mixer_type            "software"
#
###############################################################################


# Normalization automatic volume adjustments ##################################
#
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "album" or "track". See <http://www.replaygain.org> for more
# details. By default this setting is disabled.
#
#replaygain            "album"
#
# This setting sets the pre-amp used for files that have ReplayGain tags. By
# default this setting is disabled.
#
#replaygain_preamp        "0"
#
# This setting enables on-the-fly normalization volume adjustment. This will
# result in the volume of all playing audio to be adjusted so the output has
# equal "loudness".
#
#volume_normalization        "no"
#
###############################################################################


# MPD Internal Buffering ######################################################
#
# This setting adjusts the size of internal decoded audio buffering. Changing
# this may have undesired effects. Don't change this if you don't know what you
# are doing.
#
#audio_buffer_size        "2048"
#
# This setting controls the percentage of the buffer which is filled before
# beginning to play. Increasing this reduces the chance of audio file skipping,
# at the cost of increased time prior to audio playback.
#
#buffer_before_play        "10%"
#
###############################################################################


# HTTP Streaming Proxy ########################################################
#
# This setting specifies the HTTP proxy to use for playing HTTP streams. By
# default, these settings will be disabled.
#
#http_proxy_host        "proxy.isp.com"
#http_proxy_port        "8080"
#http_proxy_user        "user"
#http_proxy_password        "password"
#
###############################################################################


# Resource Limitations ########################################################
#
# These settings are various limitations to prevent MPD from using too many
# resources. Generally, these settings should be minimized to prevent security
# risks, depending on the operating resources.
#
#connection_timeout        "60"
#max_connections        "10"
#max_playlist_length        "16384"
#max_command_list_size        "2048"
#max_output_buffer_size        "8192"
#
###############################################################################


# Character Encoding ##########################################################
#
# If file or directory names do not display correctly for your locale then you
# may need to modify this setting. After modification of this setting mpd
# --create-db must be run to change the database.
#
#filesystem_charset        "UTF-8"
#
# This setting controls the encoding that ID3v1 tags should be converted from.
#
#id3v1_encoding            "ISO-8859-1"
#
###############################################################################
mixer_type "software"

4

Odp: Karta muzyczna USB audio i mpd

Tobie alsa nie wykrywa karty dźwiękowej. usbaudio masz zainstalowane, wiec spróbuj w konfigu mpd wymusić oss a nie alsę.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Karta muzyczna USB audio i mpd

zrobiłem coś takiego:
odhaszowałem i zamieniłem ten wpis:
audio_output {
    type            "oss"
    name            "My OSS Device"
    device            "/dev/sound/dsp"    # optional          <-tutaj zamiana /dev/dsp na /dev/sound/dsp
    format            "44100:16:2"    # optional
}

teraz nie mam żadnych komunikatów o błędzie przy starcie mpd, ale dalej słyszę tylko ciągły pisk z karty -sama karta usb, tzn. jej dioda mruga tak jakby coś odtwarzała, ale to tylko pisk.

pozdr
Radek

6

Odp: Karta muzyczna USB audio i mpd

Wyrzuć ten format. I pobaw się opcją mixer, bo może Twoja karta musi być inaczej obsługiwana.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7 (edytowany przez wachu 2010-04-07 23:24:30)

Odp: Karta muzyczna USB audio i mpd

zachszowałem i odchaszowałem format ale to nic nie zmianie, przestawiałem opcje mixera:
device_mixer /dev/sound/mixer i na /dev/sound/mixer1
, to również nie zmieniło nic. Doinstalowałem kmod-alsa też nic nie dało.
Przy obecnej konfiguracji (plik niżej) nie mam żadnych błędów przy uruchamiania (w .mpd/error log też czysto) a jedynie co słyszę to tylko pisk (zmieniałem na różne plik mp3 i też nie działa) który wyłącza się wraz z końcem czasu odtwarzania (dla utworu niżej p 2 min i 43 sek).
To co znalazłem w necie: http://openlinksys.info/forum/viewthrea … ad_id=9806 gdzie inny kolega miał podobny problem i dopiero jak zainstalował wersję z jądrem 2.6 to mu zadziałało czy tylko takie rozwiązanie pozostaje?

moje pliki:

root@OpenWrt:~# /etc/init.d/mpd start
sh: #: unknown operand
added /plik2.mp3
unable to bind port 6600: Address already in use <- nie wyłączyłem wcześniej wystartowanego demona mpd
maybe MPD is still running?
Aborted
adding: plik2.mp3
plik2.mp3
[playing] #1/1   0:00/2:43 (0%)
volume: 39%   repeat: on    random: off
plik2.mp3
[playing] #1/1   0:00/2:43 (0%)
volume: 39%   repeat: off   random: off

root@OpenWrt:~# mpc clear
volume: 39%   repeat: off   random: off
root@OpenWrt:~# mpc add plik2.mp3
adding: plik2.mp3
root@OpenWrt:~# mpc play
plik2.mp3
[playing] #1/1   0:00/2:43 (0%)
volume: 39%   repeat: off   random: off



root@OpenWrt:~# dmesg
CPU revision is: 00029006
Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, linesize 16 bytes.
Linux version 2.4.35.4 (user@debian) (gcc version 3.4.6 (OpenWrt-2.0)) #6 Sun Jan 10 22:38:25 CET 2010
Setting the PFC to its default value
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
CPU: BCM4704 rev 9 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 263.78 BogoMIPS
Memory: 30460k/32768k available (1431k kernel code, 2308k reserved, 100k data, 84k init, 0k highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Initializing host
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Setting latency timer of device 01:00.0 to 64
PCI: Fixing up bus 1
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Registering mini_fo version $Id$
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
b44.c:v0.93 (Mar, 2004)
PCI: Setting latency timer of device 00:01.0 to 64
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:1b:fc:c0:72:8e
PCI: Setting latency timer of device 00:02.0 to 64
eth1: Broadcom 47xx 10/100BaseT Ethernet 40:10:18:00:00:2d
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 v1.3 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x17b8d4
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x000bb800-0x00240000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007f0000-0x00800000 : "nvram"
0x00240000-0x007f0000 : "rootfs_data"
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
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.
Mounted devfs on /dev
Freeing unused kernel memory: 84k freed
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'ASUS WL-500g Premium'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
roboswitch: Probing device eth0: found!
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
jffs2.bbc: SIZE compression mode activated.
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
SCSI subsystem driver Revision: 1.00
eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
eth0.0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device eth0.0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: port 1(eth0.0) entering forwarding state
br-lan: topology change detected, propagating
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Setting latency timer of device 01:02.0 to 64
PCI: Enabling device 01:02.0 (0004 -> 0006)
PCI/DMA
wl0: wlc_attach: chiprev 2 coreunit 0 corerev 9 cccap 0x640009 maccap 0x0 band 2.4G, phy_type 2 phy_rev 7 ana_rev 3
wl0: Broadcom BCM4318 802.11 Wireless Controller 4.150.10.5
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
Journalled Block Device driver loaded
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 336 bytes per conntrack
usb-uhci.c: $Revision: 1.275 $ time 22:36:39 Jan 10 2010
usb-uhci.c: High bandwidth mode enabled
PCI: Enabling device 01:03.0 (0000 -> 0001)
UHCI: Enabling VIA 6212 workarounds
usb-uhci.c: USB UHCI at I/O 0x100, IRQ 2
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Enabling device 01:03.1 (0000 -> 0001)
UHCI: Enabling VIA 6212 workarounds
usb-uhci.c: USB UHCI at I/O 0x120, IRQ 2
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
PCI: Enabling device 01:03.2 (0000 -> 0002)
ehci_hcd 01:03.2: PCI device 1106:3104
ehci_hcd 01:03.2: irq 2, pci mem c023d000
usb.c: new USB bus registered, assigned bus number 3
EHCI: Enabling VIA 6212 workarounds
ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 4 ports detected
usb.c: registered new driver audio
audio.c: v1.0.0:USB Audio Class driver
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
hub.c: connect-debounce failed, port 1 disabled
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb.c: registered new driver snd-usb-audio
hub.c: new USB device 01:03.2-2, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: MAXTOR S  Model:         9RAB5YHF  Rev: D
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
hub.c: new USB device 01:03.0-1, assigned address 2
usbaudio: device 2 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured
usbaudio: valid input sample rate 24000
usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 24000 sratehi 24000 attributes 0x00
usbaudio: device 2 interface 1 altsetting 0 does not have an endpoint
usbaudio: device 2 interface 1 altsetting 1 channels 2 framesize 2 configured
usbaudio: valid output sample rate 48000
usbaudio: device 2 interface 1 altsetting 1: format 0x01000010 sratelo 48000 sratehi 48000 attributes 0x00
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 3 type 0x0301
usbaudio: registered mixer 14,0
usbaudio: constructing mixer for Terminal 6 type 0x0101
usbaudio: registered mixer 14,16
usb_audio_parsecontrol: usb_audio_state at 81af98e0
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding Swap: 2040244k swap-space (priority -1)
device wl0 entered promiscuous mode
wl0: attempt to add interface with same source address.
br-lan: port 2(wl0) entering learning state
br-lan: port 2(wl0) entering forwarding state
br-lan: topology change detected, propagating

lsmod
root@OpenWrt:~# lsmod
Module                  Size  Used by    Tainted: P
snd-pcm-oss            47924   0 (unused)
snd-mixer-oss          15528   0 [snd-pcm-oss]
snd-usb-audio          58488   0 (unused)
snd-hwdep               6328   0 [snd-usb-audio]
snd-usb-lib            12676   0 [snd-usb-audio]
snd-rawmidi            18584   0 [snd-usb-lib]
snd-pcm                63924   0 [snd-pcm-oss snd-usb-audio]
snd-timer              19752   0 [snd-pcm]
snd                    50552   0 [snd-pcm-oss snd-mixer-oss snd-usb-audio snd-hwdep snd-usb-lib snd-rawmidi snd-pcm snd-timer]
snd-page-alloc          7184   0 [snd-mixer-oss snd-usb-audio snd-hwdep snd-rawmidi snd-pcm snd-timer snd]
usb-storage            69648   2
printer                 9852   0 (unused)
audio                  47112   1
wlcompat                9504   0 (unused)
ehci-hcd               20556   0 (unused)
usb-uhci               27164   0 (unused)
ip_conntrack_tftp       1628   0 (unused)
ip_nat_irc              2296   0 (unused)
ip_conntrack_irc        3028   1
ip_nat_ftp              2920   0 (unused)
ip_conntrack_ftp        4172   1
ipt_MASQUERADE          1316   2
iptable_nat            20856   3 [ip_nat_irc ip_nat_ftp ipt_MASQUERADE]
ipt_state                408   6
ip_conntrack           22304   3 [ip_conntrack_tftp ip_nat_irc ip_conntrack_irc ip_nat_ftp ip_conntrack_ftp ipt_MASQUERADE iptable_nat ipt_state]
sd_mod                 12500   4
ipt_REJECT              3932   2
ipt_TCPMSS              2316   2
ipt_LOG                 3804   0 (unused)
ipt_multiport            748   0 (unused)
ipt_mac                  556   0 (unused)
ipt_limit                892   1
iptable_mangle          2156   0 (unused)
iptable_filter          1676   1
ip_tables              16960  13 [ipt_MASQUERADE iptable_nat ipt_state ipt_REJECT ipt_TCPMSS ipt_LOG ipt_multiport ipt_mac ipt_limit iptable_mangle iptable_filter]
ext2                   40304   0 (unused)
ext3                   71388   1
jbd                    51152   1 [ext3]
soundcore               4048   3 [snd audio]
ppp_async               8044   0 (unused)
ppp_generic            22380   0 [ppp_async]
slhc                    6064   0 [ppp_generic]
vfat                   11340   0 (unused)
fat                    34448   0 [vfat]
wl                    666560   0 (unused)
nls_iso8859-1           2672   0 (unused)
nls_cp437               4192   0 (unused)
usbcore                71296   1 [snd-usb-audio snd-usb-lib usb-storage printer audio ehci-hcd usb-uhci]
scsi_mod               66048   2 [usb-storage sd_mod]
switch-robo             5180   0 (unused)
switch-core             5104   0 [switch-robo]
diag                   50448   0 (unused)

root@OpenWrt:~# vi /etc/mpd.conf
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.

# Required files and directories ##############################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database.
#
music_directory            "/home/share/torrenty/muza"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format.
#
playlist_directory        "/home/share/torrenty/muza/.mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
# server is not up.
#
db_file                "/home/share/torrenty/muza/.mpd/database"
#
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
log_file            "/home/share/torrenty/muza/.mpd/log"
error_file            "/home/share/torrenty/muza/.mpd/error-log"
###############################################################################


# Optional files ##############################################################
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default.
#
pid_file            "/home/share/torrenty/muza/.mpd/pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default.
#
state_file            "/home/share/torrenty/muza/.mpd/state"
#
###############################################################################


# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as, if set. MPD should
# never run as root and you may use this setting to make MPD change its user
# id after initialization. Do not use this setting if you start MPD as an
# unprivileged user. This setting is disabled by default, and the server will
# run as root.
#
#user                "nobody"
#
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon.
#
# For network
#bind_to_address        "any"
#
# And for Unix Socket
#bind_to_address        "~/.mpd/socket"
#
# This setting is the port that is desired for the daemon to get assigned to.
#
#port                "6600"
#
# This setting controls the type of information which is logged. Available
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
#
#log_level            "default"
#
# If you have a problem with your MP3s ending abruptly it is recommended that
# you set this argument to "no" to attempt to fix the problem. If this solves
# the problem, it is highly recommended to fix the MP3 files with vbrfix
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point gapless MP3 playback can be enabled.
#
#gapless_mp3_playback            "yes"
#
# This setting enables MPD to create playlists in a format usable by other
# music players.
#
#save_absolute_paths_in_playlists    "no"
#
# This setting defines a list of tag types that will be extracted during the
# audio file discovery process. Optionally, 'comment' can be added to this
# list.
#
#metadata_to_use    "artist,album,title,track,name,genre,date,composer,performer,disc"
#
###############################################################################

# Symbolic link behavior ######################################################
#
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links outside of the configured music_directory.
#
#follow_outside_symlinks    "yes"
#
# If this setting is set to "yes, MPD will discover audio files by following
# symbolic links inside of the configured music_directory.
#
#follow_inside_symlinks        "yes"
#
###############################################################################

# Zeroconf / Avahi Service Discovery ##########################################
#
# If this setting is set to "yes", service information will be published with
# Zeroconf / Avahi.
#
#zeroconf_enabled        "yes"
#
# The argument to this setting will be the Zeroconf / Avahi unique name for
# this MPD server on the network.
#
#zeroconf_name            "Music Player"
#
###############################################################################


# Permissions #################################################################
#
# If this setting is set, MPD will require password authorization. The password
# can setting can be specified multiple times for different password profiles.
#
#password                        "password@read,add,control,admin"
#
# This setting specifies the permissions a user has who has not yet logged in.
#
#default_permissions             "read,add,control,admin"
#
###############################################################################


# Audio Output ################################################################
#
# MPD supports various audio output types, as well as playing through multiple
# audio outputs at the same time, through multiple audio_output settings
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
#
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
# other audio outputs.
#
# An example of an ALSA output:
#
#audio_output {
#    type            "alsa"
#    name            "My ALSA Device"
#    device            "hw:14,3"    # optional
#    format            "44100:16:2"    # optional
#}
#
# An example of an OSS output:
#
audio_output {
    type            "oss"
    name            "My OSS Device"
    device            "/dev/sound/dsp"    # optional
    format            "44100:16:2"    # optional
}
#
# An example of a shout output (for streaming to Icecast):
#
#audio_output {
#    type            "shout"
#    encoding        "ogg"            # optional
#    name            "My Shout Stream"
#    host            "localhost"
#    port            "8000"
#    mount            "/mpd.ogg"
#    password        "hackme"
#    quality            "5.0"
#    bitrate            "128"
#    format            "44100:16:1"
#    protocol        "icecast2"        # optional
#    user            "source"        # optional
#    description        "My Stream Description"    # optional
#    genre            "jazz"            # optional
#    public            "no"            # optional
#    timeout            "2"            # optional
#}
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#
#audio_output {
#    type            "pulse"
#    name            "My Pulse Output"
#    server            "remote_server"
#    sink            "remote_server_sink"
#}
#
## An example of a null output (for no audio output):
#
#audio_output {
#    type            "null"
#    name            "My Null Output"
#}
#
# This setting will change all decoded audio to be converted to the specified
# format before being passed to the audio outputs. By default, this setting is
# disabled.
#
#audio_output_format        "44100:16:2"
#
# If MPD has been compiled with libsamplerate support, this setting specifies
# the sample rate converter to use.  Possible values can be found in the
# mpd.conf man page or the libsamplerate documentation. By default, this is
# setting is disabled.
#
#samplerate_converter        "Fastest Sinc Interpolator"
#
###############################################################################


# Volume control mixer ########################################################
#
# MPD has limited volume controls, to use them pick one below. If one is not
# specified it may be autodetected at startup, depending on the dependencies
# which were compiled into the server.
#
# An example for controlling an ALSA mixer:
#
#mixer_type            "alsa"
#mixer_device            "default"
#mixer_control            "PCM"
#
# An example for controlling an OSS mixer:
#
mixer_type            "oss"
mixer_device            "/dev/sound/mixer"
mixer_control            "PCM"
#
# This example is a general volume control mixer, it is used to adjust the
# volume of the audio sent to the audio output, and will work with all outputs.
#
#mixer_type            "software"
#
###############################################################################


# Normalization automatic volume adjustments ##################################
#
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "album" or "track". See <http://www.replaygain.org> for more
# details. By default this setting is disabled.
#
#replaygain            "album"
#
# This setting sets the pre-amp used for files that have ReplayGain tags. By
# default this setting is disabled.
#
#replaygain_preamp        "0"
#
# This setting enables on-the-fly normalization volume adjustment. This will
# result in the volume of all playing audio to be adjusted so the output has
# equal "loudness".
#
#volume_normalization        "no"
#
###############################################################################


# MPD Internal Buffering ######################################################
#
# This setting adjusts the size of internal decoded audio buffering. Changing
# this may have undesired effects. Don't change this if you don't know what you
# are doing.
#
#audio_buffer_size        "2048"
#
# This setting controls the percentage of the buffer which is filled before
# beginning to play. Increasing this reduces the chance of audio file skipping,
# at the cost of increased time prior to audio playback.
#
#buffer_before_play        "10%"
#
###############################################################################


# HTTP Streaming Proxy ########################################################
#
# This setting specifies the HTTP proxy to use for playing HTTP streams. By
# default, these settings will be disabled.
#
#http_proxy_host        "proxy.isp.com"
#http_proxy_port        "8080"
#http_proxy_user        "user"
#http_proxy_password        "password"
#
###############################################################################


# Resource Limitations ########################################################
#
# These settings are various limitations to prevent MPD from using too many
# resources. Generally, these settings should be minimized to prevent security
# risks, depending on the operating resources.
#
#connection_timeout        "60"
#max_connections        "10"
#max_playlist_length        "16384"
#max_command_list_size        "2048"
#max_output_buffer_size        "8192"
#
###############################################################################


# Character Encoding ##########################################################
#
# If file or directory names do not display correctly for your locale then you
# may need to modify this setting. After modification of this setting mpd
# --create-db must be run to change the database.
#
#filesystem_charset        "UTF-8"
#
# This setting controls the encoding that ID3v1 tags should be converted from.
#
#id3v1_encoding            "ISO-8859-1"
#
###############################################################################

pakiety
root@OpenWrt:~# opkg list_installed|grep kmod*
kmod-alsa - 2.4.35.4+1.0.14rc1-brcm-2.4-1 -
kmod-brcm-wl - 2.4.35.4+4.150.10.5.3-brcm-2.4-3.2 -
kmod-diag - 2.4.35.4-brcm-2.4-4.2 -
kmod-fs-ext2 - 2.4.35.4-brcm-2.4-1 -
kmod-fs-ext3 - 2.4.35.4-brcm-2.4-1 -
kmod-fs-vfat - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-conntrack - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-core - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-nat - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-nathelper - 2.4.35.4-brcm-2.4-1 -
kmod-nls-cp437 - 2.4.35.4-brcm-2.4-1 -
kmod-nls-iso8859-1 - 2.4.35.4-brcm-2.4-1 -
kmod-ppp - 2.4.35.4-brcm-2.4-1 -
kmod-pppoe - 2.4.35.4-brcm-2.4-1 -
kmod-scsi-core - 2.4.35.4-brcm-2.4-1 -
kmod-sound-core - 2.4.35.4-brcm-2.4-1 -
kmod-switch - 2.4.35.4-brcm-2.4-1.1 -
kmod-usb-audio - 2.4.35.4-brcm-2.4-1 -
kmod-usb-core - 2.4.35.4-brcm-2.4-1 -
kmod-usb-printer - 2.4.35.4-brcm-2.4-1 -
kmod-usb-storage - 2.4.35.4-brcm-2.4-1 -
kmod-usb-uhci-iv - 2.4.35.4-brcm-2.4-1 -
kmod-usb2 - 2.4.35.4-brcm-2.4-1 -
kmod-wlcompat - 2.4.35.4+4.150.10.5.3-brcm-2.4-3.2 -
i alsa
alsa-lib - 1.0.19-1 -

8

Odp: Karta muzyczna USB audio i mpd

Jakieś postępy?
mam identyczny problem
po wklepaniu
/etc/init.d/mpd start
sh: #: unknown operand
added /1.mp3
adding: 1.mp3
Czterej Panerni I Pies: Deszcze Niespokojne
[playing] #1/1   0:00/1:47 (0%)
volume: 39%   repeat: off   random: off
Czterej Panerni I Pies: Deszcze Niespokojne
[playing] #1/1   0:00/1:47 (0%)
volume: 39%   repeat: on    random: off

dioda mryga na karcie
ale zero dźwięku

9

Odp: Karta muzyczna USB audio i mpd

Nie, nic nie robiłem ale przymierzam się do zainstalowania firmware'u z jądrem 2.6
pozdr
Radek

10

Odp: Karta muzyczna USB audio i mpd

Mam najnowszy obraz na wrt160nl i do tego podłączoną kartę na USB (zielona z napisem 3D, allegrówka). Próbuje skonfigurować wszystko zgodnie z http://eko.one.pl/index.php?page=openwrt-audio jednak mam problem.

root@OpenWrt:/# /etc/init.d/mpd start
/etc/rc.common: line 78: amixer: not found
Failed to load database: Unexpected end of file
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 pcm_direct.c:1605:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
alsa: Error opening default ALSA device: Invalid argument
output: Unable to detect an audio device
Aborted

Mój mpd.conf wygląda tak:

music_directory "/hdd/mpd/music"
playlist_directory "/hdd/mpd/playlists"
db_file "/hdd/mpd/database"
pid_file "/hdd/mpd/pid"
state_file "/hdd/mpd/state"
input {
    plugin "curl"
}
mixer_type "software"

Katalogi oczywiście są potworzone.

ls /dev/snd pokazuje:

root@OpenWrt:/# ls /dev/snd/
controlC0  pcmC0D0c   pcmC0D0p   timer

dmesq

root@OpenWrt:/# dmesg
Linux version 2.6.32.16 (cezary@eko.one.pl) (gcc version 4.3.3 (GCC) ) #1 Sat Sep 11 11:23:49 CEST 2010
prom: fw_arg0=00000009, fw_arg1=a1f67fb0, fw_arg2=a1f68470, fw_arg3=00000008
MyLoader: sysp=aaaa5554, boardp=aaaa5554, parts=aaaa5554
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9130 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802ce580, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=WRT160NL
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29320k/32768k available (2094k kernel code, 3448k reserved, 397k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Linksys WRT160NL
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
yaffs Sep 11 2010 11:20:15 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: mx25l6405d (8192 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
6 wrt160nl partitions found on MTD device spi0.0
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000170000 : "kernel"
0x000000170000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=3E0000, len=400000
0x0000003e0000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x0000007f0000 : "nvram"
0x0000007f0000-0x000000800000 : "art"
0x000000040000-0x0000007e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
Registering RTL8306SD switch with Chip ID: 0x5988, version: 0x0000
eth0: connected to PHY at ag71xx-mdio:00 [uid=00008306, driver=Realtek RTL8306S]
eth1: Atheros AG71xx at 0xba000000, irq 5
eth1: connected to PHY at ag71xx-mdio:04 [uid=00008306, driver=Realtek RTL8306S]
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
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 on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
gpio-buttons driver version 0.1.2
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
Registered led device: wrt160nl:blue:power
Registered led device: wrt160nl:amber:wps
Registered led device: wrt160nl:blue:wps
Registered led device: wrt160nl:blue:wlan
ar71xx: pll_reg 0xb8050014: 0x13000a44
eth0: link up (100Mbps/Full duplex)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.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: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new high speed USB device using ar71xx-ehci 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: 4 ports detected
usb 1-1.1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1.1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb 1-1.2: new full speed USB device using ar71xx-ehci and address 4
usb 1-1.2: configuration #1 chosen from 1 choice
usb 1-1.3: new full speed USB device using ar71xx-ehci and address 5
usb 1-1.3: configuration #1 chosen from 1 choice
scsi 0:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  8.02 PQ: 0 ANSI: 0 CCS
usb-storage: device scan complete
sd 0:0:0:0: [sda] 7913471 512-byte logical blocks: (4.05 GB/3.77 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 45 00 00 08
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
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with writeback data mode.
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
eth0: link down
device eth0 entered promiscuous mode
Compat-wireless backport release: compat-wireless-2010-07-13-4-g04898a5
Backport based on wireless-2.6.git v2.6.35-rc6-48432-gdce358e
ar71xx: pll_reg 0xb8050014: 0x13000a44
eth0: link up (100Mbps/Full duplex)
br-lan: port 1(eth0) entering forwarding state
cfg80211: Calling CRDA to update world regulatory domain
ar71xx: pll_reg 0xb8050018: 0x13000a44
eth1: link up (100Mbps/Full duplex)
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
phy0: Selected rate control algorithm 'minstrel_ht'
phy0: Atheros AR9100 MAC/BB Rev:0 AR2122 RF Rev:a2 mem=0xb80c0000, irq=2
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (460 buckets, 1840 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
xt_time: kernel timezone is -0000
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver snd-usb-audio
usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x03F0 pid 0x0904
usbcore: registered new interface driver usblp
fuse init (API version 7.13)
eth1: link down
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx: pll_reg 0xb8050018: 0x13000a44
eth1: link up (100Mbps/Full duplex)
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx-wdt: enabling watchdog timer

Nie wiem do końca jak to odpalić. Czy może gdzieś w configu się pomyliłem czy jak ? Ewentualnie prosiłbym o pomoc "łopatologiczną" dla początkującego użytkownika linux.

11

Odp: Karta muzyczna USB audio i mpd

mpd się buntuje, coś zmienili widocznie teraz. Zrób grupę audio

echo "audio:x:1002:" >> /etc/group
chmod 777 /dev/snd/*

i uruchom mpd jeszcze raz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

12

Odp: Karta muzyczna USB audio i mpd

Cezary, wymiatasz :] Śmiga już ładnie.

13

Odp: Karta muzyczna USB audio i mpd

No widzisz...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14

Odp: Karta muzyczna USB audio i mpd

mam taki problem...

m-net ~ # ls /overlay/audio/music/                  
Children.mp3
m-net ~ # mpc add /overlay/audio/music/Children.mp3 
error: ACK [50@0] {add} directory or file not found

co jest grane?

ZyXEL NBG6716 (Gargoyle by obsy)

15

Odp: Karta muzyczna USB audio i mpd

Przenieś ten plik do /tmp i dodaj z tmp

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16

Odp: Karta muzyczna USB audio i mpd

m-net ~ # mpc add /tmp/Children.mp3 
error: ACK [50@0] {add} directory or file not found
m-net ~ # ls /tmp/Children.*   
/tmp/Children.mp3

i nic...

ZyXEL NBG6716 (Gargoyle by obsy)

17

Odp: Karta muzyczna USB audio i mpd

To tak jak być miał błąd w konfiguracji mpd.

zainstaluj strace i uruchom

strace -o /tmp/a.txt -f mpc add /tmp/Children.mp3 

A potem w a.txt poszukaj czego biedaczek szuka.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18

Odp: Karta muzyczna USB audio i mpd

takie cos jest.

m-net /overlay # cat /tmp/a.txt 
10202 execve("/usr/bin/mpc", ["mpc", "add", "/tmp/Children.mp3"], [/* 8 vars */]) = 0
10202 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
10202 stat("/etc/ld.so.cache", 0x7ffdae60) = -1 ENOENT (No such file or directory)
10202 open("/lib/libnsl.so.0", O_RDONLY) = 3
10202 fstat(3, {st_mode=S_IFREG|0644, st_size=869, ...}) = 0
10202 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
10202 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\0030\0\0\0004"..., 4096) = 869
10202 old_mmap(NULL, 69632, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
10202 old_mmap(0x2aabe000, 852, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
10202 old_mmap(0x2aace000, 869, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aace000
10202 close(3)                          = 0
10202 munmap(0x2aaae000, 4096)          = 0
10202 open("/lib/libgcc_s.so.1", O_RDONLY) = 3
10202 fstat(3, {st_mode=S_IFREG|0644, st_size=64300, ...}) = 0
10202 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
10202 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\33\340\0\0\0004"..., 4096) = 4096
10202 old_mmap(NULL, 131072, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aacf000
10202 old_mmap(0x2aacf000, 62236, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aacf000
10202 old_mmap(0x2aaee000, 2860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x2aaee000
10202 close(3)                          = 0
10202 munmap(0x2aaae000, 4096)          = 0
10202 open("/lib/libc.so.0", O_RDONLY)  = 3
10202 fstat(3, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0
10202 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
10202 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\252\300\0\0\0004"..., 4096) = 4096
10202 old_mmap(NULL, 487424, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaef000
10202 old_mmap(0x2aaef000, 396400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aaef000
10202 old_mmap(0x2ab5f000, 8148, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x60000) = 0x2ab5f000
10202 old_mmap(0x2ab61000, 19456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab61000
10202 close(3)                          = 0
10202 munmap(0x2aaae000, 4096)          = 0
10202 open("/lib/libc.so.0", O_RDONLY)  = 3
10202 fstat(3, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0
10202 close(3)                          = 0
10202 open("/lib/libc.so.0", O_RDONLY)  = 3
10202 fstat(3, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0
10202 close(3)                          = 0
10202 stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=20708, ...}) = 0
10202 mprotect(0x2ab5f000, 4096, PROT_READ) = 0
10202 mprotect(0x2aabc000, 4096, PROT_READ) = 0
10202 ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
10202 ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
10202 brk(0)                            = 0x422000
10202 brk(0x423000)                     = 0x423000
10202 ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
10202 brk(0x427000)                     = 0x427000
10202 socket(PF_NETLINK, SOCK_RAW, 0)   = 3
10202 bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
10202 getsockname(3, {sa_family=AF_NETLINK, pid=10202, groups=00000000}, [12]) = 0
10202 time(NULL)                        = 1294941945
10202 sendto(3, "\0\0\0\24\0\22\3\1M/>\371\0\0\0\0\0\252\322p", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0\360\0\20\0\2M/>\371\0\0'\332\0\0\3\4\0\0\0\1\0\1\0I\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 2648
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0\24\0\3\0\2M/>\371\0\0'\332\0\0\0\0\0\0\0\1\0\1\0I\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
10202 sendto(3, "\0\0\0\24\0\26\3\1M/>\372\0\0\0\0\0\252\322p", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0008\0\24\0\2M/>\372\0\0'\332\2\10\200\376\0\0\0\1\0\10\0\1\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 228
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0\24\0\3\0\2M/>\372\0\0'\332\0\0\0\0\0\0\0\1\0\10\0\1\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
10202 brk(0x428000)                     = 0x428000
10202 close(3)                          = 0
10202 socket(PF_NETLINK, SOCK_RAW, 0)   = 3
10202 bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
10202 getsockname(3, {sa_family=AF_NETLINK, pid=10202, groups=00000000}, [12]) = 0
10202 time(NULL)                        = 1294941945
10202 sendto(3, "\0\0\0\24\0\22\3\1M/>\371\0\0\0\0\0\252\322p", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0\360\0\20\0\2M/>\371\0\0'\332\0\0\3\4\0\0\0\1\0\1\0I\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 2648
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0\24\0\3\0\2M/>\371\0\0'\332\0\0\0\0\0\0\0\1\0\1\0I\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
10202 sendto(3, "\0\0\0\24\0\26\3\1M/>\372\0\0\0\0\0\252\322p", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0008\0\24\0\2M/>\372\0\0'\332\2\10\200\376\0\0\0\1\0\10\0\1\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 228
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0\24\0\3\0\2M/>\372\0\0'\332\0\0\0\0\0\0\0\1\0\10\0\1\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
10202 close(3)                          = 0
10202 socket(PF_NETLINK, SOCK_RAW, 0)   = 3
10202 bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
10202 getsockname(3, {sa_family=AF_NETLINK, pid=10202, groups=00000000}, [12]) = 0
10202 time(NULL)                        = 1294941945
10202 sendto(3, "\0\0\0\24\0\22\3\1M/>\371\0\0\0\0\0\262e4", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0\360\0\20\0\2M/>\371\0\0'\332\0\0\3\4\0\0\0\1\0\1\0I\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 2648
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0\24\0\3\0\2M/>\371\0\0'\332\0\0\0\0\0\0\0\1\0\1\0I\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
10202 sendto(3, "\0\0\0\24\0\26\3\1M/>\372\0\0\0\0\0\262e4", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0008\0\24\0\2M/>\372\0\0'\332\2\10\200\376\0\0\0\1\0\10\0\1\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 228
10202 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\0\0\0\24\0\3\0\2M/>\372\0\0'\332\0\0\0\0\0\0\0\1\0\10\0\1\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
10202 close(3)                          = 0
10202 open("/etc/hosts", O_RDONLY)      = 3
10202 ioctl(3, TIOCNXCL, 0x7ffda890)    = -1 ENOTTY (Inappropriate ioctl for device)
10202 read(3, "127.0.0.1   localhost.\n10.0.0.10"..., 4096) = 92
10202 read(3, "", 4096)                 = 0
10202 close(3)                          = 0
10202 open("/etc/resolv.conf", O_RDONLY) = 3
10202 ioctl(3, TIOCNXCL, 0x7ffda848)    = -1 ENOTTY (Inappropriate ioctl for device)
10202 read(3, "nameserver 127.0.0.1\n", 4096) = 21
10202 read(3, "", 4096)                 = 0
10202 close(3)                          = 0
10202 socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 3
10202 connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 28) = 0
10202 send(3, "\0\2\1\0\0\1\0\0\0\0\0\0\tlocalhost\0\0\1\0\1", 27, 0) = 27
10202 poll([{fd=3, events=POLLIN}], 1, 10000) = 1 ([{fd=3, revents=POLLIN}])
10202 recv(3, "\0\2\205\200\0\1\0\1\0\0\0\0\tlocalhost\0\0\1\0\1\300\f\0\1\0"..., 512, 0) = 43
10202 close(3)                          = 0
10202 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
10202 connect(3, {sa_family=AF_INET, sin_port=htons(6600), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
10202 fcntl(3, F_GETFL)                 = 0x2 (flags O_RDWR)
10202 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
10202 _newselect(4, [3], NULL, NULL, {10, 0}) = 1 (in [3], left {9, 999990})
10202 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
10202 _newselect(4, [3], NULL, NULL, {10, 0}) = 1 (in [3], left {9, 999993})
10202 recv(3, "OK MPD 0.15.0\n", 16384, 0) = 14
10202 _newselect(4, NULL, [3], NULL, {10, 0}) = 1 (out [3], left {9, 999992})
10202 send(3, "command_list_begin\n", 19, MSG_DONTWAIT) = 19
10202 _newselect(4, NULL, [3], NULL, {10, 0}) = 1 (out [3], left {9, 999990})
10202 send(3, "add \"/tmp/Children.mp3\"\n", 24, MSG_DONTWAIT) = 24
10202 _newselect(4, NULL, [3], NULL, {10, 0}) = 1 (out [3], left {9, 999991})
10202 send(3, "command_list_end\n", 17, MSG_DONTWAIT) = 17
10202 _newselect(4, [3], NULL, NULL, {10, 0}) = 1 (in [3], left {9, 999990})
10202 recv(3, "ACK [50@0] {add} directory or fi"..., 16384, 0) = 45
10202 write(2, "error: ", 7)            = 7
10202 write(2, "ACK [50@0] {add} directory or fi"..., 44) = 44
10202 write(2, "\n", 1)                 = 1
10202 close(3)                          = 0
10202 exit(1)                           = ?
ZyXEL NBG6716 (Gargoyle by obsy)

19

Odp: Karta muzyczna USB audio i mpd

Wygląda na to że mpd nie działa poprawnie. Podczas uruchamiania nie wykazuje błędów?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

20

Odp: Karta muzyczna USB audio i mpd

m-net /overlay # /etc/init.d/mpd start
Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 13568
  Mono:
  Front Left: Playback 40 [0%] [10.15dB] [on]
  Front Right: Playback 40 [0%] [10.15dB] [on]

tak to wyglada.

ZyXEL NBG6716 (Gargoyle by obsy)

21

Odp: Karta muzyczna USB audio i mpd

A katalogi masz właściwe w konfigu ustawione?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

22

Odp: Karta muzyczna USB audio i mpd

tak, ale za cholere nie moge zmienic grupy na audio...

chown -R /overlay/audio

i sie nie zmienia... ;/
moze to od tego? tylko nie wiem dlaczego..

ZyXEL NBG6716 (Gargoyle by obsy)

23

Odp: Karta muzyczna USB audio i mpd

Czemu tak? chown -R /audio

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

24

Odp: Karta muzyczna USB audio i mpd

no i tak jest tak...

m-net /overlay # mpc clear
volume:100%   repeat: off   random: off   single: off   consume: off
m-net /overlay # mpc add /tmp/Children.mp3 
error: ACK [50@0] {add} directory or file not found
m-net /overlay # ls /overlay/audio/
music      playlists  state
m-net /overlay # cat /etc/mpd.conf
music_directory "/overlay/audio/music"
playlist_directory "/overlay/audio/playlists"
db_file "/overlay/audio/database"
pid_file "/overlay/audio/pid"
state_file "/overlay/audio/state"
input {
    plugin "curl"
}
audio_output {
       type            "alsa"
       name            "My ALSA Device"
}
mixer_type "software"
ZyXEL NBG6716 (Gargoyle by obsy)

25

Odp: Karta muzyczna USB audio i mpd

Czemu cały czas podajesz /overlay?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.