summaryrefslogtreecommitdiff
path: root/src/pulsecore/device-port.h
AgeCommit message (Collapse)AuthorFilesLines
2016-06-22device-port: Add mechanism to free implementation dataArun Raghavan1-0/+3
This will be needed if the implementation data stores pointers to additional data that needs to be freed as well.
2015-12-14typedefs.h: Move some typedefs to a separate fileDavid Henningsson1-2/+1
The relationship between sinks, sources, cards, profiles, and ports is becoming ever more intertwined, to the point that if you try to include one file from the other, you're likely to end up with some weird error somewhere else. Work around this by creating a new typedefs.h, which does not depend on anything else, and just creates a few typedefs. (Can be expanded with more typedefs in the future if the need arises.) Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-11-22device-port: Add preferred_profile field to pa_device_portDavid Henningsson1-0/+2
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-01-14update FSF addresses to FSF web pageOndrej Holecek1-3/+1
FSF addresses used in PA sources are no longer valid and rpmlint generates numerous warnings during packaging because of this. This patch changes all FSF addresses to FSF web page according to the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html Done automatically by sed-ing through sources.
2014-03-28sink/source: Initialize port before fixate hook (fixes volume/mute not saved)David Henningsson1-0/+2
In case a port has not yet been saved, which is e g often the case if a sink/source has only one port, reading volume/mute will be done without port, whereas writing volume/mute will be done with port. Work around this by setting a default port before the fixate hook, so module-device-restore can read volume/mute for the correct port. BugLink: https://bugs.launchpad.net/bugs/1289515 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-06-04device-port: Introduce pa_device_port_new_datapoljar (Damir Jelić)1-1/+15
Port creation is now slightly different. It is now similar to how other objects are created (e.g. sinks/sources/cards). This should become more useful in the future when we move more stuff to the ports. Functionally nothing has changed.
2013-06-04device-port: Make it impossible to have dual-direction portsTanu Kaskinen1-3/+2
2013-02-18core: Internally deprecate pa_port_available_t to use pa_available_tMikel Astiz1-2/+2
Generalize the availability flag in order to be used beyond the scope of ports. However, pa_port_availability_t is left unchanged to avoid modifying the protocol and the client API. This should be replaced by pa_available_t after a validation phase of this new generic enum type.
2013-02-16device-port: Remove pa_device_port_hashmap_free()Tanu Kaskinen1-2/+0
2013-01-20device-port: Add a card pointer to the ports.poljar (Damir Jelić)1-0/+2
This way we can directly access the card that owns the port instead of iterating over all cards.
2012-06-28device-port: Change the latency offset type to a signed int.poljar (Damir Jelić)1-2/+2
The latency offset type should be signed (int64_t) so we can also add a negative latency offset. This also includes changing the type of the sink/source offsets and updating pacmd so it handles negative numbers.
2012-06-25device-port: Add a latency variable to the port structpoljar1-0/+3
A latency offset variable was added to the port struct and a function to set the latency offset. The latency offset does nothing for now, but it will be later added to the sink/source latency.
2012-06-08device-port: Remove an out-of-date comment.Tanu Kaskinen1-1/+1
2011-12-02device-port: Add a property list to ports.David Henningsson1-0/+1
They're not used for anything yet, but hopefully soon they'll be. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2011-11-27device-port: Remove redundant include after the better circular dep fix.Colin Guthrie1-2/+0
2011-11-27device-port: Fix the circular dependency problem more cleanly.Tanu Kaskinen1-8/+4
Declaring structs before including anything ensures that the structs are available for everybody in case of circular includes.
2011-11-27pulsecore: Fix issue with circuilar definitions.Colin Guthrie1-3/+3
Without this fix, errors about previous definitions are generated in numerous locations. Example of error: CC libpulsecore_1.98_la-auth-cookie.lo In file included from ../../src/pulsecore/source.h:46:0, from ../../src/pulsecore/sink.h:40, from ../../src/pulsecore/core.h:50, from ../../src/pulsecore/shared.h:25, from ../../src/pulsecore/auth-cookie.c:33: ../../src/pulsecore/device-port.h:40:24: error: redefinition of typedef 'pa_core' ../../src/pulsecore/core.h:29:24: note: previous declaration of 'pa_core' was here make[3]: *** [libpulsecore_1.98_la-auth-cookie.lo] Error 1 Overall it would be nicer if we could avoid this kind of fix, but it would require further reorganisation that I'm not prepared to undertake right now.
2011-11-26Notify port available status changes, and update protocol versionDavid Henningsson1-1/+11
The recommended way of setting available status is to call pa_device_port_set_available, which will send a subscription event to the relevant card. It will also fire a hook. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2011-11-26Cards now has ports directly, and device port has list of profilesDavid Henningsson1-0/+4
This forms the base for being able to expose all ports of all profiles (even inactive ones) to clients. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2011-11-26Turn device ports into reference counted objectsDavid Henningsson1-0/+61
Since both cards and sinks can hold references to a port, it makes sense to reference count them. Although no current implementation actually has sinks with ports but without a card, it felt wrong to make it harder to make such an implementation in the future. Signed-off-by: David Henningsson <david.henningsson@canonical.com>