Ticket #339 (closed feature: worksforme)

Opened 9 years ago

Last modified 9 years ago

ffado command line

Reported by: ilia_2s Assigned to: arnonym
Priority: minor Milestone:
Component: ffado-mixer Version: FFADO 2.0.1
Keywords: ffado-mixer, cli Cc:
The device the bug applies to:


Is it possible to setup samplerate (like in ffado-mixer) through command line?

Change History

07/16/11 05:18:57 changed by ilia_2s

  • type changed from bug to feature.

07/16/11 07:32:36 changed by arnonym

  • status changed from new to closed.
  • resolution set to worksforme.

Hi, there are two ways:

  1. Use ffado-test
  2. Start ffado-dbus-mixer and use one of the various commandline-dbus-tools (I recommend qdbus).

The first can do the more generic things, the second allows you to modify anything you can do with the graphical ffado-mixer but requires more diving into the dbus-tree of apps and objects and functions.

Hope that helps,


PS: I will close this as "works for me" as the solution is already there.

01/09/12 11:31:31 changed by ilia_2s

Thanks a lot!

qdbus is good solution for me!

I wrote a small bash script, like:

# Run ffado dbus interactive if not runnig
 if [ ! "$(pidof ffado-dbus-server)"  ]
    ffado-dbus-server &
    sleep 3

#set samplerate ro 192k
rate=`qdbus org.ffado.Control /org/ffado/Control/DeviceManager/001b3a00010001f8/Generic/SamplerateSelect org.ffado.Control.Element.Enum.select "5"`

# set external s/pdif clock
qdbus org.ffado.Control /org/ffado/Control/DeviceManager/001b3a00010001f8/Generic/ClockSelect org.ffado.Control.Element.AttributeEnum.select "2"


and add it's to autostart, It's work perfectly!