From: Tanu Kaskinen Subject: How to define card specific pcm devices? Date: Fri, 10 Aug 2012 14:25:03 +0300 Message-ID: <1344597903.4283.68.camel@IT-D-4QB9Z4J> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp1.digia.com (smtp1.digia.com [82.118.214.156]) by alsa0.perex.cz (Postfix) with ESMTP id 6AE4D2664EF for ; Fri, 10 Aug 2012 12:55:20 +0200 (CEST) Received: from smtp1.digia.com (unknown [127.0.0.1]) by IMSVA80 (Postfix) with ESMTP id 760A337003D for ; Fri, 10 Aug 2012 14:25:05 +0300 (EEST) Received: from IT-EXCAS02-HKI.it.local (unknown [10.9.52.71]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp1.digia.com (Postfix) with ESMTP id 68D67370034 for ; Fri, 10 Aug 2012 14:25:05 +0300 (EEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Hi, I'm writing UCM configuration for RX-51 (Nokia N900), and I have a problem: "hw:RX51" can't be opened in mono mode, but there's only one integrated mono microphone, and its audio is routed to the left input channel. Applications will get only silence in the right channel when they use "hw:RX51". The best solution that I have come up is to define a pcm that converts "hw:RX51" into a mono device. The problem is that I don't know how exactly to do that. I guess the route plugin can be used for that: pcm.rx51_mono_from_left { type route slave.pcm hw:RX51 slave.channels 2 ttable.0.0 1 } I tried putting that definition in /usr/share/alsa/cards/RX-51.conf (and also RX51.conf, since it's not entirely clear to me when the dash should be omitted). I have this in the UCM configuration: Value { CapturePCM "rx51_mono_from_left" CaptureChannels "1" } This is printed to the PulseAudio log: (alsa-lib)pcm.c: Unknown PCM rx51_mono_from_left So the rx51_mono_from_left definition is not loaded. I'm not terribly surprised: I guess the card configuration files are loaded only when necessary, and when PulseAudio tries to open "rx51_mono_from_left", alsa-lib can't really know that it's somehow related to the RX-51 card. How should I solve this? -- Tanu