Skip to content

Commit

Permalink
ALSA: ctxfi - Clear input settings before initialization
Browse files Browse the repository at this point in the history
Clear input settings before initialization.

Signed-off-by: Przemyslaw Bruski <pbruskispam@op.pl>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Przemyslaw Bruski authored and Takashi Iwai committed Mar 14, 2011
1 parent f164753 commit efed5f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/ctxfi/ctdaio.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ static int dao_set_left_input(struct dao *dao, struct rsc *input)
if (!entry)
return -ENOMEM;

dao->ops->clear_left_input(dao);
/* Program master and conjugate resources */
input->ops->master(input);
daio->rscl.ops->master(&daio->rscl);
Expand Down Expand Up @@ -204,6 +205,7 @@ static int dao_set_right_input(struct dao *dao, struct rsc *input)
if (!entry)
return -ENOMEM;

dao->ops->clear_right_input(dao);
/* Program master and conjugate resources */
input->ops->master(input);
daio->rscr.ops->master(&daio->rscr);
Expand Down

0 comments on commit efed5f2

Please sign in to comment.