From: Takashi Iwai <tiwai@suse.de>
To: Hanbiao Wang <hbwang@lecs.cs.ucla.edu>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Stream Synchronization of VXPocket 440 card
Date: Fri, 08 Oct 2004 12:05:35 +0200 [thread overview]
Message-ID: <s5hzn2x5xu8.wl@alsa2.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0410071320100.16810@concorde.cs.ucla.edu>
At Thu, 7 Oct 2004 13:44:04 -0700 (PDT),
Hanbiao Wang wrote:
>
> Hi all,
> VXPocket 440 card has two stereo input streams. Can these two streams be
> synchronized by calling snd_pcm_link()?
> According to the ALSA project webpage, streams can synched only if the
> hardware supports this feature. The ALSA project webpage, the
> snd_pcm_info_get_sync() function returns synchronization ID -
> snd_pcm_sync_id_t, which is equal for hardware synchronized streams.
> I examined the sync IDs of these two streams of the VXPocket 440 card as
> follows:
> 1. call snd_pcm_open() on hw:0,0 in order to get pcm handle h0
> 2. call snd_pcm_info() on pcm handle h0 to get pcm info f0
> 3. call snd_pcm_info_get_sync() on f0 to get sync ID0 of hw:0,0
>
> 4. call snd_pcm_open() on hw:0,1 in order to get pcm handle h1
> 5. call snd_pcm_info() on pcm handle h1 to get pcm info f1
> 3. call snd_pcm_info_get_sync() on f1 to get sync ID1 of hw:0,1
>
> snd_pcm_sync_id_t has three data fields:
> unsigned char id [16]
> unsigned short id16 [8]
> unsigned int id32 [4]
>
> ID0.id is "-1073743584" while ID1.id is "-1073743600". These sync IDs
> are apparently not identical. So these two streams look like not synched
> by the hardware. However, the manufacture of VXPocket 440 cards told me
> that these two input streams share the same internal hardware clock. So
> there is no obvious reason for the hardware not to synchronizes these two
> input streams. The is a contradiction to me. Is there anything wrong in my
> examination code? Please help me on this issue if you have any experience
> related to my question. Thanks a lot in advance.
You're not wrong. The h/w sync feature is not implemented (yet) on
ALSA vx drivers :) You can still use software sync with
snd_pcm_link(), though.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
next prev parent reply other threads:[~2004-10-08 10:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-07 20:44 Stream Synchronization of VXPocket 440 card Hanbiao Wang
2004-10-08 10:05 ` Takashi Iwai [this message]
2004-10-08 17:00 ` Hanbiao Wang
2004-10-11 10:38 ` Takashi Iwai
2004-10-11 16:52 ` Hanbiao Wang
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=s5hzn2x5xu8.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=hbwang@lecs.cs.ucla.edu \
/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.