Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157526
b: refs/heads/master
c: 647613e
h: refs/heads/master
v: v3
  • Loading branch information
Atsushi Nemoto authored and Mark Brown committed Jun 25, 2009
1 parent 8c13f68 commit 11ac1ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62b1653e29d8f359c4c7e045b965dc963459473d
refs/heads/master: 647613e97fa46f6c25cf38b0f2fa81eba5f278d4
10 changes: 6 additions & 4 deletions trunk/sound/soc/txx9/txx9aclc.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,17 @@ static int txx9aclc_pcm_new(struct snd_card *card, struct snd_soc_dai *dai,
static bool filter(struct dma_chan *chan, void *param)
{
struct txx9aclc_dmadata *dmadata = param;
char devname[20 + 2]; /* FIXME: old BUS_ID_SIZE + 2 */
char *devname;
bool found = false;

snprintf(devname, sizeof(devname), "%s.%d", dmadata->dma_res->name,
devname = kasprintf(GFP_KERNEL, "%s.%d", dmadata->dma_res->name,
(int)dmadata->dma_res->start);
if (strcmp(dev_name(chan->device->dev), devname) == 0) {
chan->private = &dmadata->dma_slave;
return true;
found = true;
}
return false;
kfree(devname);
return found;
}

static int txx9aclc_dma_init(struct txx9aclc_soc_device *dev,
Expand Down

0 comments on commit 11ac1ba

Please sign in to comment.