From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [samsung:v4l-next 51/121] drivers/media/usb/tlg2300/pd-alsa.c:309:3: error: implicit declaration
Date: Wed, 26 Sep 2012 18:17:09 +0000 [thread overview]
Message-ID: <20120926151709.46bd7165@redhat.com> (raw)
In-Reply-To: <20120926160807.GD14447@localhost>
Em Wed, 26 Sep 2012 17:50:35 +0100
Alan Cox <alan@linux.intel.com> 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@redhat.com>
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@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
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
prev parent reply other threads:[~2012-09-26 18:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-26 16:08 [samsung:v4l-next 51/121] drivers/media/usb/tlg2300/pd-alsa.c:309:3: error: implicit declaration of Fengguang Wu
2012-09-26 16:50 ` [samsung:v4l-next 51/121] drivers/media/usb/tlg2300/pd-alsa.c:309:3: error: implicit declaration Alan Cox
2012-09-26 18:17 ` Mauro Carvalho Chehab [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120926151709.46bd7165@redhat.com \
--to=mchehab@redhat.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.