debian/0000755000000000000000000000000012235462740007173 5ustar debian/menu0000644000000000000000000000014612235460223010055 0ustar ?package(intone):needs="X11" section="Applications/Sound"\ title="intone" command="/usr/bin/intone" debian/rules0000755000000000000000000000022712235460223010246 0ustar #!/usr/bin/make -f export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed %: dh $@ --with autoreconf override_dh_autoreconf: dh_autoreconf --as-needed debian/patches/0000755000000000000000000000000012235460223010614 5ustar debian/patches/use-dbus-to-set-scenario.patch0000644000000000000000000000324312235460223016400 0ustar Description: Use D-Bus methods for scenario setting alsactl needs to be run as root while every client can ask the framework to set the scenario. . Furthermore different distributions use different paths to store their state files in, so we can also abstract from it by using D-Bus Author: David Kalnischkies Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605888 Last-Update: 2010-12-15 --- a/src/dbus-stuff.c +++ b/src/dbus-stuff.c @@ -149,3 +149,19 @@ e_dbus_message_send(conn, msg, dbus_reply_cb, -1, NULL); dbus_message_unref(msg); } + +void set_audio_scenario(char const * const scenario) +{ + DBusMessage *msg; + msg = dbus_message_new_method_call( + "org.freesmartphone.odeviced", + "/org/freesmartphone/Device/Audio", + "org.freesmartphone.Device.Audio", + "SetScenario" + ); + + dbus_message_append_args (msg, DBUS_TYPE_STRING, &scenario, DBUS_TYPE_INVALID); + + e_dbus_message_send(conn, msg, dbus_reply_cb, -1, NULL); + dbus_message_unref(msg); +} --- a/src/dbus-stuff.h +++ b/src/dbus-stuff.h @@ -29,6 +29,7 @@ void dbus_reply_cb(void *data, DBusMessage *replymsg, DBusError *error); void bluetooth_on(void); void bluetooth_off(void); +void set_audio_scenario(char const * const scenario); E_DBus_Connection *conn; extern void play_button_clicked(void *data, Evas_Object *obj, void *event_info); --- a/src/main.c +++ b/src/main.c @@ -66,7 +66,8 @@ if (bt)bluetooth_off(); release_cpu (); //restore alsa state - ret = system("alsactl -f /usr/share/shr/scenarii/stereoout.state restore"); + set_audio_scenario("headset"); // we have no way to force reload of a state + set_audio_scenario("stereoout"); elm_exit(); } debian/patches/series0000644000000000000000000000003712235460223012031 0ustar use-dbus-to-set-scenario.patch debian/control0000644000000000000000000000233312235460223010571 0ustar Source: intone Section: sound Priority: optional Maintainer: Debian freesmartphone.org Team Uploaders: Sebastian Reichel , Timo Jyrinki Build-Depends: debhelper (>= 9~), dh-autoreconf, libelementary-dev (>= 1.0.0), libdbus-1-dev, libsqlite3-dev, libedbus-dev, libvorbis-dev, libid3-3.8.3-dev Standards-Version: 3.9.5 Homepage: http://intone.googlecode.com Vcs-Git: git://anonscm.debian.org/pkg-fso/intone.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-fso/intone.git;a=summary Package: intone Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, mplayer Recommends: libevas1-engines-x Suggests: fso-frameworkd, bluez-alsa Description: Elementary based mplayer frontend for audio files Intone is an elementary based front end for mplayer written in C. . It has been written for Openmoko Freerunner, but will run on other systems, too. Apart from common things supported by most audio players intone supports A2DP headsets (audio via bluetooth) and interacts with FSO for call detection (pause music on call). debian/changelog0000644000000000000000000000530312235460223011040 0ustar intone (0.77+git20120308-1) unstable; urgency=low * new upstream snapshot * use dh-autoreconf to generate configure file * update debian/watch * update debian/copyright * use compat level 9 * use canonical Vcs URIs * update debian standards version to 3.9.5 * build with --as-needed -- Sebastian Reichel Sun, 03 Nov 2013 14:21:55 +0100 intone (0.77-2) unstable; urgency=low * Apply use-dbus-to-set-scenario.patch from David Kalnischkies (Closes: #605888) * Update Format of copyright to current DEP5 revision * Switch from CDBS to debhelper -- Sebastian Reichel Thu, 15 Dec 2011 16:36:52 +0100 intone (0.77-1) unstable; urgency=low * New upstream release (Closes: #615734) * Update my mail address -- Sebastian Reichel Fri, 24 Jun 2011 13:18:57 +0200 intone (0.66+svn20100620-3) unstable; urgency=low * Add patch to allow building against the new eina release -- Sebastian Reichel Mon, 30 Aug 2010 22:39:55 +0200 intone (0.66+svn20100620-2) unstable; urgency=low * Recommend libevas-svn-06-engines-x, it's needed in almost all cases -- Sebastian Reichel Wed, 28 Jul 2010 11:59:33 +0200 intone (0.66+svn20100620-1) unstable; urgency=low * New upstream version - fix symlink vulnerability - genlist fixes * Fix file permissions * CDBS takes care of generating configure stuff * Update Debian Standards Version to 3.9.1.0 * Switch to DebSrc 3.0 (quilt) * Update copyright file to DEP-5 style -- Sebastian Reichel Mon, 26 Jul 2010 16:39:38 +0200 intone (0.66+svn20091213-1) unstable; urgency=low [ Timo Jyrinki ] * New upstream version - Fixes for crashes - Added artwork and song list ordering support - Mostly clean now, removing manual get-orig-source.sh cleanup [ Sebastian Reichel ] * fix-bluetooth-buttons.patch: drop, implemented upstream * Allow DM upload -- Timo Jyrinki Tue, 12 Jan 2010 17:44:44 +0200 intone (0.66+svn20090913-3) unstable; urgency=low * Prepare for inclusion into Debian main - Move README.source to get-orig-source target in rules file - Create a new README.source - Use "Freesmartphone.org Team" as Maintainer - Suggest installing fso-framework and bluez-alsa -- Sebastian Reichel Wed, 23 Sep 2009 00:23:00 +0200 intone (0.66+svn20090913-2) unstable; urgency=low * Add patch for correct bluetooth keynames -- Sebastian Reichel Wed, 16 Sep 2009 18:41:00 +0200 intone (0.66+svn20090913-1) unstable; urgency=low * Initial release -- Sebastian Reichel Sun, 13 Sep 2009 02:40:00 +0200 debian/watch0000644000000000000000000000020512235460223010213 0ustar version=3 http://code.google.com/p/intone/downloads/list?can=1 \ .*/intone-(\d[\d\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))|zip) debian/copyright0000644000000000000000000000216712235460223011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://intone.googlecode.com Files: * Copyright: 2009-2010, Chaitanya Chandel License: GPL-3+ Files: debian/* Copyright: 2009-2013, Sebastian Reichel License: GPL-3+ License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. debian/compat0000644000000000000000000000000212235460223010363 0ustar 9 debian/source/0000755000000000000000000000000012235460223010465 5ustar debian/source/format0000644000000000000000000000001412235460223011673 0ustar 3.0 (quilt) debian/README.debian0000644000000000000000000000053712235460223011273 0ustar If you want intone to load the needed kernel modules you need to start it as root. But you can just load the needed modules before starting intone, too: * uinput Needed for Bluetooth Headset Buttons. * snd-pcm-oss Don't block opening busy PCM devices. -- Sebastian Reichel Wed, 23 Sep 2009 00:23:00