ALSA: convert PM ops of platform_driver to new pm ops
[linux-3.10.git] / sound / arm / aaci.h
index 788c24a..5791bd5 100644 (file)
 struct aaci_runtime {
        void                    __iomem *base;
        void                    __iomem *fifo;
+       spinlock_t              lock;
 
        struct ac97_pcm         *pcm;
        int                     pcm_open;
@@ -209,6 +210,8 @@ struct aaci_runtime {
        u32                     cr;
        struct snd_pcm_substream        *substream;
 
+       unsigned int            period; /* byte size of a "period" */
+
        /*
         * PIO support
         */
@@ -216,23 +219,23 @@ struct aaci_runtime {
        void                    *end;
        void                    *ptr;
        int                     bytes;
-       unsigned int            period;
-       unsigned int            fifosz;
+       unsigned int            fifo_bytes;
 };
 
 struct aaci {
        struct amba_device      *dev;
        struct snd_card         *card;
        void                    __iomem *base;
-       unsigned int            fifosize;
+       unsigned int            fifo_depth;
+       unsigned int            users;
+       struct mutex            irq_lock;
 
        /* AC'97 */
        struct mutex            ac97_sem;
-       ac97_bus_t              *ac97_bus;
-       ac97_t                  *ac97;
+       struct snd_ac97_bus     *ac97_bus;
+       struct snd_ac97         *ac97;
 
        u32                     maincr;
-       spinlock_t              lock;
 
        struct aaci_runtime     playback;
        struct aaci_runtime     capture;