All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: How to add full duplex capture and playback?
Date: Tue, 23 May 2006 14:57:08 +0200	[thread overview]
Message-ID: <447306A4.5010406@atmel.com> (raw)
In-Reply-To: <s5hhd3mvvyy.wl%tiwai@suse.de>

Takashi Iwai wrote:
> At Fri, 19 May 2006 17:42:55 +0200,
> Hans-Christian Egtvedt wrote:
>> Takashi Iwai wrote:
>>> At Fri, 19 May 2006 12:44:58 +0200,
>>> Hans-Christian Egtvedt wrote:

<snipp code>

>> But it does not work quite as expected. I'm still able to set rate and
>> format from userspace (aplay/arecord), and this again will alter the
>> hardware setup when the prepare callback is called.
> 
> Right.  The restriction of configuration space is defined by the rules
> set in open callback.  hw_params callback just follows the given
> parameter and returns the success or the failure code.
> 
> A typical code is like below:

<snipp code example>

Thank you, this really clear things up. Driver is working as expected now.

> In addition, a proper mutex would be preferred around the operation.
> 
> To be more strict, we may change hw_params like the following:

<snipp code example>

> However, this doesn't work with OSS emulation because OSS emulation
> initializes the rate to a certain default one.  If app tries to change
> the rate in the full-duplex mode, then it's refused.

I will leave this part out for now, since it dosn't work with OSS
emaulation.

-- 
With kind regards,
Med vennlig hilsen,

Hans-Christian Egtvedt
Applications Engineer - AVR Applications Lab
Atmel Norway


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

      reply	other threads:[~2006-05-23 12:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-19  9:29 How to add full duplex capture and playback? Hans-Christian Egtvedt
2006-05-19 10:44 ` Hans-Christian Egtvedt
2006-05-19 12:54   ` Takashi Iwai
2006-05-19 15:42     ` Hans-Christian Egtvedt
2006-05-19 16:08       ` Takashi Iwai
2006-05-23 12:57         ` Hans-Christian Egtvedt [this message]

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=447306A4.5010406@atmel.com \
    --to=hcegtvedt@atmel.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=tiwai@suse.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.