rafael2k / darkice

DarkIce is a live audio streamer. It records audio from an audio interface (e.g. sound card), encodes it and sends it to a streaming server. This is the official development repository of Darkice.
http://www.darkice.org
200 stars 47 forks source link

HIFIBERRY DIGI I/O DARKICE: ALSADSPSOURCE.CPP:265: INPUT/OUTPUT ERROR [0] #139

Open BenPGM opened 6 years ago

BenPGM commented 6 years ago

Hello, I have this error message after setting up my hifiberry digi+ i/o board with darkice and a PI3:

Using config file: /etc/darkice.cfg Using ALSA DSP input device: plughw:0,0 Using POSIX real-time scheduling, priority 4 Using aacplus codec DarkIce: AlsaDspSource.cpp:265: Input/output error [0] what does it mean? How to solve the problem ? I followed this configuration for the install of the hifiberry board: sudo nano /boot/config.txt dtoverlay = hifiberry-digi

Enable audio (loads snd_bcm2835)

dtoverlay=hifiberry-digi after restart, i have :

Liste des Périphériques Matériels PLAYBACK carte 0: sndrpihifiberry [snd_rpi_hifiberry_digi], périphérique 0: HifiBerry Digi HiFi wm8804-spdif-0 [] Sous-périphériques: 1/1 Sous-périphérique #0: subdevice #0

sudo nano /etc/asound.conf

pcm.!default { type hw card 0 } ctl.!default { type hw card 0 }

My config with darkice is :

this section describes general aspects of the live streaming session

[general] duration = 0 # duration of encoding, in seconds. 0 means forever bufferSecs = 5 # size of internal slip buffer, in seconds reconnect = yes # reconnect to the server(s) if disconnected

this section describes the audio input that will be streamed

[input]

device = /dev/dsp # OSS DSP soundcard device for the audio input

device = plughw:0,0 # OSS DSP soundcard device for the audio input sampleRate = 44100 # sample rate in Hz. try 11025, 22050 or 44100 bitsPerSample = 16 # bits per sample. try 16 channel = 2 # channels. 1 = mono, 2 = stereo

this section describes a streaming connection to a ShoutCast server

there may be up to 8 of these sections, named [shoutcast-0] ... [shoutcast-7]

these can be mixed with [icecast-x] and [icecast2-x] sections

[shoutcast-0] bitrateMode = vbr # average bit rate format = mp3 # format of the stream: ogg vorbis bitrate = 88 # bitrate of the stream sent to the server quality = 0.5 # encoding quality server = myip

host name of the server

port = myport # source port of the ShoutCast server, usually 8001 password = mypass # source password to the ShoutCast server name = test darkice

name of the stream

url = http://www.yourserver.com

URL related to the stream

genre = my own # genre of the stream public = no # advertise this stream? irc = irc.yourserver.com

IRC info related to the stream

aim = aim here # AIM info related to the stream icq = I see you too

ICQ info related to the stream

When i excecute "dmesg" i have :

[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.35-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1014 SMP Fri Jun 30 14:47:43 BST 2017 [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2 [ 0.000000] cma: Reserved 8 MiB at 0x3a800000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] On node 0 totalpages: 241664 [ 0.000000] free_area_init_node: node 0, pgdat 80c6ee40, node_mem_map b9faa000 [ 0.000000] Normal zone: 2124 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 241664 pages, LIFO batch:31 [ 0.000000] percpu: Embedded 14 pages/cpu @b9f64000 s25600 r8192 d23552 u57344 [ 0.000000] pcpu-alloc: s25600 r8192 d23552 u57344 alloc=14*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 239540 [ 0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1024 bcm2708_fb.fbheight=768 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=7c397252-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 936296K/966656K available (7168K kernel code, 484K rwdata, 2012K rodata, 1024K init, 778K bss, 22168K reserved, 8192K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xbb800000 - 0xff800000 (1088 MB) lowmem : 0x80000000 - 0xbb000000 ( 944 MB) modules : 0x7f000000 - 0x80000000 ( 16 MB) .text : 0x80008000 - 0x80800000 (8160 kB) .init : 0x80b00000 - 0x80c00000 (1024 kB) .data : 0x80c00000 - 0x80c79014 ( 485 kB) .bss : 0x80c7b000 - 0x80d3da64 ( 779 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns [ 0.000009] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns [ 0.000021] Switching to timer-based delay loop, resolution 52ns [ 0.000328] Console: colour dummy device 80x30 [ 0.000348] console [tty1] enabled [ 0.000374] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000) [ 0.000391] pid_max: default: 32768 minimum: 301 [ 0.000729] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000739] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001729] Disabling cpuset control group subsystem [ 0.001887] CPU: Testing write buffer coherency: ok [ 0.001929] ftrace: allocating 22390 entries in 66 pages [ 0.053968] CPU0: update cpu_capacity 1024 [ 0.053986] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.054058] Setting up static identity map for 0x100000 - 0x100034 [ 0.056282] CPU1: update cpu_capacity 1024 [ 0.056290] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.057005] CPU2: update cpu_capacity 1024 [ 0.057012] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.057678] CPU3: update cpu_capacity 1024 [ 0.057684] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.057767] Brought up 4 CPUs [ 0.057777] SMP: Total of 4 processors activated (153.60 BogoMIPS). [ 0.057781] CPU: All CPU(s) started in HYP mode. [ 0.057785] CPU: Virtualization extensions available. [ 0.058583] devtmpfs: initialized [ 0.069934] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4 [ 0.070205] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.070222] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.070756] pinctrl core: initialized pinctrl subsystem [ 0.071656] NET: Registered protocol family 16 [ 0.074035] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.083028] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.083035] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.083186] Serial: AMBA PL011 UART driver [ 0.085047] bcm2835-mbox 3f00b880.mailbox: mailbox enabled [ 0.085563] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe [ 0.154532] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1 [ 0.156357] SCSI subsystem initialized [ 0.156514] usbcore: registered new interface driver usbfs [ 0.156589] usbcore: registered new interface driver hub [ 0.156685] usbcore: registered new device driver usb [ 0.163505] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-07-03 14:16 [ 0.165005] clocksource: Switched to clocksource arch_sys_counter [ 0.211818] VFS: Disk quotas dquot_6.6.0 [ 0.211895] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.212094] FS-Cache: Loaded [ 0.212337] CacheFiles: Loaded [ 0.224503] NET: Registered protocol family 2 [ 0.225413] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.225522] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.225706] TCP: Hash tables configured (established 8192 bind 8192) [ 0.225793] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.225834] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.226039] NET: Registered protocol family 1 [ 0.226447] RPC: Registered named UNIX socket transport module. [ 0.226452] RPC: Registered udp transport module. [ 0.226457] RPC: Registered tcp transport module. [ 0.226461] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.227538] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available [ 0.229819] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.245987] FS-Cache: Netfs 'nfs' registered for caching [ 0.246960] NFS: Registering the id_resolver key type [ 0.246991] Key type id_resolver registered [ 0.246995] Key type id_legacy registered [ 0.249408] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.249512] io scheduler noop registered [ 0.249518] io scheduler deadline registered (default) [ 0.249774] io scheduler cfq registered [ 0.255468] BCM2708FB: allocated DMA memory fa910000 [ 0.255492] BCM2708FB: allocated DMA channel 0 @ bb80f000 [ 0.277956] Console: switching to colour frame buffer device 128x48 [ 0.292140] bcm2835-rng 3f104000.rng: hwrng registered [ 0.292259] vc-cma: Videocore CMA driver [ 0.292265] vc-cma: vc_cma_base = 0x00000000 [ 0.292270] vc-cma: vc_cma_size = 0x00000000 (0 MiB) [ 0.292276] vc-cma: vc_cma_initial = 0x00000000 (0 MiB) [ 0.292473] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB) [ 0.307804] brd: module loaded [ 0.316673] loop: module loaded [ 0.316684] Loading iSCSI transport class v2.0-870. [ 0.317202] usbcore: registered new interface driver smsc95xx [ 0.317217] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 0.545265] Core Release: 2.80a [ 0.545273] Setting default values for core params [ 0.545304] Finished setting default values for core params [ 0.745688] Using Buffer DMA mode [ 0.745694] Periodic Transfer Interrupt Enhancement - disabled [ 0.745698] Multiprocessor Interrupt Enhancement - disabled [ 0.745704] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 0.745714] Dedicated Tx FIFOs mode [ 0.746054] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xba904000 dma = 0xfa904000 len=9024 [ 0.746079] FIQ FSM acceleration enabled for : Non-periodic Split Transactions Periodic Split Transactions High-Speed Isochronous Endpoints Interrupt/Control Split Transaction hack enabled [ 0.746085] dwc_otg: Microframe scheduler enabled [ 0.746127] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8058ef90 [ 0.746136] WARN::hcd_init_fiq:460: FIQ ASM at 0x8058f300 length 36 [ 0.746146] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87a000 [ 0.746203] dwc_otg 3f980000.usb: DWC OTG Controller [ 0.746237] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1 [ 0.746267] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000 [ 0.746313] Init: Port Power? op_state=1 [ 0.746318] Init: Power Port (0) [ 0.746513] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 0.746523] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.746531] usb usb1: Product: DWC OTG Controller [ 0.746539] usb usb1: Manufacturer: Linux 4.9.35-v7+ dwc_otg_hcd [ 0.746547] usb usb1: SerialNumber: 3f980000.usb [ 0.747373] hub 1-0:1.0: USB hub found [ 0.747418] hub 1-0:1.0: 1 port detected [ 0.748097] dwc_otg: FIQ enabled [ 0.748101] dwc_otg: NAK holdoff enabled [ 0.748105] dwc_otg: FIQ split-transaction FSM enabled [ 0.748120] Module dwc_common_port init [ 0.748357] usbcore: registered new interface driver usb-storage [ 0.748579] mousedev: PS/2 mouse device common for all mice [ 0.749514] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer [ 0.749789] bcm2835-cpufreq: min=600000 max=1200000 [ 0.750175] sdhci: Secure Digital Host Controller Interface driver [ 0.750180] sdhci: Copyright(c) Pierre Ossman [ 0.750452] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe [ 0.752622] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe [ 0.752721] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.755970] ledtrig-cpu: registered to indicate activity on CPUs [ 0.756155] hidraw: raw HID events driver (C) Jiri Kosina [ 0.756335] usbcore: registered new interface driver usbhid [ 0.756339] usbhid: USB HID core driver [ 0.757106] vchiq: vchiq_init_state: slot_zero = 0xba980000, is_master = 0 [ 0.759141] Initializing XFRM netlink socket [ 0.759163] NET: Registered protocol family 17 [ 0.759284] Key type dns_resolver registered [ 0.759795] Registering SWP/SWPB emulation handler [ 0.760485] registered taskstats version 1 [ 0.760827] vc-sm: Videocore shared memory driver

[ 0.767636] [vc_sm_connected_init]: end - returning 0 [ 0.773521] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2 [ 0.775108] sdhost: log_buf @ ba907000 (fa907000) [ 0.855038] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1) [ 0.857255] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0 [ 0.857263] mmc-bcm2835 3f300000.mmc: DMA channel allocated [ 0.915154] of_cfs_init [ 0.915256] of_cfs_init: OK [ 0.915749] Waiting for root device PARTUUID=7c397252-02... [ 0.926715] mmc0: host does not support reading read-only switch, assuming write-enable [ 0.928679] mmc0: Problem switching card into high-speed mode! [ 0.928815] mmc0: new SDHC card at address 0001 [ 0.929497] mmcblk0: mmc0:0001 ASTC 14.6 GiB [ 0.931743] mmcblk0: p1 p2 [ 0.936140] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 0.937687] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.939234] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.942014] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 0.965122] Indeed it is in host mode hprt0 = 00021501 [ 1.032660] random: fast init done [ 1.054918] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 1.054964] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 1.056755] devtmpfs: mounted [ 1.058573] Freeing unused kernel memory: 1024K (80b00000 - 80c00000) [ 1.092900] mmc1: new high speed SDIO card at address 0001 [ 1.165060] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 1.165197] Indeed it is in host mode hprt0 = 00001101 [ 1.395341] usb 1-1: New USB device found, idVendor=0424, idProduct=9514 [ 1.395355] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1.396191] hub 1-1:1.0: USB hub found [ 1.396289] hub 1-1:1.0: 5 ports detected [ 1.561794] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR) [ 1.562135] systemd[1]: Detected architecture 'arm'. [ 1.715061] usb 1-1.1: new high-speed USB device number 3 using dwc_otg [ 1.749037] NET: Registered protocol family 10 [ 1.750435] systemd[1]: Inserted module 'ipv6' [ 1.752734] systemd[1]: Set hostname to . [ 1.752883] systemd[1]: Initializing machine ID from random generator. [ 1.753082] systemd[1]: Installed transient /etc/machine-id file. [ 1.845425] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00 [ 1.845439] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1.848366] smsc95xx v1.0.5 [ 1.938928] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:13:b1:7c [ 2.035068] usb 1-1.4: new low-speed USB device number 4 using dwc_otg [ 2.171068] usb 1-1.4: New USB device found, idVendor=045e, idProduct=0040 [ 2.171082] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=0 [ 2.171090] usb 1-1.4: Product: Microsoft 3-Button Mouse with IntelliEye(TM) [ 2.171098] usb 1-1.4: Manufacturer: Microsoft [ 2.176785] input: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:045E:0040.0001/input/input0 [ 2.177205] hid-generic 0003:045E:0040.0001: input,hidraw0: USB HID v1.10 Mouse [Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)] on usb-3f980000.usb-1.4/input0 [ 2.275061] usb 1-1.5: new low-speed USB device number 5 using dwc_otg [ 2.402643] systemd[1]: Cannot add dependency job for unit regenerate_ssh_host_keys.service, ignoring: Unit regenerate_ssh_host_keys.service failed to load: No such file or directory. [ 2.406331] systemd[1]: Starting Forward Password Requests to Wall Directory Watch. [ 2.406693] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 2.406767] systemd[1]: Starting Remote File Systems (Pre). [ 2.435817] usb 1-1.5: New USB device found, idVendor=03f0, idProduct=0024 [ 2.435830] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.435838] usb 1-1.5: Product: HP Basic USB Keyboard [ 2.435846] usb 1-1.5: Manufacturer: CHICONY [ 2.452108] input: CHICONY HP Basic USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:03F0:0024.0002/input/input1 [ 2.516086] hid-generic 0003:03F0:0024.0002: input,hidraw1: USB HID v1.10 Keyboard [CHICONY HP Basic USB Keyboard] on usb-3f980000.usb-1.5/input0 [ 2.634867] fuse init (API version 7.26) [ 2.716713] i2c /dev entries driver [ 2.996827] systemd-udevd[142]: starting version 215 [ 3.900461] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 3.938598] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000 [ 4.197041] wm8804 1-003b: revision E [ 4.221150] snd-hifiberry-digi soc:sound: wm8804-spdif <-> 3f203000.i2s mapping ok [ 4.490542] usbcore: registered new interface driver brcmfmac [ 4.694688] brcmfmac: Firmware version = wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378 [ 5.568025] systemd-journald[135]: Received request to flush runtime journal from PID 1 [ 8.154514] uart-pl011 3f201000.serial: no DMA platform data [ 9.067878] Adding 102396k swap on /var/swap. Priority:-1 extents:2 across:167932k SSFS [ 9.216344] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup [ 10.891067] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1 [ 12.660470] Bluetooth: Core ver 2.22 [ 12.660544] NET: Registered protocol family 31 [ 12.660550] Bluetooth: HCI device and connection manager initialized [ 12.660568] Bluetooth: HCI socket layer initialized [ 12.660581] Bluetooth: L2CAP socket layer initialized [ 12.660616] Bluetooth: SCO socket layer initialized [ 12.684256] Bluetooth: HCI UART driver ver 2.3 [ 12.684267] Bluetooth: HCI UART protocol H4 registered [ 12.684273] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 12.684436] Bluetooth: HCI UART protocol Broadcom registered [ 13.127293] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 13.127300] Bluetooth: BNEP filters: protocol multicast [ 13.127310] Bluetooth: BNEP socket layer initialized [ 24.179416] bcm2835-dma 3f007000.dma: DMA transfer could not be terminated [ 24.182919] bcm2835-dma 3f007000.dma: DMA transfer could not be terminated [ 35.985690] random: crng init done

Thanks for your answer

best regards

Ben

jakubpas commented 4 years ago

Same problem here