Re: [alsa-devel] looping S/PDIF data

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Takashi Iwai
Date: Thursday, June 19, 2008 - 3:05 am

At Wed, 18 Jun 2008 09:24:59 +0200,
Rene Herman wrote:

Does the patch below help?


Takashi

diff --git a/sound/pci/trident/trident_main.c b/sound/pci/trident/trident_main.c
index bbcee2c..916d4b8 100644
--- a/sound/pci/trident/trident_main.c
+++ b/sound/pci/trident/trident_main.c
@@ -1593,7 +1593,11 @@ static int snd_trident_trigger(struct snd_pcm_substream *substream,
 			outb(trident->spdif_pcm_ctrl, TRID_REG(trident, NX_SPCTRL_SPCSO + 3));
 		} else {
 			outl(trident->spdif_pcm_bits, TRID_REG(trident, SI_SPDIF_CS));
-			val = inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)) | SPDIF_EN;
+			val = inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL));
+			if (go)
+				val |= SPDIF_EN;
+			else
+				val &= ~SPDIF_EN;
 			outl(val, TRID_REG(trident, SI_SERIAL_INTF_CTRL));
 		}
 	}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
looping S/PDIF data, Pierre Ossman, (Sat May 31, 2:26 am)
Re: looping S/PDIF data, Takashi Iwai, (Mon Jun 2, 1:00 am)
Re: looping S/PDIF data, Pierre Ossman, (Tue Jun 17, 12:55 pm)
Re: looping S/PDIF data, Rene Herman, (Wed Jun 18, 12:24 am)
Re: [alsa-devel] looping S/PDIF data, Takashi Iwai, (Thu Jun 19, 3:05 am)
Re: [alsa-devel] looping S/PDIF data, Takashi Iwai, (Thu Jun 19, 3:05 am)
Re: [alsa-devel] looping S/PDIF data, Jaroslav Kysela, (Thu Jun 19, 5:39 am)
Re: [alsa-devel] looping S/PDIF data, Takashi Iwai, (Thu Jun 19, 5:48 am)
Re: [alsa-devel] looping S/PDIF data, Pierre Ossman, (Thu Jun 19, 4:02 pm)
Re: [alsa-devel] looping S/PDIF data, Pierre Ossman, (Fri Jun 20, 12:45 pm)
Re: [alsa-devel] looping S/PDIF data, Rene Herman, (Fri Jun 20, 12:52 pm)
Re: [alsa-devel] looping S/PDIF data, Pierre Ossman, (Fri Jun 20, 3:00 pm)
Re: [alsa-devel] looping S/PDIF data, Rene Herman, (Fri Jun 20, 3:23 pm)
Re: [alsa-devel] looping S/PDIF data, Pierre Ossman, (Fri Jun 20, 4:09 pm)
Re: [alsa-devel] looping S/PDIF data, Rene Herman, (Sat Jun 21, 5:14 am)
Re: [alsa-devel] looping S/PDIF data, Pierre Ossman, (Mon Jun 30, 10:11 am)
Re: [alsa-devel] looping S/PDIF data, Rene Herman, (Mon Jun 30, 11:21 am)
Re: [alsa-devel] looping S/PDIF data, Pierre Ossman, (Mon Jun 30, 12:22 pm)
Re: [alsa-devel] looping S/PDIF data, Takashi Iwai, (Tue Jul 1, 3:16 am)