2016年11月7日月曜日

lightMPD/upnpgw(アダプターモード)の設定

apu**  2台を使った lightMPD/upnpgw(アダプターモード)の設定です。
アップサンプリングや DSD 関連の設定は一切行っていない "素" の状態です。





ightMPD/upnpgw

/lightMPD/lightmpd.conf

#
#
[network]
        interface=eth0
        address=192.168.1.20
        gateway=192.168.1.1
        netmask=255.255.255.0
        nameserver=192.168.1.1
        domain=mydomain.jp

[ntp]
        server=ntp.nict.jp
        ntpd=no
        timezone=Asia/Tokyo

[network:player]
        interface=eth1
        address=10.0.0.1
        netmask=255.255.255.252

[cpuaffinity]
        type=0

[irqpriority]
        setdefault=no

[telnetd]
#  yes | no
        enable=yes
        port=23

[upmpdcli]
        enable=yes
        upnpiface = eth0
        mpdhost=10.0.0.2
        mpdport=6600
        friendlyname=UpLightMpd
        ohproductroom=UpLightMpd
        openhome = 1
        ohmetapersist = 1
        logfilename=/var/log/upmpdcli.log
        loglevel = 3

[polipo]
        enable=yes
#
        proxyAddress = 0.0.0.0
        allowedClients = 10.0.0.2
#
        chunkHighMark = 1024
        chunkLowMark = 256
        chunkCriticalMark = 768
        objectHighMark = 2048
#
        dnsQueryIPv6 = no
        cacheIsShared = false
        dnsUseGethostbyname = yes
        disableConfiguration = true
        disableIndexing = true
        disableLocalInterface = true

[nat]
        masquerade=network:player
        dnsforwarding=no
        ntpforwarding=no
        8023=10.0.0.2:23

-----------------------------------------------------------------------
/lightMPD/mpd.conf

初期設定のまま
------------------------------------------------------------------------
/boot/grub/menu.lst

#
#
default 0
timeout 0
#
serial --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=0 serial console
hiddenmenu
#
#
title lightMPD/upnpgw
root (hd0,0)

# upnpgw
kernel /boot/bzImage-4.6.5rt10-64 root=/dev/ram0 ro console=ttyS0,115200n8 ramdisk_size=98304 rootfstype=romfs rootdelay=5 clocksource=hpet lightmpd.systype=apu1 lightmpd.bootdev=/dev/sda1

#  standalone
#kernel          /boot/bzImage-4.6.5rt10-64 root=/dev/ram0 ro console=ttyS0,115200n8 ramdisk_size=98304 rootfstype=romfs rootdelay=5 clocksource=tsc idle=poll processor.max_cstate=1 isolcpus=1 nohz_full=1 rcu_nocbs=1 lightmpd.systype=apu1 lightmpd.bootdev=/dev/sda1

#
initrd /boot/initrd-lightmpd-64



lightMPD-v1.0.2

/lightMPD/lightmpd.conf

#
#
[network]
interface=eth0
address=10.0.0.2
netmask=255.255.255.252
gateway=10.0.0.1
nameserver=192.168.1.1
domain=mydomain.jp

[ntp]
server=ntp.nict.jp
ntpd=no
timezone=Asia/Tokyo

[mpd]
load_module=mpd-0.19.14rt-native-dsd
sticker_file=/tmp/sticker.sql
db_file=/tmp/tag_cache
log_file=/dev/null

[httpd]
#  yes | no
enable=no
port=80

[telnetd]
#  yes | no
enable=yes
port=23

[ympd]
#  yes | no
enable=no
webport=8080
mpdport=6600

[webconsole]
#  yes | no
#  start page:   http://thishost:${port}/index.html
enable=no
port=9000


[cpuaffinity]
#  0   normal
#  1   cpu1:  usb irq handler
#  2   cpu1:  usb irq handler,mpd
        type=2

[irqpriority]
setdefault=no
xhci_hcd#0=FIFO:99
# ehci_hcd:usb1=FIFO:99


[debug]
interfaces=yes
resolvconf=yes
ntpd=yes
ntpconf=yes
ifconfig=yes
cards=yes
mounts=yes
ps=yes
mpdversion=yes
date=yes
ntpq=yes
music=yes
messages=yes
save=no

------------------------------------------------------------------
/lightMPD/mpd.conf

#
#
realtime_option {
    memlock               "yes"
    stack_reserve         "2048"
    heap_reserve         "10240"
    main_priority         "OTHER:0"
    player_priority       "FIFO:53"
    decoder_priority     "OTHER:0"
    update_priority       "OTHER:0"
}

audio_output {
        type             "alsa"
        name             "uda"
        device           "hw:0,0"
        priority         "FIFO:54"
mixer_type       "disabled"
# dsd_usb         "yes"
# dsd_native              "yes"
# dsd_native_type         "2"
buffer_time     "150000"
period_time     "37500"
}

input {
    plugin     "curl"
    proxy      "10.0.0.1:8123"
}

###### decoder selector
# decoder_selector {
#    suffix                       "mp3"
#    plugin                       "mad"
# }

# decoder_selector {
#    suffix                       "m4a"
#    plugin                       "ffmpeg"
# }

# decoder_selector {
#    suffix                       "wav"
#    plugin                       "audiofile"
#    scan_plugin                  "ffmpeg"
# }

# decoder_selector {
#    suffix                       "flac"
#    plugin                       "flac"
# }

database {
   plugin "simple"
   path "/var/lib/mpd/tag_cache"
   compress "no"
}

#
music_directory "/var/lib/mpd/Music"
playlist_directory "/var/lib/mpd/playlists"
#sticker_file             "/var/lib/mpd/sticker.sql"
log_file "/var/lib/mpd/mpd.log"
pid_file "/var/run/mpd.pid"
state_file "/var/lib/mpd/state"

user "root"
group                   "root"

bind_to_address "any"
port "6600"

#
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
metadata_to_use "artist,album,title,track,genre,date,disc"

#audio_output_format "96000:24:2"
#
# extended audio format
#audio_output_format "X4L4:24:2"

#LIBSAMPLERATE
#samplerate_converter            "Best Sinc Interpolator"
#samplearte_converter            "Medium Sinc Interpolator"
#samplearte_converter            "Fastest Sinc Interpolator"
#samplearte_converter            "ZOHc Interpolator"
#samplearte_converter            "Linear Sinc Interpolator"
#samplearte_converter            "internal"

# SOXR
samplerate_converter            "soxr very high"
#samplerate_converter            "soxr high"
#samplerate_converter            "soxr medium"
#samplerate_converter            "soxr low"
#samplerate_converter            "soxr quick"
#
#samplerate_converter            "soxr very high openmp"
#samplerate_converter            "soxr high openmp"
#samplerate_converter            "soxr medium openmp"
#samplerate_converter            "soxr low openmp"
#samplerate_converter            "soxr quick openmp"


follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
default_permissions     "read,add,control,admin"
#
mixer_type "disabled"
#
audio_buffer_size "2048"
buffer_before_play "20%"
#
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"

----------------------------------------------
/boot/grub/menu.lst

初期設定のまま




一応これで動作しているのですが、「ここが変」という箇所がありましたらご教示いただけるとありがたいです。

0 件のコメント:

コメントを投稿