mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 12:06:22 +07:00
[ALSA] fix private data pointer calculation in CS4270 driver
Fix the calculation of the private_data pointer in the CS4270 driver. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
3743544624
commit
4df20535ec
@ -725,7 +725,8 @@ static int cs4270_probe(struct platform_device *pdev)
|
|||||||
codec->owner = THIS_MODULE;
|
codec->owner = THIS_MODULE;
|
||||||
codec->dai = &cs4270_dai;
|
codec->dai = &cs4270_dai;
|
||||||
codec->num_dai = 1;
|
codec->num_dai = 1;
|
||||||
codec->private_data = codec + ALIGN(sizeof(struct snd_soc_codec), 4);
|
codec->private_data = (void *) codec +
|
||||||
|
ALIGN(sizeof(struct snd_soc_codec), 4);
|
||||||
|
|
||||||
socdev->codec = codec;
|
socdev->codec = codec;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user