element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum HIFIBERRY DIGI I/O DARKICE: ALSADSPSOURCE.CPP:265: INPUT/OUTPUT ERROR [0]
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 14 replies
  • Answers 1 answer
  • Subscribers 665 subscribers
  • Views 3038 views
  • Users 0 members are here
  • rasberry_pi_3_b_plus
  • raspberry_pi
Related

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

benip
benip over 7 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

Thanks for your answer

best regards

Ben

  • Sign in to reply
  • Cancel
  • jomoenginer
    0 jomoenginer over 7 years ago in reply to benip

    That is a bummer.

    Have you sent a message to the Darkice folks?

     

    So regarding your use of plughw, I guess that is a slave device?  Does the HiFiBerry show as a USB Audio device?

     

    If you have not done so already, you might want to check that HiFiBerry is working properly.

    This seems like a way to check the device with 'arecord'

    https://sites.google.com/site/glyman3home/raspi-streaming-to-broadcastify

     

    These links might be of assistance.

    https://support.hifiberry.com/hc/en-us/community/posts/201494532-Use-of-ALSA

     

    https://github.com/raspberrypi/linux/issues/1004#issuecomment-133852133

    See the post for : BBUK commented on Aug 23, 2015

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • benip
    0 benip over 7 years ago in reply to jomoenginer

    Hi jon,

     

    yes I sent a message on the forum darkice:

     

    https://github.com/rafael2k/darkice/issues/139

     

    I do not have an answer for the moment.

     

    The hifiberry digi+ i/o is not a USB board

     

    I can listen to sound with this configuration but i can't record...

     

    I continue to search

     

    Thanks for your links

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jomoenginer
    0 jomoenginer over 7 years ago in reply to benip

    benip  wrote:

     

     

    The hifiberry digi+ i/o is not a USB board

     

    I can listen to sound with this configuration but i can't record...

     

     

    That is interesting. I thought 'plughw' was associated with a USB device.  

     

    Have you tried " hw1,0" instead?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • benip
    0 benip over 7 years ago in reply to jomoenginer

    Hi jon,

     

    I think plughw is rather associated with the hardware part in general.

     

    yes I tried with 1.0 but it doesn't work

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube