alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* How to define card specific pcm devices?
@ 2012-08-10 11:25 Tanu Kaskinen
  2012-08-17 14:50 ` Tanu Kaskinen
  0 siblings, 1 reply; 11+ messages in thread
From: Tanu Kaskinen @ 2012-08-10 11:25 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-09-08  8:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-10 11:25 How to define card specific pcm devices? Tanu Kaskinen
2012-08-17 14:50 ` Tanu Kaskinen
     [not found]   ` <CAN8cciYX4krbJvb9PWQFswAKq0AqiC_oh20n+NB2Ak=BF8Zgxw@mail.gmail.com>
2012-08-18  1:26     ` Raymond Yau
2012-08-18  4:09       ` Tanu Kaskinen
2012-08-24  4:20         ` Raymond Yau
2012-08-29  1:44         ` Raymond Yau
2012-09-05  5:41           ` Tanu Kaskinen
     [not found]             ` <CABS+qY3kEPr3aknPvTU+iRyGxSo2G_iDawv+fr7WBJrJQUO+2w@mail.gmail.com>
2012-09-06 17:18               ` Liam Girdwood
2012-09-07  9:03                 ` Tanu Kaskinen
2012-09-07  9:35                   ` Takashi Iwai
2012-09-08  8:04                     ` Tanu Kaskinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).