All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem compiling alsa-driver-0.9.5 for SMP kernel
@ 2003-07-15 15:11 Klaus Steinberger
  2003-07-15 15:19 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Klaus Steinberger @ 2003-07-15 15:11 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]

I'm not sure if this is already reported, but I found nothing in the 
mail-archive about it.

There are some files inside alsa-driver Version 0.9.5, which do not 
compile for an SMP Kernel because of some mistypings with spinlock 
Variables.

1. i2c/other/ak4117.c doesn't compile because of incompatible types

    This is due to a incorrect definition of the lock variable in ak4117

2. pcmcia/pdaudiocf/pdaudiocf_core.c doesn't compile due to the use
    of undefined spinlock variables. I changed that, but I'm not quite
    if I did the right thing

3. pcmcia/pdaudiocf/pdaudiocf_pcm.c doesn't compile because of a typo
    with spinlock Variables.

I append my patch against this.

Sincerely,
Klaus Steinberger

-- 
Klaus Steinberger         Maier-Leibnitz Labor
Phone: (+49 89)289 14287  Am Coulombwall 6, D-85748 Garching, Germany
FAX:   (+49 89)289 14280  EMail: Klaus.Steinberger@Physik.Uni-Muenchen.DE
URL: http://www.physik.uni-muenchen.de/~k2/

In a world without Walls and Fences, who needs Windows and Gates

[-- Attachment #2: alsa-driver-0.9.5-spinlock_t.patch --]
[-- Type: text/plain, Size: 1387 bytes --]

--- alsa-driver-0.9.5/include/ak4117.h.spinlock_t	2003-07-15 13:05:22.000000000 +0200
+++ alsa-driver-0.9.5/include/ak4117.h	2003-07-15 13:05:37.000000000 +0200
@@ -163,7 +163,7 @@
 	ak4117_read_t * read;
 	void * private_data;
 	unsigned int init: 1;
-	spinlock_t * lock;
+	spinlock_t  lock;
 	unsigned char regmap[5];
 	snd_kcontrol_t *kctls[AK4117_CONTROLS];
 	snd_pcm_substream_t *substream;
--- alsa-driver-0.9.5/pcmcia/pdaudiocf/pdaudiocf_core.c.spinlock_t	2003-07-15 13:42:27.000000000 +0200
+++ alsa-driver-0.9.5/pcmcia/pdaudiocf/pdaudiocf_core.c	2003-07-15 13:42:39.000000000 +0200
@@ -133,8 +133,7 @@
 	if (chip == NULL)
 		return NULL;
 	chip->card = card;
-	spin_lock_init(&chip->lock);
-	spin_lock_init(&chip->irq_lock);
+	spin_lock_init(&chip->reg_lock);
 	spin_lock_init(&chip->ak4117_lock);
 	tasklet_init(&chip->tq, pdacf_tasklet, (unsigned long)chip);
 	card->private_data = chip;
--- alsa-driver-0.9.5/pcmcia/pdaudiocf/pdaudiocf_pcm.c.spinlock_t	2003-07-15 13:43:56.000000000 +0200
+++ alsa-driver-0.9.5/pcmcia/pdaudiocf/pdaudiocf_pcm.c	2003-07-15 13:44:13.000000000 +0200
@@ -126,7 +126,7 @@
 	tmp |= val;
 	pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, tmp);
       __end:
-	spin_unlock(&chip_reg_lock);
+	spin_unlock(&chip->reg_lock);
 	if (cmd == SNDRV_PCM_TRIGGER_STOP)
 		pdacf_reinit(chip, 0);
 	snd_ak4117_check_rate_and_errors(chip->ak4117, AK4117_CHECK_NO_RATE);

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

* Re: Problem compiling alsa-driver-0.9.5 for SMP kernel
  2003-07-15 15:11 Problem compiling alsa-driver-0.9.5 for SMP kernel Klaus Steinberger
@ 2003-07-15 15:19 ` Takashi Iwai
  2003-07-16  4:25   ` Klaus Steinberger
  0 siblings, 1 reply; 3+ messages in thread
From: Takashi Iwai @ 2003-07-15 15:19 UTC (permalink / raw)
  To: Klaus Steinberger; +Cc: alsa-devel

At Tue, 15 Jul 2003 17:11:40 +0200,
Klaus Steinberger wrote:
> 
> I'm not sure if this is already reported, but I found nothing in the 
> mail-archive about it.
> 
> There are some files inside alsa-driver Version 0.9.5, which do not 
> compile for an SMP Kernel because of some mistypings with spinlock 
> Variables.
> 
> 1. i2c/other/ak4117.c doesn't compile because of incompatible types
> 
>     This is due to a incorrect definition of the lock variable in ak4117
> 
> 2. pcmcia/pdaudiocf/pdaudiocf_core.c doesn't compile due to the use
>     of undefined spinlock variables. I changed that, but I'm not quite
>     if I did the right thing
> 
> 3. pcmcia/pdaudiocf/pdaudiocf_pcm.c doesn't compile because of a typo
>     with spinlock Variables.
> 
> I append my patch against this.

thanks.

this was already fixed on my tree but had been pending because of sf's
server problem (again).  now committed to cvs.


Takashi


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1

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

* Re: Problem compiling alsa-driver-0.9.5 for SMP kernel
  2003-07-15 15:19 ` Takashi Iwai
@ 2003-07-16  4:25   ` Klaus Steinberger
  0 siblings, 0 replies; 3+ messages in thread
From: Klaus Steinberger @ 2003-07-16  4:25 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

> this was already fixed on my tree but had been pending because of sf's
> server problem (again).  now committed to cvs.

Fine!

Sincerly,
Klaus


-- 
Klaus Steinberger         Maier-Leibnitz Labor
Phone: (+49 89)289 14287  Am Coulombwall 6, D-85748 Garching, Germany
FAX:   (+49 89)289 14280  EMail: Klaus.Steinberger@Physik.Uni-Muenchen.DE
URL: http://www.physik.uni-muenchen.de/~k2/

In a world without Walls and Fences, who needs Windows and Gates



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

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

end of thread, other threads:[~2003-07-16  4:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-15 15:11 Problem compiling alsa-driver-0.9.5 for SMP kernel Klaus Steinberger
2003-07-15 15:19 ` Takashi Iwai
2003-07-16  4:25   ` Klaus Steinberger

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.