SOUND: Fix txx9aclc.c build
PATCH 1/1 SOUND: Fix txx9aclc.c build
552d1ef6b5a98d7b95959d5b139071e3c90cebf1 [ASoC: core - Optimise and refactor pcm_new() to pass only rtd] breaks compilation of txx9aclc.c:
CC [M] sound/soc/txx9/txx9aclc.o/home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c: In function 'txx9aclc_pcm_new':/home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: error: 'card' undeclared (first use in this function) /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: note: each undeclared identifier is reported only once for each function it appears in make[5]: *** [sound/soc/txx9/txx9aclc.o] Error 1
Fixed by providing a definition for card.
sound/soc/txx9/txx9aclc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/txx9/txx9aclc.c +1 -0
@@ -290,6 +290,7 @@ static void txx9aclc_pcm_free_dma_buffers(struct snd_pcm *pcm)static int txx9aclc_pcm_new (struct snd_soc_pcm_runtime *rtd) { +struct snd_card *card = rtd->card->snd_card;struct snd_soc_dai *dai = rtd->cpu_dai;struct snd_pcm *pcm = rtd->pcm;struct platform_device *pdev =to_platform_device (dai->platform->dev);
At Thu, 28 Jul 2011 12:26:16 +0100,
Quoted 10 lines · Ralf Baechle
552d1ef6b5a98d7b95959d5b139071e3c90cebf1[ASoC: core - Optimise and refactorpcm_new()to pass only rtd] breaks compilation oftxx9aclc.c:CC [M]
sound/soc/txx9/txx9aclc.o/home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c: In function 'txx9aclc_pcm_new':/home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: error: 'card' undeclared (first use in this function)/home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: note: each undeclared identifier is reported only once for each function it appears in make[5]: *** [sound/soc/txx9/txx9aclc.o] Error 1
Quoted 3 lines
Fixed by providing a definition for card.
Signed-off-by Ralf Baechle <[email protected]>
Thanks, I applied now to fix/asoc branch of sound git tree.
Takashi
Quoted 17 lines
sound/soc/txx9/txx9aclc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)sound/soc/txx9/txx9aclc.c +1
-0@@ -290,6 +290,7 @@ static void txx9aclc_pcm_free_dma_buffers(struct snd_pcm *pcm)static int txx9aclc_pcm_new (struct snd_soc_pcm_runtime *rtd) { +struct snd_card *card = rtd->card->snd_card;struct snd_soc_dai *dai = rtd->cpu_dai;struct snd_pcm *pcm = rtd->pcm;struct platform_device *pdev =to_platform_device (dai->platform->dev);