projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16ccca1
)
ALSA: aoa: Avoid non-standard macro usage
author
Takashi Iwai
<tiwai@suse.de>
Tue, 5 Nov 2019 15:18:51 +0000
(16:18 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 6 Nov 2019 14:47:43 +0000
(15:47 +0100)
Pass the device pointer from the PCI pointer directly, instead of a
non-standard macro. The macro didn't give any better readability.
Link:
https://lore.kernel.org/r/20191105151856.10785-20-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/soundbus/i2sbus/pcm.c
patch
|
blob
|
history
diff --git
a/sound/aoa/soundbus/i2sbus/pcm.c
b/sound/aoa/soundbus/i2sbus/pcm.c
index
7f0754d
..
a94e402
100644
(file)
--- a/
sound/aoa/soundbus/i2sbus/pcm.c
+++ b/
sound/aoa/soundbus/i2sbus/pcm.c
@@
-1028,7
+1028,7
@@
i2sbus_attach_codec(struct soundbus_dev *dev, struct snd_card *card,
/* well, we really should support scatter/gather DMA */
snd_pcm_lib_preallocate_pages_for_all(
dev->pcm, SNDRV_DMA_TYPE_DEV,
-
snd_dma_pci_data(macio_get_pci_dev(i2sdev->macio))
,
+
&macio_get_pci_dev(i2sdev->macio)->dev
,
64 * 1024, 64 * 1024);
return 0;