From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Lauss Subject: Re: ALC892 optical SPDIF not working Date: Thu, 5 Aug 2010 20:52:28 +0200 Message-ID: <20100805185228.GA32760@wormhole> References: <1280596972.4074.1.camel@mattotaupa> <20100731233223.GA19209@wormhole> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from roarinelk.homelinux.net (fnoeppeil48.netpark.at [217.175.205.176]) by alsa0.perex.cz (Postfix) with ESMTP id 957D0245E9 for ; Thu, 5 Aug 2010 20:52:29 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: Manuel Lauss , alsa-devel@alsa-project.org, Paul Menzel List-Id: alsa-devel@alsa-project.org On Mon, Aug 02, 2010 at 06:03:32PM +0200, Takashi Iwai wrote: > At Mon, 02 Aug 2010 10:02:48 +0200, > I wrote: > > > > At Sun, 1 Aug 2010 01:32:23 +0200, > > Manuel Lauss wrote: > > > > > > > > >> Is there a way to insert an initial playback delay? Under linux, the > > > > > >> first 2-2.5 seconds > > > > > >> of anything played are just silence; on windows audible playback > > > > > >> starts immediately. > > > > > > > > > > > > It's the time for synchronization your digital receiver takes, I guess. > > > > > > Maybe changing SPDIF status makes it resync, which happens at each > > > > > > opening / closing the stream. > > > > > > > > > > Yes, seems so. I've found a workaround in meantime. > > > > > > > > Could you elaborate on the workaround please, so others having this > > > > issue know it. > > > > > > My receiver allows to mix analog and digital inputs; with analog mix > > > enabled it syncs immediately. > > > > Just wondering whether the patch below helps? > > > > It's just a proof-of-concept, and it's not safe for multiple streams. > > If this works, we can move on the improvement of the stream assignment. > > ... and the below is the patch. If the previous patch worked, try > this instead of the previous one. Tested with mplayer. The initial 2-2.5sec silence is still there (on every invocation of mplayer), but seeking now works as it should (previously there was 2 sec silence too). Disabling codec pm doesn't help. Manuel Lauss