[alsa-devel] [PATCH - ctxfi driver 4/4] Fix: clear input settings before initialization

pbruskispam at op.pl pbruskispam at op.pl
Sun Mar 13 16:18:58 CET 2011


From: Przemyslaw Bruski <pbruskispam at op.pl>


Signed-off-by: Przemyslaw Bruski <pbruskispam at op.pl>

diff --git a/pci/ctxfi/ctdaio.c b/pci/ctxfi/ctdaio.c
index af56eb9..47d9ea9 100644
--- a/pci/ctxfi/ctdaio.c
+++ b/pci/ctxfi/ctdaio.c
@@ -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);
@@ -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);
-- 
1.7.1



More information about the Alsa-devel mailing list