login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
30
Re: linux-next: manual merge of the usb tree with the sound tree
view
thread
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Daniel Mack
Subject:
Re: linux-next: manual merge of the usb tree with the sound tree
Date: Thursday, April 29, 2010 - 10:59 pm
On Fri, Apr 30, 2010 at 03:51:34PM +1000, Stephen Rothwell wrote:
quoted text
> Today's linux-next merge of the usb tree got a conflict in > sound/usb/usbaudio.c between commit > e5779998bf8b70e48a6cc208c8b61b33bd6117ea ("ALSA: usb-audio: refactor > code") from the sound tree and commit > 3cc96f50329227fbf34de2459491901b6ee1c98c ("USB: rename usb_buffer_alloc() > and usb_buffer_free() users") from the usb tree. > > The former moved the relevant code from usbaudio.c to urb.c, so I applied > the changes from the latter to that (see below).
Oops, yes. Ironically, these are both my patches. Thanks for fixing this up, Stephen. Daniel
quoted text
> From: Stephen Rothwell <sfr@canb.auug.org.au> > Date: Fri, 30 Apr 2010 14:44:54 +1000 > Subject: [PATCH] sound: fixup for usb_buffer_alloc/free rename > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > --- > sound/usb/urb.c | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/sound/usb/urb.c b/sound/usb/urb.c > index 5570a2b..de607d4 100644 > --- a/sound/usb/urb.c > +++ b/sound/usb/urb.c > @@ -101,7 +101,7 @@ static void release_urb_ctx(struct snd_urb_ctx *u) > { > if (u->urb) { > if (u->buffer_size) > - usb_buffer_free(u->subs->dev, u->buffer_size, > + usb_free_coherent(u->subs->dev, u->buffer_size, > u->urb->transfer_buffer, > u->urb->transfer_dma); > usb_free_urb(u->urb); > @@ -154,7 +154,7 @@ void snd_usb_release_substream_urbs(struct snd_usb_substream *subs, int force) > release_urb_ctx(&subs->dataurb[i]); > for (i = 0; i < SYNC_URBS; i++) > release_urb_ctx(&subs->syncurb[i]); > - usb_buffer_free(subs->dev, SYNC_URBS * 4, > + usb_free_coherent(subs->dev, SYNC_URBS * 4, > subs->syncbuf, subs->sync_dma); > subs->syncbuf = NULL; > subs->nurbs = 0; > @@ -308,8 +308,8 @@ int snd_usb_init_substream_urbs(struct snd_usb_substream *subs, > if (!u->urb) > goto out_of_memory; > u->urb->transfer_buffer = > - usb_buffer_alloc(subs->dev, u->buffer_size, GFP_KERNEL, > - &u->urb->transfer_dma); > + usb_alloc_coherent(subs->dev, u->buffer_size, > + GFP_KERNEL, &u->urb->transfer_dma); > if (!u->urb->transfer_buffer) > goto out_of_memory; > u->urb->pipe = subs->datapipe; > @@ -321,7 +321,7 @@ int snd_usb_init_substream_urbs(struct snd_usb_substream *subs, > > if (subs->syncpipe) { > /* allocate and initialize sync urbs */ > - subs->syncbuf = usb_buffer_alloc(subs->dev, SYNC_URBS * 4, > + subs->syncbuf = usb_alloc_coherent(subs->dev, SYNC_URBS * 4, > GFP_KERNEL, &subs->sync_dma); > if (!subs->syncbuf) > goto out_of_memory; > -- > 1.7.1
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: linux-next: manual merge of the usb tree with the soun ...
, Daniel Mack
, (Thu Apr 29, 10:59 pm)
Re: linux-next: manual merge of the usb tree with the soun ...
, Stephen Rothwell
, (Thu May 20, 5:39 pm)
Re: linux-next: manual merge of the usb tree with the soun ...
, Takashi Iwai
, (Thu May 20, 10:45 pm)
Re: linux-next: manual merge of the usb tree with the soun ...
, Takashi Iwai
, (Thu May 20, 11:19 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate