Re: [pulseaudio-discuss] Couldn't get stream from bluetooth headset

2017-10-15 Thread Shinnosuke Suzuki
Dear tanu, >There can be only one error at a time, but here you list two errors. In >what situations these errors happen? I got two errors at the same point in the stream callback with a state PA_STREAM_FAILED. I got the errors by two ways, one is to call only pa_context_errno, the other is to ca

Re: [pulseaudio-discuss] Couldn't get stream from bluetooth headset

2017-10-15 Thread Tanu Kaskinen
On Sun, 2017-10-15 at 17:02 +0900, Shinnosuke Suzuki wrote: > Dear tanu, > > > There can be only one error at a time, but here you list two errors. In > > what situations these errors happen? > > I got two errors at the same point in the stream callback with a state > PA_STREAM_FAILED. > I got th

Re: [pulseaudio-discuss] internal speaker silent in Asus eee netbook (patch)

2017-10-15 Thread Tanu Kaskinen
On Sat, 2017-10-14 at 18:12 +0200, Guenter Milde wrote: > Dear Tanu, > > On Thu Oct 12 Tanu Kaskinen wrote: > > On Mon, 2017-10-09 at 18:45 +0200, Guenter Milde wrote: > > > On Sat Aug 5 Tanu Kaskinen tanuk at iki.fi wrote: > > > What is the difference between "switch = off" and "switch = mute"? >

[pulseaudio-discuss] [PATCH] bluetooth: set better priorities for profiles

2017-10-15 Thread Tanu Kaskinen
Since HSP had higher priority than A2DP, the default profile when connecting a new headset was HSP. To me it makes more sense to default to high-quality output. We already have some automatic policies to switch to HSP when it's needed. I also made the A2DP source and HSP/HFP gateway profiles have

[pulseaudio-discuss] [PATCH] volume: improve documentation

2017-10-15 Thread Tanu Kaskinen
Changes: - Mention that source outputs have volume too. - Don't claim that most distributions have flat volumes enabled. - Volumes use a cubic scale, not logarithmic. - Reword the warning about using the conversion functions on hardware volumes. The old wording gave the incorrect impression

Re: [pulseaudio-discuss] [PATCH] sink, source: Rework reconfiguration logic to apply to more than rate

2017-10-15 Thread Tanu Kaskinen
On Sun, 2017-09-03 at 16:58 +0530, Arun Raghavan wrote: > @@ -1447,52 +1449,57 @@ int pa_sink_update_rate(pa_sink *s, uint32_t rate, > bool passthrough) { > } > } > > -if (PA_UNLIKELY(!pa_sample_rate_valid(rate))) > +if (PA_UNLIKELY(!pa_sample_spec_valid(spec))) >

Re: [pulseaudio-discuss] [PATCH] bluetooth: set better priorities for profiles

2017-10-15 Thread Georg Chini
On 15.10.2017 12:29, Tanu Kaskinen wrote: Since HSP had higher priority than A2DP, the default profile when connecting a new headset was HSP. To me it makes more sense to default to high-quality output. We already have some automatic policies to switch to HSP when it's needed. I also made the A2

Re: [pulseaudio-discuss] [PATCH] volume: improve documentation

2017-10-15 Thread Georg Chini
On 15.10.2017 15:56, Tanu Kaskinen wrote: Changes: - Mention that source outputs have volume too. - Don't claim that most distributions have flat volumes enabled. - Volumes use a cubic scale, not logarithmic. - Reword the warning about using the conversion functions on hardware volume