All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Kreileder <jk@blackdown.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Any missing patches?
Date: Mon, 20 Mar 2006 21:18:33 +0100	[thread overview]
Message-ID: <877j6oq38m.fsf@blackdown.de> (raw)
In-Reply-To: <s5hmzfl9cql.wl%tiwai@suse.de> (Takashi Iwai's message of "Mon, 20 Mar 2006 19:45:22 +0100")

Takashi Iwai <tiwai@suse.de> writes:

> if someone has patches intended for merging to ALSA tree, please
> submit them ASAP.
>
> I think the current ALSA CVS tree is forming to a relatively good
> shape now, and it's good time to push Linux kernel tree, too.
> Let's be not too late to ride a bus.

Here's a patch for generic dmix which fixes S16 byte swapping.

Tested on powerpc with snd-usb-audio.  (Without the patch I get crackling.)


BTW: Is it normal that the dmix plug-in consumes 100% CPU?


        Juergen


Signed-off-by: Juergen Kreileder <jk@blackdown.de>

--- o/alsa-lib-1.0.11rc3/src/pcm/pcm_dmix_generic.c	2005-12-19 08:39:04.000000000 +0100
+++ alsa-lib-1.0.11rc3/src/pcm/pcm_dmix_generic.c	2006-03-10 02:04:56.000000000 +0100
@@ -194,7 +194,7 @@ static void mix_areas1_swap(unsigned int
 	register signed int sample;
 
 	for (;;) {
-		sample = bswap_16(*src);
+		sample = (signed short) bswap_16(*src);
 		if (! *dst) {
 			*sum = sample;
 			*dst = *src;
@@ -205,7 +205,7 @@ static void mix_areas1_swap(unsigned int
 				sample = 0x7fff;
 			else if (sample < -0x8000)
 				sample = -0x8000;
-			*dst = bswap_16((signed short)sample);
+			*dst = (signed short) bswap_16((signed short) sample);
 		}
 		if (!--size)
 			return;
=


-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://blog.blackdown.de/


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

  reply	other threads:[~2006-03-20 20:18 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20 18:45 Any missing patches? Takashi Iwai
2006-03-20 20:18 ` Juergen Kreileder [this message]
2006-03-20 20:27   ` Takashi Iwai
2006-03-20 21:15     ` Juergen Kreileder
2006-03-21 10:52       ` Takashi Iwai
2006-03-20 20:26 ` Juergen Kreileder
2006-03-20 20:35   ` Takashi Iwai
2006-03-21 11:07   ` Takashi Iwai
2006-03-21  9:15 ` RE : " Thibault LE MEUR
2006-03-21 11:06   ` Takashi Iwai
2006-03-21 10:18 ` Rimas Kudelis
2006-03-21 10:54   ` Takashi Iwai
2006-03-21 11:30     ` Rimas Kudelis
2006-03-21 11:39       ` Takashi Iwai
2006-03-21 21:02     ` Rimas Kudelis
2006-03-21 22:06       ` Lee Revell
2006-03-22 11:02         ` Takashi Iwai
2006-03-22  1:37 ` Lee Revell
2006-03-22  4:15   ` Lee Revell
2006-03-22 18:32 ` Lee Revell
2006-03-22 20:16   ` Takashi Iwai
2006-04-05  3:58 ` [PATCH] asihpi unbalanced spinlocks Eliot Blennerhassett
2006-04-06 19:31   ` Takashi Iwai
     [not found] <20060321223803.318AD16C42@sc8-sf-spam2.sourceforge.net>
2006-03-22  2:37 ` Any missing patches? Jonathan Woithe
2006-03-22 10:56   ` Takashi Iwai
2006-03-22 23:08     ` Jonathan Woithe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877j6oq38m.fsf@blackdown.de \
    --to=jk@blackdown.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.