From: Takashi Iwai Subject: Analog-SPDIF dup Date: Wed, 21 Nov 2007 12:20:03 +0100 Message-ID: References: <20071120005151.GA25276@tango.0pointer.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx1.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 3164024BE0 for ; Wed, 21 Nov 2007 12:54:50 +0100 (CET) In-Reply-To: <20071120005151.GA25276@tango.0pointer.de> 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: Lennart Poettering Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 20 Nov 2007 01:51:51 +0100, Lennart Poettering wrote: > > 2) If I understood correctly, then on some devices it is possible to > open a analog output and a SPDIF output simultaneously and > independently. On others however, they are exclusive to each > other. The name hinting system doesn't really distuinguish > those cases. Any idea how I could detect this? The reason is, I'd like to > open both SPDIF and analog out in PulseAudio at the same time -- if > it is possible. If it is not I want to give the user a quick way to > switch the outputs. There is no 100% certain way, so far. A practical way would be to open analog then SPDIF PCMs at the same time with non-blocking mode. If both can be opened, it's likely non-duplicated one. Or, we can change the "default" PCM to always output both. Not sure whether it's a good change, though. But usually SPDIF output can be turned off via a mixer switch, so this wouldn't be a big problem (I hope). Takashi