Skip to content

Commit

Permalink
ALSA: au88x0: Fix incorrect device pointer for preallocation
Browse files Browse the repository at this point in the history
The code change in commit 6974f8a ("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: 6974f8a ("ALSA: pci: Avoid non-standard macro usage")
Link: https://lore.kernel.org/r/20191112143243.22216-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Nov 12, 2019
1 parent 0c4f09c commit 5095267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/au88x0/au88x0_pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5095267

Please sign in to comment.