usb: gadget: u_audio: Remove superfluous snd_dma_continuous_data()
PATCH 1/1 usb: gadget: u_audio: Remove superfluous snd_dma_continuous_data()
The recent change (commit 08422d2c559d: "ALSA: memalloc: Allow NULL device for SNDRV_DMA_TYPE_CONTINOUS type") made the PCM preallocation helper accepting NULL as the device pointer for the default usage. Drop the snd_dma_continuous_data() usage that became superfluous from the callers.
---
Note that the prerequisite commit 08422d2c559d is found currently only on for-next branch of sound git tree, so please give ACK if it's OK, so that I can apply on top of it. Thanks!
drivers/usb/gadget/function/u_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/function/u_audio.c +1 -1
@@ -585,7 +585,7 @@ int g_audio_setup(struct g_audio *g_audio, const char *pcm_name,sprintf (card->longname,"%s %i" , card_name, card->dev->id);snd_pcm_lib_preallocate_pages_for_all (pcm,SNDRV_DMA_TYPE_CONTINUOUS , -snd_dma_continuous_data (GFP_KERNEL ),0 ,BUFF_SIZE_MAX ); +NULL ,0 ,BUFF_SIZE_MAX ); err =snd_card_register (card);
Signature · 1 line
2.16.4
Quoted 6 lines · Takashi Iwai
The recent change (commit
08422d2c559d: "ALSA: memalloc: Allow NULL device forSNDRV_DMA_TYPE_CONTINOUStype") made the PCM preallocation helper accepting NULL as the device pointer for the default usage. Drop thesnd_dma_continuous_data()usage that became superfluous from the callers.
Quoted 7 lines
Signed-off-by Takashi Iwai <[email protected]>---
Note that the prerequisite commit
08422d2c559dis found currently only on for-next branch of sound git tree, so please give ACK if it's OK, so that I can apply on top of it. Thanks!