linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [patch] little-endian dmasound silently fails
@ 2000-02-04 23:20 Brad Midgley
  2000-02-04 23:59 ` Takashi Oe
  2000-02-05 19:12 ` Giuliano Pochini
  0 siblings, 2 replies; 11+ messages in thread
From: Brad Midgley @ 2000-02-04 23:20 UTC (permalink / raw)
  To: linuxppc-dev


ha. that's a pun. it's not silent at all when you listen.

seriously, the dmasound driver advertises itself as little-endian capable
but doesn't provide the proper translators. so clients like openh323
switch the mode to little-endian (without any errors) and write
little-endian data and the result is a hissing noise!

i think this is all that is needed so the little-endian switch will fail
(i can't test this; i'm not at home). the proper fix will be to implement
the little-endian versions and i've started that but i'm getting mired in
the details -- this is terse code!

--- drivers/sound/dmasound.c.orig       Fri Feb  4 16:01:17 2000
+++ drivers/sound/dmasound.c    Fri Feb  4 16:02:26 2000
@@ -2211,12 +2211,12 @@
 #ifdef CONFIG_PPC
 static TRANS transAwacsNormal = {
        pmac_ct_law, pmac_ct_law, pmac_ct_s8, pmac_ct_u8,
-       pmac_ct_s16, pmac_ct_u16, pmac_ct_s16, pmac_ct_u16
+       pmac_ct_s16, pmac_ct_u16, NULL, NULL
 };

 static TRANS transAwacsExpand = {
        pmac_ctx_law, pmac_ctx_law, pmac_ctx_s8, pmac_ctx_u8,
-       pmac_ctx_s16, pmac_ctx_u16, pmac_ctx_s16, pmac_ctx_u16
+       pmac_ctx_s16, pmac_ctx_u16, NULL, NULL
 };
 #endif /* CONFIG_PPC */

Brad
brad@turbolinux.com | http://www.turbolinux.com/~brad/


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

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

end of thread, other threads:[~2000-02-06 13:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-04 23:20 [patch] little-endian dmasound silently fails Brad Midgley
2000-02-04 23:59 ` Takashi Oe
2000-02-05  3:55   ` Brad Midgley
2000-02-05  5:56     ` Takashi Oe
2000-02-05 13:26       ` BenH
2000-02-06  4:50         ` Takashi Oe
2000-02-06 13:34           ` BenH
2000-02-06 11:55         ` Brad Boyer
2000-02-06 10:22       ` Brad Midgley
2000-02-06  8:15         ` Takashi Oe
2000-02-05 19:12 ` Giuliano Pochini

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