All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Trimarchi <trimarchi@gandalf.sssup.it>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [Q] playing / recording mono on a stereo-only hardware
Date: Sat, 30 Jan 2010 17:29:05 +0100	[thread overview]
Message-ID: <4B645E51.900@gandalf.sssup.it> (raw)
In-Reply-To: <Pine.LNX.4.64.1001301045500.4260@axis700.grange>

Guennadi Liakhovetski wrote:
> Hi
>
> I know this question belongs rather to alsa-users, and I did ask it there, 
> but got no solution so far. Maybe someone here can help.
>
> The recently posted SuperH SIU driver only supports stereo playback and 
> capture (channels_min = channels_max = 2). Is there a way to tell alsa-lib 
> to duplicate the mono-channel during playback and to mix recorded channels 
> (or use one of them), if mono recording is requested?
>   
I'm not an expert but I think that you can use plughw support of alsa-lib

pcm.record {
       type plug
       slave {
               pcm record_hw
       }
       route_policy average
       rate_converter "linear"
}

I think that automatically change rate and channel for supporting mono 
channel too

Michael


> Thanks
> Guennadi
> ---
> Guennadi Liakhovetski, Ph.D.
> Freelance Open-Source Software Developer
> http://www.open-technology.de/
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
>   

  reply	other threads:[~2010-01-30 16:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-30  9:49 [Q] playing / recording mono on a stereo-only hardware Guennadi Liakhovetski
2010-01-30 16:29 ` Michael Trimarchi [this message]
2010-01-30 16:45   ` Guennadi Liakhovetski
     [not found]     ` <4B683B48.1030707@gandalf.sssup.it>
2010-02-02 14:55       ` Guennadi Liakhovetski
2010-02-02 14:59         ` Michael Trimarchi
2010-02-02 15:12           ` Guennadi Liakhovetski
2010-02-02 15:25             ` Michael Trimarchi
2010-02-02 16:38               ` Guennadi Liakhovetski
2010-02-03  2:07                 ` Raymond Yau
2010-02-03 22:11                   ` Guennadi Liakhovetski
2010-02-04  0:12                     ` Raymond Yau
2010-02-04 20:24                       ` Guennadi Liakhovetski
2010-02-05  9:44                         ` Raymond Yau
2010-02-05 10:14                           ` Guennadi Liakhovetski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B645E51.900@gandalf.sssup.it \
    --to=trimarchi@gandalf.sssup.it \
    --cc=alsa-devel@alsa-project.org \
    --cc=g.liakhovetski@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.