Re: [alsa-devel] [PATCH 2/2] ASoC: atmel-pcm: use generic dmaengine framework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Lars,

On 7/3/2013 15:36, Lars-Peter Clausen wrote:
+        slave_config->dst_addr = (dma_addr_t)ssc->phybase + SSC_THR;
>>[...]
>>>+        slave_config->src_addr = (dma_addr_t)ssc->phybase + SSC_RHR;
>>
>>Change the type of phybase to dma_addr_t
>
>It should be:
>slave_config->dst_addr = (dma_addr_t)(ssc->phybase + SSC_THR);
>slave_config->src_addr = (dma_addr_t)(ssc->phybase + SSC_RHR);
The type of phybase in the ssc_device struct should be changed from
resource_size_t to dma_addr_t.

Actually, the phybase in ssc_device structure is resource_size_t which used to access the ssc device register. Here, we use ssc register as dma source address or destination address, so we convert it to dma_addr_t type. So, not need to change, am I right?

Best Regards,
Bo Shen
--
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux