USB DAC disconnecting/issues

Hello everyone.

I have trouble using my USB DAC, in particular this one:
hifimediy.com/index.php?route=pr … duct_id=83
I have found it on a list as supported by this distribution (tried Raspyfi too) and it should be generally supported by Linux.

In the beginning I should point out it works without issues on Macbook.
On raspberry it sometimes appear in dmesg log, but strangely disconnects. Most of the time it doesn’t appear at all. Here is one where it appeared:

[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.10.25+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #624 PREEMPT Tue Jan 7 20:10:18 GMT 2014 [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache [ 0.000000] Machine: BCM2708 [ 0.000000] cma: CMA: reserved 16 MiB at 0e000000 [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] On node 0 totalpages: 61440 [ 0.000000] free_area_init_node: node 0, pgdat c05cfd6c, node_mem_map c067d000 [ 0.000000] Normal zone: 480 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 61440 pages, LIFO batch:15 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 60960 [ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x3 bcm2708.serial=0x3a212fc4 smsc95xx.macaddr=B8:27:EB:21:2F:C4 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0xfa00000 vc_mem.mem_size=0x10000000 force_turbo=1 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 elevator=noop rootfstype=ext4 rootwait smsc95xx.turbo_mode=N [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Memory: 240MB = 240MB total [ 0.000000] Memory: 220524k/220524k available, 25236k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc : 0xcf800000 - 0xff000000 ( 760 MB) [ 0.000000] lowmem : 0xc0000000 - 0xcf000000 ( 240 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc05727b4 (5546 kB) [ 0.000000] .init : 0xc0573000 - 0xc0597424 ( 146 kB) [ 0.000000] .data : 0xc0598000 - 0xc05d0870 ( 227 kB) [ 0.000000] .bss : 0xc05d0870 - 0xc067c3e0 ( 687 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:330 [ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms [ 0.000000] Switching to timer-based delay loop [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] console [tty1] enabled [ 0.001188] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000) [ 0.001254] pid_max: default: 32768 minimum: 301 [ 0.001717] Mount-cache hash table entries: 512 [ 0.002513] Initializing cgroup subsys memory [ 0.002624] Initializing cgroup subsys devices [ 0.002665] Initializing cgroup subsys freezer [ 0.002700] Initializing cgroup subsys blkio [ 0.002859] CPU: Testing write buffer coherency: ok [ 0.003338] Setting up static identity map for 0xc0406048 - 0xc04060a4 [ 0.005162] devtmpfs: initialized [ 0.019750] NET: Registered protocol family 16 [ 0.025734] DMA: preallocated 4096 KiB pool for atomic coherent allocations [ 0.026903] bcm2708.uart_clock = 0 [ 0.028637] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers. [ 0.028694] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.028733] mailbox: Broadcom VideoCore Mailbox driver [ 0.028833] bcm2708_vcio: mailbox at f200b880 [ 0.028939] bcm_power: Broadcom power driver [ 0.028980] bcm_power_open() -> 0 [ 0.029008] bcm_power_request(0, 8) [ 0.529729] bcm_mailbox_read -> 00000080, 0 [ 0.529774] bcm_power_request -> 0 [ 0.530000] Serial: AMBA PL011 UART driver [ 0.530165] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3 [ 0.874807] console [ttyAMA0] enabled [ 0.900841] bio: create slab <bio-0> at 0 [ 0.906181] SCSI subsystem initialized [ 0.910162] usbcore: registered new interface driver usbfs [ 0.915887] usbcore: registered new interface driver hub [ 0.921473] usbcore: registered new device driver usb [ 0.928134] Switching to clocksource stc [ 0.932474] FS-Cache: Loaded [ 0.935650] CacheFiles: Loaded [ 0.951391] NET: Registered protocol family 2 [ 0.956806] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [ 0.964020] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.970429] TCP: Hash tables configured (established 2048 bind 2048) [ 0.976906] TCP: reno registered [ 0.980165] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.986076] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.992818] NET: Registered protocol family 1 [ 0.997747] RPC: Registered named UNIX socket transport module. [ 1.003810] RPC: Registered udp transport module. [ 1.008537] RPC: Registered tcp transport module. [ 1.013289] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.020701] bcm2708_dma: DMA manager at f2007000 [ 1.025522] bcm2708_gpio: bcm2708_gpio_probe c05a5e50 [ 1.030979] vc-mem: phys_addr:0x00000000 mem_base=0x0fa00000 mem_size:0x10000000(256 MiB) [ 1.040370] audit: initializing netlink socket (disabled) [ 1.046048] type=2000 audit(0.890:1): initialized [ 1.207920] VFS: Disk quotas dquot_6.5.2 [ 1.212325] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.221145] FS-Cache: Netfs 'nfs' registered for caching [ 1.227867] NFS: Registering the id_resolver key type [ 1.233165] Key type id_resolver registered [ 1.237378] Key type id_legacy registered [ 1.242192] msgmni has been set to 462 [ 1.248069] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 1.255926] io scheduler noop registered (default) [ 1.260759] io scheduler deadline registered [ 1.265473] io scheduler cfq registered [ 1.269630] bcm2708_fb_debugfs_init: could not create debugfs entry [ 1.277205] BCM2708FB: allocated DMA memory 4e400000 [ 1.282363] BCM2708FB: allocated DMA channel 0 @ f2007000 [ 1.305280] Console: switching to colour frame buffer device 82x26 [ 1.315448] uart-pl011 dev:f1: no DMA platform data [ 1.321778] kgdb: Registered I/O driver kgdboc. [ 1.328384] vc-cma: Videocore CMA driver [ 1.333736] vc-cma: vc_cma_base = 0x00000000 [ 1.339742] vc-cma: vc_cma_size = 0x00000000 (0 MiB) [ 1.346502] vc-cma: vc_cma_initial = 0x00000000 (0 MiB) [ 1.362509] brd: module loaded [ 1.372040] loop: module loaded [ 1.376813] vchiq: vchiq_init_state: slot_zero = 0xce000000, is_master = 0 [ 1.385937] Loading iSCSI transport class v2.0-870. [ 1.393299] usbcore: registered new interface driver smsc95xx [ 1.400480] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 1.607725] Core Release: 2.80a [ 1.612216] Setting default values for core params [ 1.618255] Finished setting default values for core params [ 1.825146] Using Buffer DMA mode [ 1.829745] Periodic Transfer Interrupt Enhancement - disabled [ 1.836868] Multiprocessor Interrupt Enhancement - disabled [ 1.843728] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 1.849358] Dedicated Tx FIFOs mode [ 1.854648] dwc_otg: Microframe scheduler enabled [ 1.854879] dwc_otg bcm2708_usb: DWC OTG Controller [ 1.861097] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1 [ 1.869723] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000 [ 1.876550] Init: Port Power? op_state=1 [ 1.881742] Init: Power Port (0) [ 1.886453] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 1.894680] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.903323] usb usb1: Product: DWC OTG Controller [ 1.909402] usb usb1: Manufacturer: Linux 3.10.25+ dwc_otg_hcd [ 1.916629] usb usb1: SerialNumber: bcm2708_usb [ 1.923322] hub 1-0:1.0: USB hub found [ 1.928463] hub 1-0:1.0: 1 port detected [ 1.934103] dwc_otg: FIQ enabled [ 1.934122] dwc_otg: NAK holdoff enabled [ 1.934134] dwc_otg: FIQ split fix enabled [ 1.934154] Module dwc_common_port init [ 1.934591] usbcore: registered new interface driver usb-storage [ 1.942415] mousedev: PS/2 mouse device common for all mice [ 1.949940] bcm2835-cpufreq: min=700000 max=900000 cur=700000 [ 1.957262] bcm2835-cpufreq: switching to governor powersave [ 1.964321] bcm2835-cpufreq: switching to governor powersave [ 1.971239] cpuidle: using governor ladder [ 1.976586] cpuidle: using governor menu [ 1.981753] sdhci: Secure Digital Host Controller Interface driver [ 1.989216] sdhci: Copyright(c) Pierre Ossman [ 1.994893] sdhci: Enable low-latency mode [ 2.042172] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA [ 2.052679] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77 [ 2.059916] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.067066] ledtrig-cpu: registered to indicate activity on CPUs [ 2.076670] hidraw: raw HID events driver (C) Jiri Kosina [ 2.091030] usbcore: registered new interface driver usbhid [ 2.098081] usbhid: USB HID core driver [ 2.107922] TCP: cubic registered [ 2.114688] Initializing XFRM netlink socket [ 2.122410] NET: Registered protocol family 17 [ 2.128388] Key type dns_resolver registered [ 2.137345] Indeed it is in host mode hprt0 = 00021501 [ 2.144380] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 [ 2.172932] registered taskstats version 1 [ 2.182543] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 2.196379] Waiting for root device /dev/mmcblk0p3... [ 2.206221] mmc0: new high speed SDHC card at address b368 [ 2.222871] mmcblk0: mmc0:b368 NCard 3.73 GiB [ 2.243290] mmcblk0: p1 p3 [ 2.372247] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 2.380366] Indeed it is in host mode hprt0 = 00001101 [ 2.582927] usb 1-1: New USB device found, idVendor=0424, idProduct=9512 [ 2.591175] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 2.603111] hub 1-1:1.0: USB hub found [ 2.608486] hub 1-1:1.0: 3 ports detected [ 2.892445] usb 1-1.1: new high-speed USB device number 3 using dwc_otg [ 3.012975] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00 [ 3.021387] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.036491] smsc95xx v1.0.4 [ 3.100804] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:21:2f:c4 [ 3.192348] usb 1-1.2: new full-speed USB device number 4 using dwc_otg [ 3.446080] usb 1-1.2: New USB device found, idVendor=262a, idProduct=10e0 [ 3.454631] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 3.463822] usb 1-1.2: Product: SA9023 USB Audio [ 3.469991] usb 1-1.2: Manufacturer: HiFimeDIY Audio [ 3.511028] input: HiFimeDIY Audio SA9023 USB Audio as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0 [ 3.525592] hid-generic 0003:262A:10E0.0001: input,hidraw0: USB HID v1.00 Device [HiFimeDIY Audio SA9023 USB Audio] on usb-bcm2708_usb-1.2/input0 [ 3.922058] EXT4-fs (mmcblk0p3): recovery complete [ 3.932307] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null) [ 3.943691] VFS: Mounted root (ext4 filesystem) on device 179:3. [ 3.962620] devtmpfs: mounted [ 3.967780] Freeing unused kernel memory: 144K (c0573000 - c0597000) [ 5.343849] udevd[156]: starting version 175 [ 6.124721] bcm2708_i2c_init_pinmode(0,0) [ 6.132010] bcm2708_i2c_init_pinmode(0,1) [ 6.312580] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100000) [ 6.506251] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated [ 6.642536] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80) [ 6.778407] bcm2708_i2c_init_pinmode(1,2) [ 6.817359] bcm2708_i2c_init_pinmode(1,3) [ 6.852975] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000) [ 7.014228] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory [ 7.637128] usbcore: registered new interface driver snd-usb-audio [ 9.471944] usb 1-1.2: USB disconnect, device number 4 [ 10.911949] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null) [ 11.401736] EXT4-fs (mmcblk0p3): Mount option "nouser_xattr" will be removed by 3.5 [ 11.401736] Contact linux-ext4@vger.kernel.org if you think we should keep it. [ 11.401736] [ 11.448753] EXT4-fs (mmcblk0p3): re-mounted. Opts: nouser_xattr,errors=remount-ro [ 16.809957] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 19.270999] NET: Registered protocol family 10 [ 19.659128] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup [ 19.668634] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 21.224847] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 21.234312] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 [ 30.555087] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 32.885144] bcm2835-cpufreq: switching to governor ondemand [ 32.885152] bcm2835-cpufreq: switching to governor ondemand [ 59.025887] bcm2835-cpufreq: switching to governor ondemand [ 59.033740] bcm2835-cpufreq: switching to governor ondemand

3.469991 it connects, 9.47194 disconnects… why?

So first I thought it might be the powersupply - I tried 1A one, same problem. It didn’t even appear.
Then I checked the DAC if it is not somehow faulty and shorting the USB port - nope, using only 43mA of current.
Then I tried external powersupply for the DAC, soldered right on the board. No help.
Then I tried hooking the whole system to my trusty lab-supply on 5V. Nothing.
Then I tried to filter out the noise of the system better, added one big (3300uF) cap to the DAC - it reduced supply noise significantly, but didn’t solve the issue.

So now I am out of ideas. But maybe someone here has something? Thank you!

I tried this DAC a few weeks ago. No chance - neither on Win7 nor Linux. I send it back…

Strange, I own 3 of these DAC’s and they all work straight of the box no need for tweaking anything. I guess you have a faulty device

Damn. And weirdly it works without issues on Mac OS X (also right out of the box).

just a thought in case u are using a external usb harddrive as music source or a wifi dongle maybe one of these devices is corrupting the connection? try a test without these devices and put a few music files on a usb stick or mount a folder trough a wired network.

hope this can help