Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148359
b: refs/heads/master
c: 822fa19
h: refs/heads/master
i:
  148357: 53fa581
  148355: c2248ee
  148351: b8d7b38
v: v3
  • Loading branch information
Takashi Iwai committed Jun 2, 2009
1 parent cba4598 commit 0ff16ec
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 8a4259bf89d23bfd58d87e275ef6da29cea6b3c5
refs/heads/master: 822fa19b5c23746577687a0ec48eae0ec1cd22a0
9 changes: 9 additions & 0 deletions trunk/sound/pci/ctxfi/ctatc.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ static int atc_pcm_playback_prepare(struct ct_atc *atc, struct ct_atc_pcm *apcm)
return 0;
}

/* first release old resources */
atc->pcm_release_resources(atc, apcm);

/* Get SRC resource */
desc.multi = apcm->substream->runtime->channels;
desc.msr = atc->msr;
Expand Down Expand Up @@ -496,6 +499,9 @@ atc_pcm_capture_get_resources(struct ct_atc *atc, struct ct_atc_pcm *apcm)
int n_srcimp = 0, n_amixer = 0, n_srcc = 0, n_sum = 0;
struct src_node_conf_t src_node_conf[2] = {{0} };

/* first release old resources */
atc->pcm_release_resources(atc, apcm);

/* The numbers of converting SRCs and SRCIMPs should be determined
* by pitch value. */

Expand Down Expand Up @@ -767,6 +773,9 @@ static int spdif_passthru_playback_get_resources(struct ct_atc *atc,
int n_amixer = apcm->substream->runtime->channels, i = 0;
unsigned int pitch = 0, rsr = atc->pll_rate;

/* first release old resources */
atc->pcm_release_resources(atc, apcm);

/* Get SRC resource */
desc.multi = apcm->substream->runtime->channels;
desc.msr = 1;
Expand Down

0 comments on commit 0ff16ec

Please sign in to comment.