From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: alsa-devel@alsa-project.org
Subject: Re: [PATCH 1/2] ALSA: update sync header when streams are linked/unlinked
Date: Wed, 23 May 2012 13:57:34 -0500 [thread overview]
Message-ID: <4FBD331E.7010802@linux.intel.com> (raw)
In-Reply-To: <s5h62bn93sc.wl%tiwai@suse.de>
Thanks for reviewing Takashi. Comments below.
>
>> and provide more information such as
>> number of devices and indices of capture/playback devices
>> linked to
> This is a completely different issue, so please don't mix up in a
> single patch.
No problem. I did this on purpose to see the reaction and understand
what the expectation was...I don't really care about the contents of
this structure as long as it's consistent.
> ... this isn's safe. There are more than 32 substreams. And there are
> multiple streams with the same substream index.
The only HW I know of that supports linked streams is HDAudio, and it
uses a 32-bit mask for SSYNC...
But I guess you're right this doesn't scale.
> Also, the point of the sync id is that it's shared with all linked
> streams. Your patch breaks it. It updates only the last added sync
> id.
>
> The fact that the driver currently sets only the card number is
> actually problematic. It's not unique enough. This should be fixed.
> But, exposing the substream bitmask doesn't help much because it can't
> be fully implemented in the sync id size. If you need to know which
> streams are linked, loop over all streams and check the sync id.
If I understand you well, the sync id should be a unique identifier
shared by all linked streams in the same group. Since devices can be
linked/unlinked, this id cannot use anything related to device or
subdevice number. Maybe a pid-like value incremented when a group is
created would do?
Thanks,
-Pierre
next prev parent reply other threads:[~2012-05-23 18:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 19:54 [PATCH 1/2] ALSA: update sync header when streams are linked/unlinked Pierre-Louis Bossart
2012-05-22 19:54 ` [PATCH 2/2] ALSA: core: group read of pointer, tstamp and jiffies Pierre-Louis Bossart
2012-05-22 23:52 ` Takashi Iwai
2012-05-22 23:47 ` [PATCH 1/2] ALSA: update sync header when streams are linked/unlinked Takashi Iwai
2012-05-23 18:57 ` Pierre-Louis Bossart [this message]
2012-05-23 19:32 ` Clemens Ladisch
2012-05-23 22:01 ` Pierre-Louis Bossart
2012-05-25 5:54 ` 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=4FBD331E.7010802@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
/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.