mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ALSA: arm: Avoid passing NULL to memory allocators
We should pass a proper non-NULL device object to memory allocators although it was accepted in the past. The card->dev points to the most appropriate device object in such a case, so let's put it. Acked-by: Christoph Hellwig <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
c7c3fec8a5
commit
bc70a9d700
1 changed files with 2 additions and 1 deletions
|
|
@ -941,7 +941,8 @@ static int aaci_init_pcm(struct aaci *aaci)
|
|||
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &aaci_playback_ops);
|
||||
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &aaci_capture_ops);
|
||||
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
|
||||
NULL, 0, 64 * 1024);
|
||||
aaci->card->dev,
|
||||
0, 64 * 1024);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue