Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372023
b: refs/heads/master
c: daa2db5
h: refs/heads/master
i:
  372021: 74deaae
  372019: c80a68d
  372015: 521e33b
v: v3
  • Loading branch information
Charles Keepax authored and Takashi Iwai committed Apr 21, 2013
1 parent ff15633 commit 3d83a03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 49bb6402f1aa1effa9d9c5df39d91a86ca8fd736
refs/heads/master: daa2db59ce7e36011a6c92a0342cd0919b9fb7d3
9 changes: 8 additions & 1 deletion trunk/sound/soc/soc-compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,14 @@ int soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num)
/* check client and interface hw capabilities */
snprintf(new_name, sizeof(new_name), "%s %s-%d",
rtd->dai_link->stream_name, codec_dai->name, num);
direction = SND_COMPRESS_PLAYBACK;

if (codec_dai->driver->playback.channels_min)
direction = SND_COMPRESS_PLAYBACK;
else if (codec_dai->driver->capture.channels_min)
direction = SND_COMPRESS_CAPTURE;
else
return -EINVAL;

compr = kzalloc(sizeof(*compr), GFP_KERNEL);
if (compr == NULL) {
snd_printk(KERN_ERR "Cannot allocate compr\n");
Expand Down

0 comments on commit 3d83a03

Please sign in to comment.