linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* patch for dmasound bug
@ 1999-06-02 20:05 Ryan Nielsen
  1999-06-10 22:56 ` Alvin Brattli
  0 siblings, 1 reply; 4+ messages in thread
From: Ryan Nielsen @ 1999-06-02 20:05 UTC (permalink / raw)
  To: linuxppc-dev


This restores the rate/byteswap to normal after playing a beep
if you for example stop timidity, make a beep, resume, the sound
will be slower than normal (without this patch).

--- linux/drivers/sound/dmasound.c	1999/02/05 05:45:42	1.41
+++ linux/drivers/sound/dmasound.c	1999/06/02 19:42:08
@@ -3255,6 +3255,11 @@
 	save_flags(flags); cli();
 	if (beep_playing) {
 		st_le16(&beep_dbdma_cmd->command, DBDMA_STOP);
+		out_le32(&awacs_txdma->control, (RUN|PAUSE|FLUSH|WAKE) << 16);
+		out_le32(&awacs->control,
+			 (in_le32(&awacs->control) & ~0x1f00)
+			 | (awacs_rate_index << 8));
+		out_le32(&awacs->byteswap, sound.hard.format != AFMT_S16_BE);
 		beep_playing = 0;
 	}
 	restore_flags(flags);

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

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

end of thread, other threads:[~1999-06-11 22:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-02 20:05 patch for dmasound bug Ryan Nielsen
1999-06-10 22:56 ` Alvin Brattli
1999-06-11 20:07   ` Ryan Nielsen
1999-06-11 22:54     ` Alvin Brattli

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).