Re: [PATCH] ALSA: memalloc: Store snd_dma_buffer.addr for continuous pages, too

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

 



On Wed, 04 Aug 2021 08:34:15 +0200,
Takashi Iwai wrote:
> 
> In the recent fix commit eda80d7c9c4d ("ALSA: memalloc: Fix regression
> with SNDRV_DMA_TYPE_CONTINUOUS"), we replaced the pfn argument of the
> remap_page_pfn() call from the uninitialized dmab->addr.  It was the
> right fix, but it'd be more generic if we actually initialize
> dmab->area for SNDRV_DMA_TYPE_CONTINOUS, too.  e.g. the field is used
> in the common snd_sgbuf_get_addr(), too.
> 
> This patch adds the initialization of addr field and does revert of
> the previous change to refer to it again in the mmap call.
> 
> Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>

Scratch this one, an old patch was submitted wrongly.
Will resubmit the right one.


Takashi



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux