diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2019-03-27 17:47:26 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2019-03-27 17:47:48 +1100 |
commit | 382476f00747316ee01dcc410a31cc27830c18ca (patch) | |
tree | 81ffeaf255f8bdf41ee60de8a3503247d1123de6 /sysfs.c | |
parent | 5bf4dc0f5f50bb5adafb2a43e19007619d195748 (diff) |
Rework routing system
- Add 'route' to snd_avirt_stream, remove from audio path
- Add route checking - ensure that source ap and ink ap have
compatible hw params
- Add private data support for both source and sink Audio
Paths, to ensure that the PCM can hold multiple private data(s).
- Add ability to use copy_kernel and exttriggers from AVIRT instead of from Audio Paths
- Reintroduce pcm_trigger and pcm_prepare, so that
they may be called appropriately from AVIRT, rather
than child Audio Paths.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'sysfs.c')
-rw-r--r-- | sysfs.c | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -115,42 +115,14 @@ static ssize_t version_show(struct snd_avirt_audiopath_obj *audiopath_obj, audiopath->version[1], audiopath->version[2]); } -static ssize_t route_from_ap_show(struct snd_avirt_audiopath_obj *audiopath_obj, - struct snd_avirt_audiopath_attribute *attr, - char *buf) -{ - struct snd_avirt_audiopath *audiopath = audiopath_obj->path; - - if (audiopath->route_from_ap) - return sprintf(buf, "%s\n", audiopath->route_from_ap->uid); - - return 0; -} - -static ssize_t route_to_ap_show(struct snd_avirt_audiopath_obj *audiopath_obj, - struct snd_avirt_audiopath_attribute *attr, - char *buf) -{ - struct snd_avirt_audiopath *audiopath = audiopath_obj->path; - - if (audiopath->route_to_ap) - return sprintf(buf, "%s\n", audiopath->route_to_ap->uid); - - return 0; -} - static struct snd_avirt_audiopath_attribute snd_avirt_audiopath_attrs[] = { __ATTR_RO(name), __ATTR_RO(version), - __ATTR_RO(route_from_ap), - __ATTR_RO(route_to_ap), }; static struct attribute *snd_avirt_audiopath_def_attrs[] = { &snd_avirt_audiopath_attrs[0].attr, &snd_avirt_audiopath_attrs[1].attr, - &snd_avirt_audiopath_attrs[2].attr, - &snd_avirt_audiopath_attrs[3].attr, NULL, }; |