LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2014, 12:01 PM   #1
Bravo_97
LQ Newbie
 
Registered: Nov 2010
Location: US-Pennsylvania
Distribution: Slackware64-15.0, Slackware-current, Slackware64-current, Slackwareaarch64-current
Posts: 29

Rep: Reputation: 10
DarkIce, ALSA & Intel HDA Audio


Has anyone had luck running DarkIce and ALSA using an Intel HDA onboard audio? I recently purchased an Intel Desktop Board D2500CCE running Slackware64-14.1 and want to move IceCast/DarkIce off an old system running Slackware64-14.0. On the old system IceCast/DarkIce and the onboard ASUS/VIA audio work flawlessly. I figured this would be a simple move however it is not. I keep getting the error: "DarkIce: AlsaDspSource.cpp:173: can't set channels [1]". After spending a few days searching the Internet I am not having much success finding a resolution. I am leaning towards the soundcard as I have reformatted the drive and tried Slackware-14.0, Slackware-14.1 and Slackware64-14.1. I am able to pipe audio in through the line-in and get output through the speakers so I know the onboard sound is working. I checked the onboard audio settings in the BIOS and only options are to Enable to Disable the on-board sound.

I have recompiled DarkIce-1.0, DarkIce-1.2, faac, lame, libogg, libvorbis and two-lame packages under each OS with both DarkIce-1.0 and DarkIce-1.2 presenting the same error: "DarkIce: AlsaDspSource.cpp:173: can't set channels [1]". The darkice.cfg file is the same copy that works fine on the old Slackware64-14.0 ASUS system.

Code:
root@atomd2500cce:~/darkice# /usr/bin/darkice -c /etc/icecast/darkice.cfg
DarkIce 1.2 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2013, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: /etc/icecast/darkice.cfg
Using ALSA DSP input device: hw:0,0
Using POSIX real-time scheduling, priority 4
DarkIce: AlsaDspSource.cpp:173: can't set channels [1]


root@atomd2500cce:~/darkice# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888-VD Analog [ALC888-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC888-VD Analog [ALC888-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@atomd2500cce:~/darkice# cat /etc/icecast/darkice.cfg
# this section describes general aspects of the live streaming session
[general]
duration        = 0         # duration of encoding, in seconds. 0 means forever
bufferSecs      = 10        # 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          = hw:0,0    # OSS DSP soundcard device for the audio input
sampleRate      = 22050     # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample   = 16        # bits per sample. try 16
channel         = 1         # channels. 1 = mono, 2 = stereo

# this section describes a streaming connection to an IceCast2 server
# there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]
# these can be mixed with [icecast-x] and [shoutcast-x] sections
[icecast2-0]
bitrateMode     = cbr       # constant bit rate
format          = mp3       # format of the stream: mp3
bitrate         = 16        # bitrate of the stream sent to the server
server          = localhost # host name of the server
port            = 8000      # port of the IceCast2 server, usually 8000
password        = password  # source password to the IceCast2 server
mountPoint      = mystream  # mount point of this stream on the IceCast2 server
name            = myaudio   # name of the stream
genre           = generic   # genre of the stream
public          = yes       # advertise this stream?
I have also tried changing the darkice.cfg device to hw:0,2. Does anyone have any pointers for something simple I may be missing?

Thank you in advance for any assistance anyone can provide.
 
Old 02-15-2014, 10:07 AM   #2
Bravo_97
LQ Newbie
 
Registered: Nov 2010
Location: US-Pennsylvania
Distribution: Slackware64-15.0, Slackware-current, Slackware64-current, Slackwareaarch64-current
Posts: 29

Original Poster
Rep: Reputation: 10
In case anyone runs into a similar problem with "DarkIce: AlsaDspSource.cpp:173: can't set channels [1]" there are a couple ways to resolve the issue inside darkice.cfg.

First way if using device = hw:0,0 uses ALSA sampling rate:

Code:
[input]
device          = hw:0,0    # 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
Second way to have ALSA resample at a lower rate:

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel audio 82801I & alsa on Slack 13.1 x64 carlitoco Slackware 1 02-26-2011 07:48 AM
integrated hda audio modem bluetooth , (intel hda audio does not work) reggae linux Linux - Laptop and Netbook 1 07-05-2006 10:13 PM
integrated hda audio modem bluetooth , (intel hda audio does not work) reggae linux Linux - Laptop and Netbook 2 07-05-2006 03:38 PM
Alsa hda-intel Sigmatel Audio Amuro-Ray2020 Linux - Newbie 2 05-02-2006 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration