summaryrefslogtreecommitdiffstats
path: root/dummy/dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'dummy/dummy.c')
-rw-r--r--dummy/dummy.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/dummy/dummy.c b/dummy/dummy.c
index 7c85531..872ade9 100644
--- a/dummy/dummy.c
+++ b/dummy/dummy.c
@@ -240,17 +240,14 @@ static struct snd_pcm_ops dummyap_pcm_ops = {
* Dummy Audio Path AVIRT registration
******************************************************************************/
static int dummy_configure(struct snd_card *card,
- struct config_group *snd_avirt_stream_group,
- unsigned int stream_count)
+ struct snd_avirt_stream_array *stream_array)
{
// Do something with streams
+ int idx = 0;
+ struct snd_avirt_stream *stream;
- struct list_head *entry;
- list_for_each (entry, &snd_avirt_stream_group->cg_children) {
- struct config_item *item =
- container_of(entry, struct config_item, ci_entry);
- struct snd_avirt_stream *stream =
- snd_avirt_stream_from_config_item(item);
+ for (idx = 0; idx < stream_array->count; idx++) {
+ stream = stream_array->streams[idx];
AP_INFOK("stream name:%s device:%d channels:%d", stream->name,
stream->device, stream->channels);
}