From: Anders Torger <torger@ludd.luth.se>
To: martin-langer@gmx.de
Cc: alsa-devel@alsa-project.org
Subject: Re: RME96 driver patch
Date: Fri, 10 Jan 2003 16:13:07 +0100 [thread overview]
Message-ID: <200301101613.07818.torger@ludd.luth.se> (raw)
In-Reply-To: <20030110145314.GF20015@tuba.home>
On Friday 10 January 2003 15.53, Martin Langer wrote:
> On Sun, Jan 05, 2003 at 04:46:47PM +0100, Anders Torger wrote:
> > Here is a patch against rme96.c
>
> snd_rme96_capture_spdif_open(snd_pcm_substream_t *substream)
>
> [...]
>
> + runtime->hw = snd_rme96_capture_spdif_info;
> + if ((rate = snd_rme96_capture_getrate(rme96, &isadat)) > 0)
> { + if (isadat) {
> + return -EIO;
> + }
> + runtime->hw.rates = snd_rme96_ratecode(rate);
> + runtime->hw.rate_min = rate;
> + runtime->hw.rate_max = rate;
> + }
>
>
> You were changing sample rates in snd_rme96_capture_spdif_open. Isn't
> it too late there? Looks like capturing with wrong sample rates is
> now possible? Wouldn't this be better placed in the
> snd_rme96_capture_hw_params?
It is done both in open (show capabilities to the user) and hw params
(the user picks a setting from the available capabilities).
That is, open is performed before hw params, so theoretically it would
only be necessary to do it in open, but it is placed in hw params as
well if the input signal has changed between open and hw params (not
likely).
As mentioned before, this driver does not yet handle the cases when
sample rate and other properties is changed in runtime (I don't know if
ALSA is complete in that respect either). Nothing will break though,
but the user will not be notified of the change, and -EIO may be
delivered (changing from SPDIF to ADAT input signal in runtime for
example).
/Anders Torger
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
next prev parent reply other threads:[~2003-01-10 15:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-05 15:46 RME96 driver patch Anders Torger
2003-01-06 17:24 ` Martin Langer
2003-01-06 17:23 ` Jaroslav Kysela
2003-01-06 17:51 ` Anders Torger
2003-01-06 17:52 ` Jaroslav Kysela
2003-01-07 11:32 ` Martin Langer
2003-01-07 14:10 ` Paul Davis
2003-01-06 17:45 ` Anders Torger
2003-01-10 14:53 ` Martin Langer
2003-01-10 15:13 ` Anders Torger [this message]
2003-01-10 15:36 ` Takashi Iwai
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=200301101613.07818.torger@ludd.luth.se \
--to=torger@ludd.luth.se \
--cc=alsa-devel@alsa-project.org \
--cc=martin-langer@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.