Re: [samsung:v4l-next 51/121] drivers/media/usb/tlg2300/pd-alsa.c:309:3: error: implicit declaration of function 'snd_free_card'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Wed, 26 Sep 2012 17:50:35 +0100
Alan Cox <alan@xxxxxxxxxxxxxxx> escreveu:

> > vim +309 drivers/media/usb/tlg2300/pd-alsa.c
> >    303		ret = snd_card_create(-1, "Telegent",
> > THIS_MODULE, 0, &card); 304		if (ret != 0)
> >    305			return ret;
> >    306	
> >    307		ret = snd_pcm_new(card, "poseidon audio", 0, 0,
> > 1, &pcm); 308		if (ret < 0) {
> >  > 309			snd_free_card(card);
> 
> Umm I sent the version out then - should be snd_card_free(card) I
> think !

Yeah, I had to apply this patch on my tree, in order to fix compilation:

commit fac44ee564a54db020ad384e0de94b5d8be3c6b5
Author: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
Date:   Sun Sep 23 16:42:44 2012 -0300

    [media] pd-alsa: fix compilation breakage by commit da35de640
    
    commit da35de640 broke compilation, as it reverted the name of the
    usb card free function.
    
    Cc: Alan Cox <alan@xxxxxxxxxxxxxxx>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>

diff --git a/drivers/media/usb/tlg2300/pd-alsa.c b/drivers/media/usb/tlg2300/pd-alsa.c
index 0c77869..3f3e141 100644
--- a/drivers/media/usb/tlg2300/pd-alsa.c
+++ b/drivers/media/usb/tlg2300/pd-alsa.c
@@ -306,7 +306,7 @@ int poseidon_audio_init(struct poseidon *p)
 
 	ret = snd_pcm_new(card, "poseidon audio", 0, 0, 1, &pcm);
 	if (ret < 0) {
-		snd_free_card(card);
+		snd_card_free(card);
 		return ret;
 	}
 	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_capture_ops);

Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux