[audio-manager] Doubt Regarding AudioManager Usage

Anju Sebastian anjusebastian08 at gmail.com
Wed May 31 06:20:38 EDT 2017


Thanks again Jens.
But sorry to disturb you again.
I am still facing isues to run audiomanager commands.

I am wiorking on yocto genivi and I built audiomanager with DBUS command
plugin and ALSA routing plugin.
EXTRA_OECMAKE_append = " -DWITH_ROUTING_ADAPTER_ALSA=ON"
-DWITH_COMMAND_INTERFACE_DBUS=ON

EXTRA_OECMAKE_append = " -DWITH_ROUTING_INTERFACE_ASYNC=OFF"
EXTRA_OECMAKE_append = " -DWITH_ROUTING_INTERFACE_CAPI=OFF"
EXTRA_OECMAKE_append = " -DWITH_ROUTING_INTERFACE_DBUS=OFF"
EXTRA_OECMAKE_append = " -DWITH_COMMAND_INTERFACE_CAPI=OFF"

I kept a copy of /usr/etc/audiomanager/ folder on /etc path as well
I have alsa.xml file on /usr/etc/audiomanager/routing/alsa.xml and
/etc/audiomanager/routing/alsa.xml

Other files present:
/usr/lib/audiomanager/command/libPluginCommandInterfaceDbus.so
/usr/lib/audiomanager/control/libPluginControlInterfaceGeneric.so
/usr/lib/audiomanager/routing/libPluginRoutingAdapterALSA.so

/usr/share/audiomanager/audiomanager/CommandInterface.xml

/usr/etc/audiomanager/controller/audiomanagertypes.xsd
/usr/etc/audiomanager/controller/configuration_test.xml
/usr/etc/audiomanager/controller/generic.xml
/usr/etc/audiomanager/controller/configuration_async.xml
/usr/etc/audiomanager/controller/customtypes.xsd
/usr/etc/audiomanager/controller/xsd2header.pl
/usr/etc/audiomanager/routing/alsa.xml

I didnt make any change in cmake file. I kept it as such
I just enabled ALSA routing plugin, DBUS command plugin and disable other
plugins as shown above.

When I try dbus command to get list of sources using the command:
dbus-send --session --print-reply --dest=org.genivi.audiomanager
/org/genivi/audiomanager/commandinterface
org.genivi.audiomanager.commandinterface.GetListMainSources or
dbus-send --session --print-reply --dest=org.genivi.audiomanager
/org/genivi/audiomanager/commandinterface
org.genivi.audiomanager.commandinterface.GetListMainSinks
I get following result:
method return time=1496225698.450197 sender=:1.0 -> destination=:1.3
serial=5 reply_serial=2
   int16 0
   array [
   ]


On dbus-send --session --print-reply --dest=org.genivi.audiomanager
/org/genivi/audiomanager/commandinterface
org.genivi.audiomanager.commandinterface.GetDescription,
I get following error:
Error org.freedesktop.DBus.Error.UnknownMethod: Method "GetDescription"
with signature "" on interface "org.genivi.audiomanager.commandinterface"
doesn't exist

What else I am supposed to do to get the commands working?
How can I get doxygen manual? Building with WITH_DOCUMENTATION=ON ? I was
not able to build it with this param.


Change id used for AM: 8f2387e42641c7c2b967553a4c578f0e87549fb6
Change id used for AudioManagerPlugins : 6e167422e68089fee3098163b63f88
2ce4a50ad3


Thanks and Regards
Anju Sebastian.

On Wed, May 31, 2017 at 12:30 PM, Lorenz, Jens (ADITG/ESB) <
jlorenz at de.adit-jv.com> wrote:

> Hi Anju,
>
>
>
> the position might be correct. Please check the doxygen manual.
>
> There is a CMAKE configuration parameter. If not set, /usr/etc/… is
> correct.
>
>
>
> I also would like to explain a little more about the static/dynamic values:
>
> Dynamic:
>
>   If you do not define any value in the configuration file all IDs will be
> in the dynamic range.
>
>   The ALSA Routing Adapter will register these elements.
>
> Static:
>
>   If you define values, they should be between 1 and 100.
>
>   The ALSA Routing Adapter will *not* register any element.
>
>   They have to be registered by (e.g. Generic) Controller.
>
>
>
>
>
> Best regards
>
> *Jens Lorenz*
> Software Group I (ADITG/SW1)
>
> Tel. +49 5121 49 6927
>
> *From:* Anju Sebastian [mailto:anjusebastian08 at gmail.com]
> *Sent:* Mittwoch, 31. Mai 2017 06:07
> *To:* Lorenz, Jens (ADITG/ESB)
> *Cc:* Krause, Mathias; genivi-audio-manager at lists.genivi.org
>
> *Subject:* Re: [audio-manager] Doubt Regarding AudioManager Usage
>
>
>
> Thank you so much Jens for your reply.
>
>
>
> alsa.xml file was in  /usr/etc/audiomanager/routing/ folder.
>
> I will move it to  /etc/audiomanager/routing/  and try.
>
>
> Thanks and Regards
>
> Anju Sebastian.
>
>
>
> On Tue, May 30, 2017 at 5:33 PM, Lorenz, Jens (ADITG/ESB) <
> jlorenz at de.adit-jv.com> wrote:
>
> Hi Anju,
>
> the Generic Controller as well as the ALSA Routing Adapter are able to
> register resources.
> The depends if the element ids are in the static or dynamic range (static
> range 1-100 configurable by CMAKE).
>
> For testing purpose you should use the ALSA Routing Adapter and you should
> deploy the
> alsa.xml file to /etc/audiomanager/routing/ folder.
>
> Please have a look to doxygen documentation of ALSA Routing Adapter which
> is also open source avialble.
> At least you can test with the ALSA Routing Adapter the command side
> interface.
>
>
> Best regards
>
> Jens Lorenz
> Software Group I (ADITG/SW1)
>
> Tel. +49 5121 49 6927
> -----Original Message-----
> From: genivi-audio-manager [mailto:genivi-audio-manager-
> bounces at lists.genivi.org] On Behalf Of Anju Sebastian
> Sent: Dienstag, 30. Mai 2017 10:10
> To: Krause, Mathias
> Cc: genivi-audio-manager at lists.genivi.org
> Subject: Re: [audio-manager] Doubt Regarding AudioManager Usage
>
> Thanks Mathias for your reply.
>
> PluginRoutingInterfaceALSA also does the source/sink/domain registering
> direct from sourcecode?
>
> Thanks and Regards
> Anju Sebastian.
>
> On Tue, May 30, 2017 at 12:26 PM, Krause, Mathias <
> Mathias_Krause at mentor.com
> > wrote:
>
> > Hello Anju,
> >
> > as Aleks already mentioned, it looks like you did not register any
> > domains/sinks/sources.
> >
> > >> It seems you didn't register any domains, sinks and source. You can
> > >> take a look at the example PluginRoutingInterafceAsync, which
> > >> registers domains, sinks and sources. It might be helpful for you.
> >
> > The RoutingInterface should register its domain/sinks/sources.
> > PluginRoutingInterfaceAsync does this direct from sourcecode. If this
> > does not work, check the console output to see if the plugin is loaded
> > on startup. If you want to parse an xml file, you can do it in your
> > own RoutingPlugin or, if you prefer, in your own Controller Plugin.
> >
> > Regards,
> > Mathias Krause
> >
> >
> > -----Original Message-----
> > From: genivi-audio-manager [mailto:genivi-audio-manager-
> > bounces at lists.genivi.org] On Behalf Of Anju Sebastian
> > Sent: Dienstag, 30. Mai 2017 05:42
> > To: Aleksander.Donchev at partner.bmw.de
> > Cc: genivi-audio-manager at lists.genivi.org
> > Subject: Re: [audio-manager] Doubt Regarding AudioManager Usage
> >
> > Can Someone please help on this?
> > I tried only with async routing mechanism enabled(disabled alsa). In
> > that case also, I was getting
> >
> > method return time=1495774443.711317 sender=:1.0 -> destination=:1.4
> > serial=6 reply_serial=2
> >    int16 0
> >    array [
> >    ]
> >
> > On GetListMainSorces DBUS command
> >
> > Thanks and Regards
> > Anju Sebastian.
> >
> > On Mon, May 29, 2017 at 10:42 PM, Anju Sebastian <
> > anjusebastian08 at gmail.com>
> > wrote:
> >
> > > Hi Aleksandar,
> > >
> > > Thank you so much for your prompt reply.
> > >
> > > Sorry for asking doubts again. I have very limited knowledge in
> > > audio and audiomanager.
> > > I will enable only one inter process communication mechanism, either
> > > DBUS or CAPI during cmake.
> > >
> > > Same is the case for routing mechanism? I should enable only
> > > one?(either async or ALSA)?
> > > Should I do anything to register domain, source and sinks? If yes,
> > > what is that? Or will it take automatically from any xml file?
> > > Or should I add any conf file or xml file to register them?
> > >
> > > I wanted to run audiomanager commands with alsa plugin.
> > >
> > > Can you please help me on this?
> > >
> > >
> > > Thanks and Regards
> > > Anju Sebastian.
> > >
> > > On Mon, May 29, 2017 at 6:18 PM, <Aleksander.Donchev at partner.bmw.de>
> > > wrote:
> > >
> > >> Hi Anju,
> > >>
> > >> you can provide in addition other routing and command plugin
> > >> directories to the AudioManager with the  command line options -L
> > >> and
> > -R .
> > >>
> > >> Here is a short overview:
> > >>
> > >> -L additional path for command plugins -R additional path for
> > >> routing plugins -l command plugins path -r routing plugins path -c
> > >> control plugin path, e.g. AudioManager -c
> > >> /path/controller/libController.so
> > >>
> > >> With the cmake options CAPI or DBUS you can choose the interprocess
> > >> communication mechanism and therefor only one of them should be "ON".
> > >>
> > >> -DWITH_DBUS_WRAPPER=ON
> > >> ....
> > >> -DWITH_COMMAND_INTERFACE_CAPI=OFF -DWITH_COMMAND_INTERFACE_DBUS=ON
> > >> ....
> > >> -DWITH_ROUTING_INTERFACE_CAPI= OFF -DWITH_ROUTING_INTERFACE_DBUS=ON
> > >>
> > >> It seems you didn't register any domains, sinks and source. You can
> > >> take a look at the example PluginRoutingInterafceAsync, which
> > >> registers domains, sinks and sources. It might be helpful for you.
> > >>
> > >> Regards,
> > >> Aleksandar Donchev
> > >>
> > >>
> > >> -----Ursprüngliche Nachricht-----
> > >> Von: genivi-audio-manager [mailto:genivi-audio-manager-b
> > >> ounces at lists.genivi.org] Im Auftrag von Anju Sebastian
> > >> Gesendet: Montag, 29. Mai 2017 06:41
> > >> An: genivi-audio-manager at lists.genivi.org
> > >> Betreff: [audio-manager] Doubt Regarding AudioManager Usage
> > >>
> > >> Hi,
> > >>
> > >> My name is Anju Sebastian. I am working as software Engineer in
> NVIDIA.
> > >> I have some doubts regarding Audio Manager and plugins.
> > >>
> > >> I am using genivi-12 and I compiled audiomanager and
> > >> audiomanagerplugins
> > >> (7.4) using bitbake command.
> > >> I flashed my board with the file system.
> > >> I compiled AM with the following options:
> > >>
> > >> EXTRA_OECMAKE = " -DWITH_DBUS_WRAPPER=ON -DWITH_TESTS=OFF"
> > >> EXTRA_OECMAKE_append = " -DWITH_TESTS=ON -DUSE_BUILD_LIBS=OFF \
> > >>     -DTEST_EXECUTABLE_INSTALL_PATH=/opt/tests/${PN}/ \
> > >>     -Dgmock_build_tests=ON -Dgtest_build_samples=ON
> > >> -Dgtest_build_tests=ON \
> > >>     -DCMAKE_SKIP_RPATH=ON \
> > >>
> > >> And audiomanager plugins with the following options:
> > >> EXTRA_OECMAKE = " \
> > >>     -DWITH_COMMAND_INTERFACE_CAPI=ON -DWITH_COMMAND_INTERFACE_DBUS=ON
> \
> > >>     -DWITH_ROUTING_INTERFACE_CAPI=ON -DWITH_ROUTING_INTERFACE_DBUS=ON
> \
> > >>     -DWITH_ROUTING_INTERFACE_ASYNC=ON \
> > >>     -DWITH_GENERIC_CONTROLLER=ON \
> > >> EXTRA_OECMAKE_append = " -DWITH_TEST_CONTROLLER=ON -DWITH_TESTS=ON
> > >> -DWITH_ROUTING_ADAPTER_ALSA=ON"
> > >>
> > >> Can you please tell me how to select a particular command plugin
> > >> and routing plugin out of the available plugins?
> > >> And when I checked "GetListMainSources, GetListMainSinks,
> > >> GetListMainConnections" commands, I didn't get any proper output.
> > >> Result was
> > >>
> > >> method return time=1495774443.711317 sender=:1.0 ->
> > >> destination=:1.4
> > >> serial=6 reply_serial=2
> > >>    int16 0
> > >>    array [
> > >>    ]
> > >>
> > >> Do we need to set anything to register domains, sources and sinks?
> > >> Is there any particular config file or something to register
> > >> sources and sinks?
> > >>
> > >> I am new to AudioManager and I don't have much knowledge about it.
> > >> Can you please help me by basic things to setup and run AM commands
> > >> with ALSA plugins. I am totally stuck.
> > >>
> > >> Some results of commands:
> > >> Audiomanger -i
> > >>  AudioManagerDaemon Version:             7.5.51
> > >>         ControllerPlugin:
> > >> /usr/lib/audiomanager/control
> > >>         Directories of CommandPlugins:
> > >>
> > >> /usr/lib/audiomanager/command
> > >>         Directories of RoutingPlugins:
> > >>
> > >> /usr/lib/audiomanager/routing
> > >>
> > >>
> > >> /usr/lib/audiomanager/control contents:
> > >> libPluginControlInterfaceGeneric.so
> > >>
> > >> /usr/lib/audiomanager/command contenst:
> > >> libPluginCommandInterfaceCAPI.so
> > >> libPluginCommandInterfaceDbus.so
> > >>
> > >> /usr/lib/audiomanager/routing contens:
> > >>
> > >> libPluginRoutingAdapterALSA.so
> > >> libPluginRoutingInterfaceCAPI.so
> > >> libPluginRoutingInterfaceAsync.so
> > >> libPluginRoutingInterfaceDbus.so
> > >>
> > >> Change id used for AM: 8f2387e42641c7c2b967553a4c578f0e87549fb6
> > >> Change id used for AudioManagerPlugins :
> > >> 6e167422e68089fee3098163b63f88
> > >> 2ce4a50ad3
> > >>
> > >> Thanks and Regards
> > >> Anju Sebastian.
> > >> _______________________________________________
> > >> genivi-audio-manager mailing list
> > >> genivi-audio-manager at lists.genivi.org
> > >> http://lists.genivi.org/mailman/listinfo/genivi-audio-manager
> > >>
> > >
> > >
> > _______________________________________________
> > genivi-audio-manager mailing list
> > genivi-audio-manager at lists.genivi.org
> > http://lists.genivi.org/mailman/listinfo/genivi-audio-manager
> >
> _______________________________________________
> genivi-audio-manager mailing list
> genivi-audio-manager at lists.genivi.org
> http://lists.genivi.org/mailman/listinfo/genivi-audio-manager
>
>
>



More information about the genivi-audio-manager mailing list