Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148384
b: refs/heads/master
c: 5242bc7
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jun 9, 2009
1 parent 579e612 commit 9b956e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c399f3be82e1249221a7f410855ab1aa747fa82b
refs/heads/master: 5242bc7613311aa1a3d5ed41e9cf81015b65563f
4 changes: 4 additions & 0 deletions trunk/sound/pci/ctxfi/ctatc.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ atc_pcm_playback_position(struct ct_atc *atc, struct ct_atc_pcm *apcm)
u32 size, max_cisz;
int position;

if (!src)
return 0;
position = src->ops->get_ca(src);

size = apcm->vm_block->size;
Expand Down Expand Up @@ -782,6 +784,8 @@ atc_pcm_capture_position(struct ct_atc *atc, struct ct_atc_pcm *apcm)
{
struct src *src = apcm->src;

if (!src)
return 0;
return src->ops->get_ca(src) - apcm->vm_block->addr;
}

Expand Down

0 comments on commit 9b956e3

Please sign in to comment.