Update of /cvsroot/alsa/alsa-kernel/pci/ice1712
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29589

Modified Files:
        ice1724.c 
Log Message:
Davy Wentzler <[EMAIL PROTECTED]>:

- fixed the access in trigger callback to byte access.
  (may fix the problem on ppc.)



Index: ice1724.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ice1712/ice1724.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- ice1724.c   21 Jan 2004 18:32:47 -0000      1.23
+++ ice1724.c   2 Feb 2004 13:47:55 -0000       1.24
@@ -295,8 +295,8 @@
 static int snd_vt1724_pcm_trigger(snd_pcm_substream_t *substream, int cmd)
 {
        ice1712_t *ice = snd_pcm_substream_chip(substream);
-       unsigned int what;
-       unsigned int old;
+       unsigned char what;
+       unsigned char old;
        struct list_head *pos;
        snd_pcm_substream_t *s;
 
@@ -316,12 +316,12 @@
                                what |= VT1724_RDMA1_PAUSE;
                }
                spin_lock(&ice->reg_lock);
-               old = inl(ICEMT1724(ice, DMA_PAUSE));
+               old = inb(ICEMT1724(ice, DMA_PAUSE));
                if (cmd == SNDRV_PCM_TRIGGER_PAUSE_PUSH)
                        old |= what;
                else
                        old &= ~what;
-               outl(old, ICEMT1724(ice, DMA_PAUSE));
+               outb(old, ICEMT1724(ice, DMA_PAUSE));
                spin_unlock(&ice->reg_lock);
                break;
 
@@ -346,12 +346,12 @@
                        }
                }
                spin_lock(&ice->reg_lock);
-               old = inl(ICEMT1724(ice, DMA_CONTROL));
+               old = inb(ICEMT1724(ice, DMA_CONTROL));
                if (cmd == SNDRV_PCM_TRIGGER_START)
                        old |= what;
                else
                        old &= ~what;
-               outl(old, ICEMT1724(ice, DMA_CONTROL));
+               outb(old, ICEMT1724(ice, DMA_CONTROL));
                spin_unlock(&ice->reg_lock);
                break;
 



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to