PCM2704

Working DACs, USB dongles, ...

PCM2704

Postby gfx » 13 Feb 2014, 16:17

Hi I'm using my pi with a PCM2704 USB DAC. It's working fine with rune audio.
You can get them on ebay for about $10 including shipping, it contains a TI 2704 chip 3,5mm analog out (stereo)
and Optical/Digital out.
gfx
 
Posts: 3
Joined: 13 Feb 2014, 15:22

Re: PCM2704

Postby ACX » 13 Feb 2014, 18:47

Hi, thanks for our feedback. I'm curious about its working mode, please can you report here the debug infos as described in this guide?
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: PCM2704

Postby gfx » 15 Feb 2014, 20:33

Sure,
I tested before squeezeplug and mpd, but runeaudio works out of the box.
I did a pacman -Syu (to update arch) and it still works.



Code: Select all
###### System info ######
Linux version 3.10.29-2-ARCH (nobody@root-armv6-copy) (gcc version 4.8.2 20131219 (prerelease) (GCC) ) #1 PREEMPT Mon Feb 10 04:04:41 MST 2014

system load:   0.20 0.13 0.09 2/78 779

HW platform:   RaspberryPi (01)

playerID:   012d48f9d07def2a1ff8b4bcd927359ce7


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

Card list: (/proc/asound/cards)
--------------------------------------------------
 0 [DAC            ]: USB-Audio - USB Audio DAC
                      Burr-Brown from TI USB Audio DAC at usb-bcm2708_usb-1.3, full speed
 1 [ALSA           ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
                      bcm2835 ALSA

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

ALSA interface #1: (/proc/asound/card1/pcm0p/info)
--------------------------------------------------
card: 1
device: 0
subdevice: 0
stream: PLAYBACK
id: bcm2835 ALSA
name: bcm2835 ALSA
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 8
subdevices_avail: 8

interface #0 stream status: (/proc/asound/card0/stream0)
--------------------------------------------------------
Burr-Brown from TI USB Audio DAC at usb-bcm2708_usb-1.3, full speed : USB Audio

Playback:
  Status: Running
    Interface = 1
    Altset = 1
    Packet Size = 192
    Momentary freq = 44100 Hz (0x2c.199a)
  Interface 1
    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 2 OUT (ADAPTIVE)
    Rates: 32000, 44100, 48000
  Interface 1
    Altset 2
    Format: S16_LE
    Channels: 1
    Endpoint: 2 OUT (ADAPTIVE)
    Rates: 32000, 44100, 48000

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


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

Module = "snd_usb_audio"

  Attributes:
    coresize            = "116258"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "1"
    srcversion          = "6E57D0A9137160413C147C6"
    taint               = ""
    uevent              =

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

  Sections:
    .ARM.exidx.exit.text= "0xbf235804"
    .ARM.exidx.init.text= "0xbf2357fc"
    .ARM.exidx          = "0xbf237f14"
    .ARM.extab          = "0xbf237ed8"
    .ARM.extab.init.text= "0xbf2357f0"
    .bss                = "0xbf23affc"
    .data               = "0xbf238410"
    .exit.text          = "0xbf232c10"
    .gnu.linkonce.this_module= "0xbf23ae94"
    .init.text          = "0xbf244000"
    .note.gnu.build-id  = "0xbf2383ec"
    .rodata             = "0xbf232c20"
    .rodata.str1.4      = "0xbf23580c"
    .strtab             = "0xbf249518"
    .symtab             = "0xbf244048"
    .text               = "0xbf226000"
    __param             = "0xbf237e48"


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

hardware platform:   RaspberryPi
current orionprofile:   RuneAudio

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


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

rootfs / rootfs rw 0 0
/dev/root / ext4 rw,noatime,nouser_xattr,errors=remount-ro,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=85060k,nr_inodes=21265,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=30,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_prio 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
Ramdisk /run/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=262144k 0 0
tmpfs /tmp tmpfs rw 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/dev/mmcblk0p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /tmp tmpfs rw 0 0
/dev/root /var/tmp ext4 rw,noatime,nouser_xattr,errors=remount-ro,data=ordered 0 0
//10.0.0.102/public/music /mnt/MPD/diskstation cifs ro,relatime,vers=1.0,sec=ntlm,cache=strict,uid=45,forceuid,gid=45,forcegid,addr=10.0.0.102,unix,posixpaths,serverino,acl,rsize=16384,wsize=16384,actimeo=1 0 0


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

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

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

decoder {
      plugin "ffmpeg"
      enabled "no"
}

input {
      plugin "curl"
}

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

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

audio_output {
enabled      "no"
type      "alsa"
device      "hw:1,0"
name      "AnalogJack/HDMI"
}




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

php version:   5.5
debug level:   2


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

STATUS:      1
ID:      kngd3cu37t7m98c2j03s3l4r77
SAVE PATH:   /run


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

Array
(
    [orionprofile] => RuneAudio
    [cmediafix] => 0
    [playmod] => 0
    [ramplay] => 0
    [sessionid] => kngd3cu37t7m98c2j03s3l4r77
    [mpdconfhash] => 6365a4f344e7f0c09f3d8b10d29cd952
    [lastfm_apikey] => ba8ad00468a50732a3860832eaed0882
    [netconfhash] => 643f8967af551f683b3cfd493950c550
    [mpdconf_advanced] => 0
    [netconf_advanced] => 0
    [dev] =>
    [sourceconfhash] => d41d8cd98f00b204e9800998ecf8427e
    [sourceconf_advanced] => 1
    [debug] => 2
    [hiddendebug] => 0
    [opcache] => 1
    [playerid] => 012d48f9d07def2a1ff8b4bcd927359ce7
    [hwplatform] => RaspberryPi
    [hwplatformid] => 01
    [airplay] => 0
    [scrobbling_lastfm] => 0
    [scrobbling_librefm] => 0
    [scrobbling_jamendo] => 0
    [spotify] => 0
    [db_version] => 1.2
    [udevil] => 1
    [coverart] => 1
    [volume] => 0
    [ao] => 0
    [ntpserver] => ntp.xs4all.nl
    [hostname] => runeaudio
    [w_queue] =>
    [w_queueargs] =>
    [w_lock] => 0
    [w_active] => 0
    [w_jobID] =>
    [debugdata] =>
    [netconf] => Array
        (
            [eth0] => Array
                (
                    [ip] => 10.0.0.34
                )

        )

    [state] => play
    [notify] =>
)

Page created in 1.61440 seconds.

gfx
 
Posts: 3
Joined: 13 Feb 2014, 15:22

Re: PCM2704

Postby ACX » 16 Feb 2014, 12:25

It plays 16/32, 16/44.1 and 16/48 in adaptive mode, with no internal resampling involved. Not bad for $10 including shipping!
Have you noticed any overall sound quality change after the system update?
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: PCM2704

Postby gfx » 12 May 2014, 14:51

At first not, it played fine with the default settings. At the moment is horrible. Did a pacman -Suy today and the sound is scratchy, some settings are better, the last one in the list, if the Pi is busy sound quality improves.
Writng back an 0.2 image see if that works again. Doesn't want to get an ip address...
gfx
 
Posts: 3
Joined: 13 Feb 2014, 15:22

Re: PCM2704

Postby exetico » 12 Jul 2014, 12:31

Hello! How did it go?

I just ordered a USB DAC USB To S/PDIF PCM2704 Sound Card Decoder Board 3.5mm Analog Output for 8USD.

I will try test it with the 0.3-alpha.
Raspberry Pi with Rune, Synology NAS, OVH Debian Fileserver and a Shuttle HTPC.
User avatar
exetico
 
Posts: 14
Joined: 10 Jul 2014, 20:09
Location: Denmark

Re: PCM2704

Postby Peter » 15 Jul 2014, 21:51

Hi exetico

I use one of those S/PDIF cards, and it works fine with 0.3 Alpha. 8-)
User avatar
Peter
 
Posts: 64
Joined: 06 Mar 2014, 23:32

Re: PCM2704

Postby littlebone » 10 Nov 2014, 19:22

I just installed the 0.3 beta. This is my first try at using Rune. Up to now I have used Volumio. My DAC may be related to the PCM2704 listed here as it is a "MUSE USB DAC PCM2704 Sound Card Optical Coaxial Decoder USB to S/PDIF Converter". (whew!)

While the DAC does play, the hardware volume controls have the "Always at 100" issue. Is there a setting that I can play with that will fix this? My Volumio 1.3 implementation worked fine with this DAC, although V1.4 didn't play nice with it.

I am attaching the DEBUG info, if that will help any.

Edit: after reading other posts, I found that the full DEBUG was supposed to use pastebin.com: http://pastebin.com/KYBC4zR8
littlebone
 
Posts: 10
Joined: 10 Nov 2014, 18:43

Re: PCM2704

Postby rodgersan » 14 Nov 2014, 22:25

littlebone wrote:I just installed the 0.3 beta. This is my first try at using Rune. Up to now I have used Volumio. My DAC may be related to the PCM2704 listed here as it is a "MUSE USB DAC PCM2704 Sound Card Optical Coaxial Decoder USB to S/PDIF Converter". (whew!)

While the DAC does play, the hardware volume controls have the "Always at 100" issue. Is there a setting that I can play with that will fix this? My Volumio 1.3 implementation worked fine with this DAC, although V1.4 didn't play nice with it.

I am attaching the DEBUG info, if that will help any.

Edit: after reading other posts, I found that the full DEBUG was supposed to use pastebin.com: http://pastebin.com/KYBC4zR8


Hi,

Does it work if you use alsamixer to control volume? I got similar symptoms (permissions issues) and had it working changing mixer_device to "default" in /etc/mpd.conf. You may look for setting manually a different value for mixer_device.

Regards.
rodgersan
 
Posts: 20
Joined: 12 Jul 2014, 21:06

Re: PCM2704

Postby littlebone » 17 Nov 2014, 04:55

rodgersan wrote:Hi,

Does it work if you use alsamixer to control volume? I got similar symptoms (permissions issues) and had it working changing mixer_device to "default" in /etc/mpd.conf. You may look for setting manually a different value for mixer_device.

Regards.


Thanks for the reply.

I edited the file and set the value to default. It was using the alsa mixer already. But when I restarted the MPD from the interface, the default mixer was overlaid with the old value in the mpd.conf file. Then I re-edited the file and rebooted. The default was overlaid again. So, I looked for the rc.d folder in /etc, thinking I would manually restart the media player. But there is no such directory in /etc.

#EDIT3: Sigh. I rebooted the Pi this morning and my mpd.conf file was overlaid again. And I could not use the settings in #EDIT2 below to fix the hardware volume control. I now suspect that I had a software control all along, regardless of what my mpd.conf file and mpd reset were doing. So, I think that the hardware volume control for the PCM2704 DAC is not going to be working.
#EDIT2: The following configuration appears to turn the hardware configuration on. Of course, I could be fooling myself. It's been known to happen. :)

Code: Select all
audio_output {
name       "USB Audio DAC"
type       "alsa"
device       "hw:1,0"
mixer_type    "hardware"
#mixer_type   "software"
#mixer_device    "hw:hw:1,0"
mixer_device   "default"
#mixer_control    ",0"
mixer_control   "PCM,0"
mixer_index    "0"
dsd_usb    "yes"
auto_resample    "no"
auto_format    "no"
enabled    "yes"
}

audio_output {
name       "bcm2835 ALSA"
type       "alsa"
device       "hw:0,0"
mixer_type    "hardware"
mixer_device    "hw:hw:0,0"
mixer_control    ",0"
mixer_index    "0"
dsd_usb    "yes"
auto_resample    "no"
auto_format    "no"
}


I did an MPD reset following that edit and now the hardware volume control works. The MPD settings screen now shows me that the file has been manually modified and offers to either let me continue that way, or to reset back to defaults. For now, I'll keep my settings.


#EDIT1: I searched the forums for some idea of how to reset the MPD. I stumbled upon the command systemctl restart mpd. That did restart the MPD, but the setting of 'default' for mixer type did not fix the volume control for a hardware DAC. It is still stuck at 100.
littlebone
 
Posts: 10
Joined: 10 Nov 2014, 18:43

support RuneAudio Donate with PayPal

Next

Return to Compatibility list

Who is online

Users browsing this forum: No registered users and 2 guests