[pulseaudio-discuss] [PATCH] switch-on-port-available: check and change default sink or source

2017-04-26 Thread Hui Wang
Suppose your machine has two sound cards as below: Card#0(HDA INTEL HDMI)-> Sink#0(hdmi-stereo)->hdmi-output(priority: 5900) Card#1(HDA INTEL PCH)->Sink#1(analog-stereo)->headphones(priority: 9000) If neither hdmi cable nor headphone plug into the machine, the default sink will randomly be Sink#0

Re: [pulseaudio-discuss] Can pulsaudio client API become a crossplatform standard ?

2017-04-26 Thread Enrico Weigelt, metux IT consult
On 24.04.2017 20:04, Tanu Kaskinen wrote: > "Let PA sit ontop of that", with "that" referring to a bunch of > headers, doesn't make sense to me. I understand your proposal so that > the existing PA library would be one backend for the new API. So the > new API is a layer above the existing PA stuf

[pulseaudio-discuss] [PATCH v4 8/8] Bluetooth: Add optional argument to release callback

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz This adds optional argument which indicates a suspend from IO thread so the callback can choose to close the fd or leave it open. --- src/modules/bluetooth/backend-native.c | 3 ++- src/modules/bluetooth/backend-ofono.c| 12 ++-- src/modules/bl

[pulseaudio-discuss] [PATCH v4 1/8] bluetooth: ofono: Don't attempt to connect if fd is ready

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz If SCO fd is already set don't attempt to connect again. --- src/modules/bluetooth/backend-ofono.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/bluetooth/backend-ofono.c index 755df9e..e18772

[pulseaudio-discuss] [PATCH v4 2/8] bluetooth: ofono: Fix asserting when connecting as AG

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz Check the card Type property instead of assuming ofono would only be used for HF role. --- src/modules/bluetooth/backend-ofono.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/blueto

[pulseaudio-discuss] [PATCH v4 4/8] bluetooth: Don't default to native backend

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz The native backend is limited to HSP only which may not work with devices that can only do HFP so if oFono is enabled it shall be used as default. --- src/modules/bluetooth/module-bluez5-discover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s

[pulseaudio-discuss] [PATCH v4 5/8] bluetooth: Auto recover if profile is 'off'

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz This means something went wrong, which in case of ofono backend it is probably due to the profile not connecting immediately but it can be safely in that case. --- src/modules/bluetooth/module-bluez5-device.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(

[pulseaudio-discuss] [PATCH v4 7/8] bluetooth: ofono: Fix failing to parse valid NewConnection

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz When suspending due to idle timeout the transport will not change its state, also in case the fd is closed due to POLLERR/POLLHUP events the release shall check if the fd is still set otherwise it will fail to be acquired again. --- src/modules/bluetooth/backend-ofon

[pulseaudio-discuss] [PATCH v4 6/8] bluetooth: ofono: Close fd if cannot be accepted

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz Always close fd that cannot be accepted otherwise it will be left open without being attached to any transport. --- src/modules/bluetooth/backend-ofono.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/blueto

[pulseaudio-discuss] [PATCH v4 3/8] bluetooth: ofono: Detect if Connect has been called

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz This detects if profile has already been called and we are waiting the response. --- src/modules/bluetooth/backend-ofono.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/bl

Re: [pulseaudio-discuss] [PATCH] alsa: don't assume that hw:x is an analog output

2017-04-26 Thread Arun Raghavan
On Mon, 24 Apr 2017, at 08:36 PM, Tanu Kaskinen wrote: > Previously, if front:x didn't work, we would try to use hw:x for analog > stereo output. There's no guarantee that hw:x is an analog output, > however. For example, the Intel HDMI LPE driver uses hw:x for HDMI > output, and PulseAudio incorre

[pulseaudio-discuss] [PATCH] switch-on-port-available: check and change default sink or source

2017-04-26 Thread Hui Wang
Suppose your machine has two sound cards as below: Card#0(HDA INTEL HDMI)-> Sink#0(hdmi-stereo)->hdmi-output(priority: 5900) Card#1(HDA INTEL PCH)->Sink#1(analog-stereo)->headphones(priority: 9000) If neither hdmi cable nor headphone plug into the machine, the default sink will randomly be Sink#0

[pulseaudio-discuss] [PATCH v3 4/7] bluetooth: Don't default to native backend

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz The native backend is limited to HSP only which may not work with devices that can only do HFP so if oFono is enabled it shall be used as default. --- src/modules/bluetooth/module-bluez5-discover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s

[pulseaudio-discuss] [PATCH v3 2/7] bluetooth: ofono: Fix asserting when connecting as AG

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz Check the card Type property instead of assuming ofono would only be used for HF role. --- src/modules/bluetooth/backend-ofono.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/blueto

[pulseaudio-discuss] [PATCH v3 6/7] bluetooth: ofono: Close fd if cannot be accepted

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz Always close fd that cannot be accepted otherwise it will be left open without being attached to any transport. --- src/modules/bluetooth/backend-ofono.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/blueto

[pulseaudio-discuss] [PATCH v3 5/7] bluetooth: Auto recover if profile is 'off'

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz This means something went wrong, which in case of ofono backend it is probably due to the profile not connecting immediately but it can be safely in that case. --- src/modules/bluetooth/module-bluez5-device.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(

[pulseaudio-discuss] [PATCH v3 7/7] bluetooth: ofono: Fix failing to parse valid NewConnection

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz When suspending due to idle timeout the transport will not change its state, also in case the fd is closed due to POLLERR/POLLHUP events the release shall check if the fd is still set otherwise it will fail to be acquired again. --- src/modules/bluetooth/backend-ofon

[pulseaudio-discuss] [PATCH v3 1/7] bluetooth: ofono: Don't attempt to connect if fd is ready

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz If SCO fd is already set don't attempt to connect again. --- src/modules/bluetooth/backend-ofono.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/bluetooth/backend-ofono.c index 755df9e..e18772

[pulseaudio-discuss] [PATCH v3 3/7] bluetooth: ofono: Detect if Connect has been called

2017-04-26 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz This detects if profile has already been called and we are waiting the response. --- src/modules/bluetooth/backend-ofono.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/bl