Skip to content

Commit

Permalink
[ALSA] fix private data pointer calculation in CS4270 driver
Browse files Browse the repository at this point in the history
Fix the calculation of the private_data pointer in the CS4270 driver.

Signed-off-by: Timur Tabi <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
Timur Tabi authored and Mercurial server committed Nov 20, 2007
1 parent 3743544 commit 4df2053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/codecs/cs4270.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,8 @@ static int cs4270_probe(struct platform_device *pdev)
codec->owner = THIS_MODULE;
codec->dai = &cs4270_dai;
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;

Expand Down

0 comments on commit 4df2053

Please sign in to comment.