Skip to contentSkip to conversation

ALSA: au88x0: Fix incorrect device pointer for preallocation

PATCH New Takashi Iwai 1 participant 1 message Nov 12, 2019 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: au88x0: Fix incorrect device pointer for preallocation

The code change in commit 6974f8ad4494 ("ALSA: pci: Avoid non-standard macro usage") contained an incorrect conversion, which left the invalid pointer passed to the allocator for au88x0 driver. Fix it.

Fixes 6974f8ad4494 ("ALSA: pci: Avoid non-standard macro usage")
---
 sound/pci/au88x0/au88x0_pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/au88x0/au88x0_pcm.c +1 -1
index 1012e8da29e7..a2dcf43beedf 100644
@@ -637,7 +637,7 @@ static int snd_vortex_new_pcm(vortex_t *chip, int idx, int nr)
 	/* pre-allocation of Scatter-Gather buffers */
 	
 	snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
-					      &chip->pci_dev,
+					      &chip->pci_dev->dev,
 					      0x10000, 0x10000);
 
 	switch (VORTEX_PCM_TYPE(pcm)) {
Signature · 6 lines
2.16.4

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel