The sound card is properly detected
$ cat /proc/asound/cards
0 [MID ]: HDA-Intel - HDA Intel MID
HDA Intel MID at 0xfb400000 irq 33
1 [DJ808 ]: USB-Audio - DJ-808
Roland DJ-808 at usb-0000:00:1d.0-1.1, high speed
The following command tells me that the output should be at hw:1,0
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: 92HD81B1X5 Analog [92HD81B1X5 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: DJ808 [DJ-808], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
So, I create a WAV file to test with aplay
$ sox -b 16 -n test.wav rate 44100 channels 2 synth 1 sine 440 gain -1
I try to obtain the sound in the controller by
[code]$ aplay -D hw:1,0 test.wav
Playing WAVE ‘test.wav’ : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1299: Sample format non available
Available formats:
But I get no sound. To avoid the previous format error, I tried
[code]$ aplay -D hw:1,0 -f S32_LE test.wav
Warning: format is changed to S16_LE
Playing WAVE ‘test.wav’ : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
aplay: set_params:1299: Sample format non available
Available formats:
But as one can note, the same error persists and still no sound. If I try to play random noise instead of the WAV file, the error changes:
$ cat /dev/urandom | aplay -D hw:1,0 -f S32_LE
Playing raw data 'stdin' : Signed 32 bit Little Endian, Rate 8000 Hz, Mono
aplay: set_params:1305: Channels count non available
So I force to use two channels (stereo):
$ cat /dev/urandom | aplay -D hw:1,0 -f S32_LE -c 2
Playing raw data 'stdin' : Signed 32 bit Little Endian, Rate 8000 Hz, Stereo
Warning: rate is not accurate (requested = 8000Hz, got = 48000Hz)
please, try the plug plugin
Then I forced the rate to 48000 Hz:
$ cat /dev/urandom | aplay -D hw:1,0 -f S32_LE -c 2 -r 48000
Playing raw data 'stdin' : Signed 32 bit Little Endian, Rate 48000 Hz, Stereo
aplay: pcm_write:2011: write error: Input/output error
And also tried to use the plugin
$ cat /dev/urandom | aplay -D plughw:1,0 -f S32_LE -c 2 -r 48000
Playing raw data 'stdin' : Signed 32 bit Little Endian, Rate 48000 Hz, Stereo
aplay: pcm_write:2011: write error: Input/output error
And unfortunately still no sound. I also installed jack (apt-get install jackd2), but trying to enable jack fails too:
$ jackd -d alsa --device hw:1 --rate 44100 --period 512
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:1|hw:1|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
AcquireSelfRealTime error
ALSA: poll time out, polled for 16015067 usecs
JackAudioDriver::ProcessAsync: read error, stopping...
I don’t know how to continue, maybe someone experienced in these topics can help me?