linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* sound again [was: Re: xf4 bug report]
@ 2000-07-25 14:42 Iain Sandoe
  2000-07-25 22:50 ` Steffen Haeuser
  0 siblings, 1 reply; 34+ messages in thread
From: Iain Sandoe @ 2000-07-25 14:42 UTC (permalink / raw)
  To: SteffenH, daenzerm, linuxppc-dev


On Tue, Jul 25, 2000, Steffen Haeuser wrote:
> Am 25-Jul-00 schrieb Iain Sandoe:
[...]
>>> Don't bother, that's a known problem as well. Blame Apple for not releasing
>>> specs for the latest sound chips...
>
>>which machine, which kernel (and, if possible, which sound chip - can be
>>found from the MacOS side if not the Linux) ?
>
> A "blue/white" G3 Mac first Revision. Kernel is: 2.2.17pre10-ben2 (with the
> older
> kernel Sound worked - at least I cannot remember that an error message during
> OS-booting happened, I never tried out the sound then.
> But the new Kernel is needed for the X Server V4)
>

OK, which was the last working version (prob. easiest is if you mail me
drivers/sound/dmasound.c).  I can diff that to what we have under 17preXX
and see if there are any clues...

I did a back-port of the 2.4.0-test4 dmasound stuff to 2.2.17pre10-ben2
(will check on pre13-ben1 later):
http://www.drfruitcake.com/linux/linuxppc.html

For some people this helps - but it seems that there are problems (some
minor, some major) across the board.   I would much prefer to work on the
2.4.0-testX code (more useful in the grand scheme of things) and so would
encourage you to test the back-port :-)

Having said that, I would expect your machine to work - I think it's an
AWACS sound chip of some variety?  If it has a DACA you'll have to wait..
:-(

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: sound again [was: Re: xf4 bug report]
@ 2000-07-25 15:58 Iain Sandoe
  2000-07-25 23:30 ` Steffen Haeuser
  0 siblings, 1 reply; 34+ messages in thread
From: Iain Sandoe @ 2000-07-25 15:58 UTC (permalink / raw)
  To: SteffenH, linuxppc-dev


Tue, Jul 25, 2000,  Steffen Haeuser wrote:
> Am 25-Jul-00 schrieb Iain Sandoe:
[...]
> during bootup concerning sound came first with the new kernel (something about
> dma
> it said... if that helps I can look up the exact error message...).

can you do a 'dmesg' and find any lines which have "dmasound" in them?
Or... are you using sound as modules?
I assume you are using Ben's binary (pre10-ben2)?

>>I did a back-port of the 2.4.0-test4 dmasound stuff to 2.2.17pre10-ben2
>>(will check on pre13-ben1 later):
>>http://www.drfruitcake.com/linux/linuxppc.html
>
> I guess the dmasnd-v2a.patch is the file to get ? Hmmm, is there also a Binary
> Version available somewhere ? I do not have the latest Kernel Source on my
> machine
> and would like to avoid having to download it if possible...

OK - I'll do it later (just this once :-) I don't want to as a general rule
- because I have to pay for download bandwidth -- if there's a general move
for people to want to download binaries - I'll have to beg some space on an
ftp server...

I can't just send you the binaries for the modules - because they wouldn't
load against an un-patched 2.2.17pre10.

> BTW: Note about this page: at the start there is written
> "PowerMac/Amiga/Atari/etc."
> There is no such thing as a PowerAtari... there is a PowerAmiga, yes... but no
> PowerAtari... Atari never got rid of the 68k CPU Architecture...
> (and never, never name Amiga and Atari in one sentence :) )

OK, OK, maybe I wasn't clear ==> the dmasound stuff has bits for several
machines including some of the 68k ones...

>>Having said that, I would expect your machine to work - I think it's an
>>AWACS sound chip of some variety?  If it has a DACA you'll have to wait..
>>:-(
>
> No clue what soundchip... it is a out-of-the-box "Blue/White" G3 Mac 1st
> Revision...

You can find this using "Display Name Registry" on the apple side [it's
available on the Apple web site IIRC] look under davbus:sound.

- or by looking in the /proc/device-tree on the linux side (I hope -
although, of course, this could be the root of the problem :).

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: sound again [was: Re: xf4 bug report]
@ 2000-07-25 18:35 Iain Sandoe
  2000-07-26  1:59 ` Steffen Haeuser
  2000-07-26  2:30 ` Steffen Haeuser
  0 siblings, 2 replies; 34+ messages in thread
From: Iain Sandoe @ 2000-07-25 18:35 UTC (permalink / raw)
  To: SteffenH, linuxppc-dev; +Cc: Benjamin Herrenschmidt, Franz Sirl


Hi Steffen,

On Tue, Jul 25, 2000, Steffen Haeuser wrote:
> Am 25-Jul-00 schrieb Iain Sandoe:
[...]
>>I did a back-port of the 2.4.0-test4 dmasound stuff to 2.2.17pre10-ben2
>>(will check on pre13-ben1 later):
>>http://www.drfruitcake.com/linux/linuxppc.html
>
> I guess the dmasnd-v2a.patch is the file to get ? Hmmm, is there also a Binary
> Version available somewhere ? I do not have the latest Kernel Source on my
> machine
> and would like to avoid having to download it if possible...

OK I've done a build - hope it's got enough in it to boot your machine :-)
it's linked to the page given above along with the modules & system map.

=====

To find the sound chip info (on my machine) under linux:

cat /proc/device-tree/pci/mac-io/davbus/sound/compatible

of course, different machines have different IO structures so YMMV...

a bit of poking around under proc should reveal something sensible (it's not
that big a tree really)...

Tschuss,

Iain

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: sound again [was: Re: xf4 bug report]
@ 2000-07-25 18:53 Iain Sandoe
  2000-07-26  2:31 ` Steffen Haeuser
  0 siblings, 1 reply; 34+ messages in thread
From: Iain Sandoe @ 2000-07-25 18:53 UTC (permalink / raw)
  To: SteffenH, linuxppc-dev; +Cc: Benjamin Herrenschmidt, Franz Sirl


Hi Steffen,
On Wed, Jul 26, 2000, Steffen Haeuser wrote:
> Am 25-Jul-00 schrieb Iain Sandoe:
[...]

> and the file contains
>
> burgundyawacs
>
> if this says anything to you :)

AH HA!!! - you are the first "burgundy" reply I've had... I will be *very*
interested to hear how it goes...

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: sound again [was: Re: xf4 bug report]
@ 2000-07-25 19:25 Iain Sandoe
  2000-07-26  2:53 ` Steffen Haeuser
  0 siblings, 1 reply; 34+ messages in thread
From: Iain Sandoe @ 2000-07-25 19:25 UTC (permalink / raw)
  To: SteffenH, linuxppc-dev


 Wed, Jul 26, 2000,  Steffen Haeuser wrote:
> Am 25-Jul-00 schrieb Iain Sandoe:

> Okay, installed the new one...
>
> Well, it behaves just the same like the old kernel... same error-message...

Glad to hear it boots OK (I wasn't sure that the AppleSCSI driver wouldn't
panic on boot - it used to on my Lombard)...

But... does the sound work when you load the modules by hand? (see web-page
for details).  I suspect you have a bogus entry in your conf.modules...

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: sound again [was: Re: xf4 bug report]
@ 2000-07-25 19:30 Iain Sandoe
  2000-07-26 14:37 ` Steffen Haeuser
  0 siblings, 1 reply; 34+ messages in thread
From: Iain Sandoe @ 2000-07-25 19:30 UTC (permalink / raw)
  To: SteffenH, linuxppc-dev


HI Steffen,
[...]
>
>>AH HA!!! - you are the first "burgundy" reply I've had... I will be *very*
>>interested to hear how it goes...
>
> What does this mean ? This burgundy stuff ?

It's a more "advanced" version of the AWACS chip - should actually be easier
to deal with since you can actually read the registers in it (instead of
having to remember what you wrote - I always *did* hate write only
registers)...
 :-)

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: sound again [was: Re: xf4 bug report]
@ 2000-07-25 19:53 Iain Sandoe
  2000-07-26  3:51 ` Steffen Haeuser
  0 siblings, 1 reply; 34+ messages in thread
From: Iain Sandoe @ 2000-07-25 19:53 UTC (permalink / raw)
  To: SteffenH, linuxppc-dev


Hmmm...
[...]
>>Glad to hear it boots OK (I wasn't sure that the AppleSCSI driver wouldn't
>>panic on boot - it used to on my Lombard)...
>
> Appearently the problem was a wrong entry in /etc/conf.modules... it had
>
> alias sound dmasound
>
> there while correct would be
>
> alias sound dmasound_awacs
>
> After I fixed this the sound modules can be correctly loaded during bootup,
> but there is still no sound. Maybe I should go back to the old kernel and try
> if it works with that, or don't you think this will make a difference ?

No, I'm afraid it won't make any difference.

The dmasound_awacs entry only arrives with the back-port.  As Franz said,
the error you were getting before was probably due to the conf.modules entry
- when Ben had built the dmasound in.

So the long & short of it is that you don't get sound out with the "current"
set of code.  == there *should* be no difference in the implementation
between 2.2.17pre10 and the back-port (I checked that fairly carefully)...
and this seems to bear that out.

So.. the next thing to do is to find out why you get no sound.

1. what does dmesg now show?
2. have you tried headphones/versus built-in speaker?  (others have reported
a problem here - which is why the finger of blame is currently pointing at
the mixer abstraction)...

3. what does cat /dev/sndstat say?

4. what are you using to try and get sound out (e.g. some of the kde
implementations had broken sound anyway) - I never got *any* beeps &
whistles until I upgraded.

I can send or post a prog. that sets the snd output to 16bit LE - so that
you can just cat <some_file.wav> >/dev/dsp  if that's any use.

xmms usually works for me (although I've been using the cvs version)...

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: sound again [was: Re: xf4 bug report]
@ 2000-07-25 21:41 Iain Sandoe
  0 siblings, 0 replies; 34+ messages in thread
From: Iain Sandoe @ 2000-07-25 21:41 UTC (permalink / raw)
  To: SteffenH, linuxppc-dev


Hi Steffen,

I think we should take this off-list... (it's getting to be a bit
long-winded)...

Ben, Franz (if you are 'listening' or have an interest) let me know and I'll
cc you otherwise we'll report back when there's some solution.

>>1. what does dmesg now show?
>
> DMA sound driver core [Ed 3]

Good that's definitely the back-port code...

> 4 Buffers of 32 K for Output
> Same for Input

You've abbreviated this (I hope)...

> AWACS rev 100
>
> registers:
>
> 1400 782d 7810 0001 00a1 0021 0000 0000
> 0000 0000 0000 0000 0000 0000 0000 0000
> 0000 0000 4000 0000 26bb 0010 0000 0002
> 0001 0000 0000 0000 0000 0000 0000 0000

Good, it's recognised your Burgundy chip...

>>2. have you tried headphones/versus built-in speaker?  (others have reported
>>a problem here - which is why the finger of blame is currently pointing at
>>the mixer abstraction)...
>
> Up to now only built-in speakers. Will try with headphones :)
>
[snip]

The rest looks OK too...

Now, I'll have a quick look at the amp-enable code (again) - that did have a
problem at one point.

I'm out (on paid work :) tomorrow... so not much action 'till late...

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: sound again [was: Re: xf4 bug report]
@ 2000-07-26 18:29 Iain Sandoe
  0 siblings, 0 replies; 34+ messages in thread
From: Iain Sandoe @ 2000-07-26 18:29 UTC (permalink / raw)
  To: SteffenH, Michael Schmitz; +Cc: Geert Uytterhoeven, linuxppc-dev


Hey guys, I've used all of them at one time or another...
Mac(s), Amiga, Atari(s) & VME...
Never meant to start a war :-))))

now next message --- back to sorting out the problem...
Iain...

>>Right. The very people that first brought Linux to the m68k Mac might feel
>>upset. One was a well known ix86 kernel hacker, the other a m68k hacker
>>from the Atari/Amiga camp.
>
> There is no Atari/Amiga camp... actually Amiga and Atari people cannot stand
> each other... :) Mac... yes... but Atari... no... :)
>
>>> Would be only a 68k Kernel then though and not use the PowerPC Board in
> case
>>> of the Amiga...
>
>>Right, but can you compile a kernel that will run on PowerMac/CHRP/PReP
>>and APUS? Which one's serial will work?
>
> The Linux for Amiga PowerPC Boards uses the APUS stuff. Only difference is
> a special bootloader.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: sound again [was: Re: xf4 bug report]
@ 2000-07-26 18:38 Iain Sandoe
  0 siblings, 0 replies; 34+ messages in thread
From: Iain Sandoe @ 2000-07-26 18:38 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Topi Kanerva, linuxppc-dev, daenzerm,
	SteffenH, geert


Hello all,

I'd say that a summary of today's (most interesting) thread is...

That:

(a) There's no real difference in behaviour between the back-port and the
2.2.17preXX monolithic dmasound module.

(b) The finger of blame is still pointing where I suspected (i.e. the mixer
abstraction).

OK -

1/  Is there an "official" maintainer?

2/  If not, is there anyone else (other than me) who wants to volunteer to
get to the bottom of it?

3/ Is there any reason to work on the 2.2.17preXX monolithic version or can
we continue with the 2.4.0-testxx with conditionals? (my preference as it
will transport directly to 2.4.0).

FYI: there is another party working on the I2C bus to bring support to the
iBook etc. - I've already made contact but he wants to get things going
before merging...

I *am* willing to have a go at doing a further split & debug job (certainly
on the pmac stuff).  Is there any news as to whether the code is OK of the
other platforms?

Thanks everyone for your input & an exciting read after a long and tiring
day out of the office :-)

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2000-07-27 20:44 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-25 14:42 sound again [was: Re: xf4 bug report] Iain Sandoe
2000-07-25 22:50 ` Steffen Haeuser
2000-07-25 18:49   ` Geert Uytterhoeven
2000-07-26 18:59     ` Steffen Haeuser
2000-07-26 17:27       ` Michael Schmitz
2000-07-27  0:49         ` Steffen Haeuser
2000-07-26 17:58           ` Michael Schmitz
2000-07-26 18:48             ` Michel Dänzer
2000-07-26 19:28               ` Michael Schmitz
2000-07-27  1:29             ` Steffen Haeuser
2000-07-27 12:13           ` Geert Uytterhoeven
2000-07-27 20:44             ` Steffen Haeuser
  -- strict thread matches above, loose matches on Subject: below --
2000-07-25 15:58 Iain Sandoe
2000-07-25 23:30 ` Steffen Haeuser
2000-07-25 16:46   ` Franz Sirl
2000-07-25 18:35 Iain Sandoe
2000-07-26  1:59 ` Steffen Haeuser
2000-07-26  2:30 ` Steffen Haeuser
2000-07-25 18:53 Iain Sandoe
2000-07-26  2:31 ` Steffen Haeuser
2000-07-25 19:25 Iain Sandoe
2000-07-26  2:53 ` Steffen Haeuser
2000-07-25 19:30 Iain Sandoe
2000-07-26 14:37 ` Steffen Haeuser
2000-07-26  9:59   ` Michel Dänzer
2000-07-26 11:09     ` Benjamin Herrenschmidt
2000-07-26 12:55   ` Topi Kanerva
2000-07-26 13:10     ` Benjamin Herrenschmidt
2000-07-26 13:13       ` Topi Kanerva
2000-07-25 19:53 Iain Sandoe
2000-07-26  3:51 ` Steffen Haeuser
2000-07-25 21:41 Iain Sandoe
2000-07-26 18:29 Iain Sandoe
2000-07-26 18:38 Iain Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).