 
            
            
            
            
                4 Jan
                
                    2018
                
            
            
                4 Jan
                
                '18
                
            
            
            
        
    
                3:03 p.m.
            
        On Thu, Jan 04, 2018 at 01:44:30PM +0000, Srinivas Kandagatla wrote:
Initially I had this in pcm driver, but looking at example usage of snd_dma_alloc_pages, most of them use card->dev and some of them use pcm device for allocating dma memory.
If they're using card->dev for DMA they're messing up, they need to use the device associated with the DMA controller.