Audio on Sunblade 100

Christian Ramseyer rc at networkz.ch
Thu Aug 20 21:32:21 UTC 2009


Marius Strobl wrote:
>> Ok, I think I've identified the incorrect bus_dma(9) settings
>> with the help of Tatsuo YOKOGAWA's ali(4) (which as least for
>> the alignment requirement also matches the NetBSD autri(4). A
>> new patch is at:
>> http://people.freebsd.org/~marius/t4dwave_M5451_32-bit.diff

Hi

Thanks for the patch, I've applied it and the driver seems to load properly:

pcm0: <Acer Labs M5451> port 0x900-0x9ff mem 0x424000-0x424fff at device
8.0 on pci0
pcm0: <Analog Devices AD1881A AC97 Codec>
pcm0: [GIANT-LOCKED]
pcm0: [ITHREAD]

Unfortunately, the actual "playing sound part" is not going too well.
When I do e.g. :

rc at ds9000:~ $ mpg321 03\ Wonderful\ Night\ \(feat\ Lateef\).mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
...
Playing MPEG stream from 03 Wonderful Night (feat Lateef).mp3 ...
MPEG 1.0 layer III, 192 kbit/s, 44100 Hz stereo

I sometimes get some seconds of sound, but most of the time only silence
or a short burst of static, and then

pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead

appears on the console.

I tried to evade some layers of complexity by trying:

rc at ds9000:~ $ sox 10-the_white_stripes-take_take_take.mp3
10-the_white_stripes-take_take_take.raw
rc at ds9000:~ $ cat 10-the_white_stripes-take_take_take.raw > /dev/dsp0.0
cat: stdout: Invalid argument

This didn't output anything audible, though I'm not even sure if it
should work.

As it worked for Gheorghe, chances are that I'm doing something
wrong/different:

- the driver is built directly into the kernel, I'm using
sparc64/conf/GENERIC with minimal modifications:

[root at ds9000 /usr/src/sys/sparc64/conf]# diff GENERIC SNOOSNOO
24c24
< ident         GENERIC
---
> ident         SNOOSNOO
242a243,245
>
> device          sound
> device          snd_t4dwave

- kernel built like this:
  102  make buildkernel KERNCONF=SNOOSNOO
  103  make installkernel KERNCONF=SNOOSNOO

Thanks for your time & best regards
Christian



More information about the freebsd-sparc64 mailing list