Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2014 19:14:12 +1000
From:      Scott Aitken <scott@thismonkey.com>
To:        ticso@cicely.de
Cc:        freebsd-arm@freebsd.org, Scott Aitken <freebsd-lists-3@thismonkey.com>
Subject:   Re: USB audio device on Raspberry Pi - link_elf: symbol isa_dmastatus undefined
Message-ID:  <20140430091411.GA45015@utility-01.thismonkey.com>
In-Reply-To: <20140425204134.GA458@cicely7.cicely.de>
References:  <20140425154430.GA76168@utility-01.thismonkey.com> <535A8AEA.1000100@selasky.org> <20140425204134.GA458@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi again,

good call on the kernel recompile.  I added sound and uaudio to the kernel
and low and behold things improved:


root@raspberry-pi:/mnt # dmesg
...
ugen0.4: <danyigao audio equipment> at usbus0
uaudio0: <danyigao audio equipment DARED AUDIO, class 0/0, rev 2.00/1.00, addr 4> on usbus0
uaudio0: Play: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Play: 48000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Play: 44100 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
uaudio0: No recording.
uaudio0: No MIDI sequencer.
pcm0: <USB audio> on uaudio0

However, when I play a file to /dev/dsp, I get an error in dmesg:

root@raspberry-pi:/mnt # cat /bin/ls > /dev/dsp
cat: stdout: Invalid argument
root@raspberry-pi:/mnt # dmesg
...
pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead

Here are some (possibly) relevant sysctls:
root@raspberry-pi:/mnt # sysctl -a | egrep '(snd|pcm|sound)'
hw.snd.report_soft_formats: 1
hw.snd.report_soft_matrix: 1
hw.snd.latency: 5
hw.snd.latency_profile: 1
hw.snd.vpc_autoreset: 1
hw.snd.vpc_0db: 45
hw.snd.vpc_reset: 0
hw.snd.compat_linux_mmap: 0
hw.snd.feeder_eq_presets:
PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
hw.snd.feeder_eq_exact_rate: 0
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_quality: 1
hw.snd.vpc_mixer_bypass: 1
hw.snd.verbose: 0
hw.snd.default_auto: 1
hw.snd.version: 2009061500/armv6
hw.snd.default_unit: 0
hw.snd.maxautovchans: 16
dev.pcm.0.%desc: USB audio
dev.pcm.0.%driver: pcm
dev.pcm.0.%parent: uaudio0
dev.pcm.0.hwvol_step: 5
dev.pcm.0.hwvol_mixer: vol
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.buffersize: 0
dev.pcm.0.bitperfect: 0
dev.pcm.0.mixer.vol_0_0.val: -2892
dev.pcm.0.mixer.vol_0_0.min: -11520
dev.pcm.0.mixer.vol_0_0.max: 0
dev.pcm.0.mixer.vol_0_0.desc: DARED AUDIO
dev.pcm.0.mixer.vol_0_1.val: -2892
dev.pcm.0.mixer.vol_0_1.min: -11520
dev.pcm.0.mixer.vol_0_1.max: 0
dev.pcm.0.mixer.vol_0_1.desc: DARED AUDIO
dev.pcm.0.mixer.mute_1.val: 0
dev.pcm.0.mixer.mute_1.min: 0
dev.pcm.0.mixer.mute_1.max: 1
dev.pcm.0.mixer.mute_1.desc: DARED AUDIO

Any further advice would be appeciated.

Thanks,
Scott

On Fri, Apr 25, 2014 at 10:41:34PM +0200, Bernd Walter wrote:
> On Fri, Apr 25, 2014 at 06:18:50PM +0200, Hans Petter Selasky wrote:
> > On 04/25/14 17:44, Scott Aitken wrote:
> > >Hi all,
> > >
> > >I'm hoping to use my RPi/FreeBSD as an Airplay device to my amplifier which
> > >presents a USB DAC.
> > >
> > 
> > Hi,
> > 
> > Audio devices which use ISOCHRONOUS data transport are not supported i 
> > FreeBSD, because the RPi uses very small buffers and has to handle 8000 
> > IRQ/s typically for ISOC transfers.
> 
> This looks more like uaudio module fails to load because it depends
> on sound module, which itself then requires ISA bus support in kernel.
> The sound.ko shouldn't require ISA when build on ARM.
> It might work to compile the drivers into the kernel.
> If it uses ISOCHRONOUS, then that's an unrelated problem IMO.
> Do all uaudio devices use isochronous endpoints or is it an optional thing?
> If it is optional, then he might have a chance.
> 
> -- 
> B.Walter <bernd@bwct.de> http://www.bwct.de
> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140430091411.GA45015>