LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   DarkIce, ALSA & Intel HDA Audio (https://www.linuxquestions.org/questions/linux-software-2/darkice-alsa-and-intel-hda-audio-4175494345/)

Bravo_97 02-09-2014 12:01 PM

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.

Bravo_97 02-15-2014 10:07 AM

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



All times are GMT -5. The time now is 04:32 AM.