Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2009 23:32:15 +0200
From:      Christian Ramseyer <rc@networkz.ch>
To:        freebsd-sparc64@freebsd.org
Subject:   Re: Audio on Sunblade 100
Message-ID:  <4A8DC0DF.4040701@networkz.ch>
In-Reply-To: <20090819161410.GA19351@alchemy.franken.de>
References:  <4A7C6B50.3070503@networkz.ch> <20090817205340.GA75477@alchemy.franken.de> <20090817215612.GB75477@alchemy.franken.de> <20090818192748.GA6585@alchemy.franken.de> <20090819161410.GA19351@alchemy.franken.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@ds9000:~ $ sox 10-the_white_stripes-take_take_take.mp3
10-the_white_stripes-take_take_take.raw
rc@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@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




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