public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
@ 2008-12-21 11:38 Jelle de Jong
  2008-12-29 10:18 ` Jelle de Jong
  0 siblings, 1 reply; 10+ messages in thread
From: Jelle de Jong @ 2008-12-21 11:38 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

Hello everybody,

I have been periodically trying to get multiple audio sources to play
together (dmixing) to a hifi bluetooth speaker system or hifi bluetooth
headset.

I am using only alsa and no pulseaudio, esd, jack, mas of something else
just alsa with asoundrc configuration files and no graphical environment.

Can somebody show me an example asoundrc config file to make it possible
to use software audio mixing with my bluetooth devices. If this is
currently not possible, please tell why and what we can do about it. I
am willing to donate some payal money to the person providing me with a
working asoundrc configuration file that allows me to play multiple
audio sources at the same time.

Thanks in advance,

Jelle

[-- Attachment #2: .asoundrc --]
[-- Type: text/plain, Size: 527 bytes --]

pcm.headset {
    type bluetooth
    #~ device 00:0D:18:A0:35:70
    #~ device 00:53:53:FB:7E:9C # Nokia BH-801
    device 00:0C:55:D1:C9:78 # Motorola S805
    #~ device 00:0D:FD:18:6E:3C # Motorola S9
    #~ device 20:07:09:15:A9:5A # Samsung WEP210
    profile hifi
    #~ profile voice
    #~ profile auto
    mode stereo
    #~ mode joint
}
pcm.softvol {
    type softvol
    slave.pcm headset
    control.name Headset
    control.card 0
}
pcm.!default {
    #~ type hw
    #~ card 0
    type plug
    slave.pcm softvol
}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
  2008-12-21 11:38 can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset Jelle de Jong
@ 2008-12-29 10:18 ` Jelle de Jong
  2009-01-06 10:07   ` Jelle de Jong
  0 siblings, 1 reply; 10+ messages in thread
From: Jelle de Jong @ 2008-12-29 10:18 UTC (permalink / raw)
  To: linux-bluetooth

> Hello everybody,
> 
> I have been periodically trying to get multiple audio sources to play
> together (dmixing) to a hifi bluetooth speaker system or hifi bluetooth
> headset.
> 
> I am using only alsa and no pulseaudio, esd, jack, mas of something else
> just alsa with asoundrc configuration files and no graphical environment.
> 
> Can somebody show me an example asoundrc config file to make it possible
> to use software audio mixing with my bluetooth devices. If this is
> currently not possible, please tell why and what we can do about it. I
> am willing to donate some payal money to the person providing me with a
> working asoundrc configuration file that allows me to play multiple
> audio sources at the same time.
> 
> Thanks in advance,
> 
> Jelle
> 

Bumping up this mail, I would really like to see a solution for my
problem or receive information why the problem is not possible not solvable?

Thanks in advance for any help,

Best regards,

Jelle

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
  2008-12-29 10:18 ` Jelle de Jong
@ 2009-01-06 10:07   ` Jelle de Jong
       [not found]     ` <664d43d60901061352y72c39fdctdeae5d7242ce559d@mail.gmail.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Jelle de Jong @ 2009-01-06 10:07 UTC (permalink / raw)
  To: linux-bluetooth

Jelle de Jong wrote:
>> Hello everybody,
>>
>> I have been periodically trying to get multiple audio sources to play
>> together (dmixing) to a hifi bluetooth speaker system or hifi bluetooth
>> headset.
>>
>> I am using only alsa and no pulseaudio, esd, jack, mas of something else
>> just alsa with asoundrc configuration files and no graphical environment.
>>
>> Can somebody show me an example asoundrc config file to make it possible
>> to use software audio mixing with my bluetooth devices. If this is
>> currently not possible, please tell why and what we can do about it. I
>> am willing to donate some payal money to the person providing me with a
>> working asoundrc configuration file that allows me to play multiple
>> audio sources at the same time.
>>
>> Thanks in advance,
>>
>> Jelle
>>
> 
> Bumping up this mail, I would really like to see a solution for my
> problem or receive information why the problem is not possible not solvable?
> 
> Thanks in advance for any help,
> 
> Best regards,
> 
> Jelle

Bump for the mail, I still have this issue, and would really appreciate
somebody taking a look at. I don't know if there is code limitation or
that it is just a asoundrc configuration issue.

Please help,

Best regards,

Jelle

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
       [not found]     ` <664d43d60901061352y72c39fdctdeae5d7242ce559d@mail.gmail.com>
@ 2009-01-07  9:52       ` Jelle de Jong
  2009-01-09 11:48         ` event
  0 siblings, 1 reply; 10+ messages in thread
From: Jelle de Jong @ 2009-01-07  9:52 UTC (permalink / raw)
  To: BlueZ development

[-- Attachment #1: Type: text/plain, Size: 2345 bytes --]

event wrote:
> On Tue, Jan 6, 2009 at 12:07, Jelle de Jong <jelledejong@powercraft.nl> wrote:
>> Jelle de Jong wrote:
>>>> Hello everybody,
>>>>
>>>> I have been periodically trying to get multiple audio sources to play
>>>> together (dmixing) to a hifi bluetooth speaker system or hifi bluetooth
>>>> headset.
>>>>
>>>> I am using only alsa and no pulseaudio, esd, jack, mas of something else
>>>> just alsa with asoundrc configuration files and no graphical environment.
>>>>
>>>> Can somebody show me an example asoundrc config file to make it possible
>>>> to use software audio mixing with my bluetooth devices. If this is
>>>> currently not possible, please tell why and what we can do about it. I
>>>> am willing to donate some payal money to the person providing me with a
>>>> working asoundrc configuration file that allows me to play multiple
>>>> audio sources at the same time.
>>>>
>>>> Thanks in advance,
>>>>
>>>> Jelle
>>>>
>>> Bumping up this mail, I would really like to see a solution for my
>>> problem or receive information why the problem is not possible not solvable?
>>>
>>> Thanks in advance for any help,
>>>
>>> Best regards,
>>>
>>> Jelle
>> Bump for the mail, I still have this issue, and would really appreciate
>> somebody taking a look at. I don't know if there is code limitation or
>> that it is just a asoundrc configuration issue.
>>
>> Please help,
>>
>> Best regards,
>>
>> Jelle
>
> Hello Jelle,
> could you please provide more details:
> 1. what happen when you play from two sources simultaneously?
> 2. what happen if you play only one source?
> 3. please provide your asoundrc (at least the pcm.bluetooth part)
> 4. does it work fine with other output device?
>
> Vale,
> event

Thank you for responding, I had reattached the configurations and
outputs with some more info. I have already spent a bloody awful lot of
time on testing with trial and error. I am not an alsa or bluetooth
developer I cannot get it to work. If a capable person could get it
working I would be very great full.

I am also not able to get bluetooth working without adding a sound card
to my system, so i put in a usb sound dongle just to get bluetooth with
alsa working, alsa won't load its modules without it first finding a
soundcard. It is all very very confusing.

Thanks in advance for any help,

Best regards,

Jelle

[-- Attachment #2: asoundrc --]
[-- Type: text/plain, Size: 608 bytes --]

pcm.headset {
    type bluetooth
    #~ device 00:0D:18:A0:35:70
    #~ device 00:53:53:FB:7E:9C # Nokia BH-801
    #~ device 00:0C:55:D1:C9:78 # Motorola S805
    #~ device 00:0D:FD:18:6E:3C # Motorola S9
    #~ device 20:07:09:15:A9:5A # Samsung WEP210
    #~ python .simple-agent.py hci0 00:1A:80:AB:0A:B1
    device 00:1A:80:AB:0A:B1 # Sony SRS-BT100
    profile hifi
    #profile voice
    #profile auto
    mode stereo
}
pcm.softvol {
    type softvol
    slave.pcm headset
    control.name Headset
    control.card 0
}
pcm.!default {
    #~ type hw
    #~ card 0
    type plug
    slave.pcm softvol
}

[-- Attachment #3: asoundrc.log --]
[-- Type: text/x-log, Size: 1327 bytes --]

# first terminal with the first audio stream
------------------------------------------------------------------------

$ speaker-test -c2

speaker-test 1.0.16

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 6144 to 6144
Period size range from 512 to 2048
Using max buffer size 6144
Periods = 4
was set period_size = 2048
was set buffer_size = 6144
 0 - Front Left
 1 - Front Right
Time per period = 5.865569
 0 - Front Left
 1 - Front Right
Time per period = 5.999629
 0 - Front Left
 1 - Front Right
^C

# second terminal with the second audio stream, that fails
------------------------------------------------------------------------

$ speaker-test -c2

speaker-test 1.0.16

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 6144 to 6144
Period size range from 512 to 2048
Using max buffer size 6144
Periods = 4
was set period_size = 2048
was set buffer_size = 6144
ALSA lib pcm_bluetooth.c:712:(bluetooth_a2dp_hw_params) BT_SETCONFIGURATION failed : Input/output error(5)
Unable to set hw params for playback: Input/output error
Setting of hwparams failed: Input/output error


[-- Attachment #4: asoundrcdmix --]
[-- Type: text/plain, Size: 1362 bytes --]

pcm.headset {
    type bluetooth
    #~ device 00:0D:18:A0:35:70
    #~ device 00:53:53:FB:7E:9C # Nokia BH-801
    #~ device 00:0C:55:D1:C9:78 # Motorola S805
    #~ device 00:0D:FD:18:6E:3C # Motorola S9
    #~ device 20:07:09:15:A9:5A # Samsung WEP210
    #~ python .simple-agent.py hci0 00:1A:80:AB:0A:B1
    device 00:1A:80:AB:0A:B1 # Sony SRS-BT100
    profile hifi
    #profile voice
    #profile auto
    mode stereo
}
pcm.!default {
   type plug
   slave.pcm dmixer
}
pcm.dmixer {
   type dmix
   slave.pcm headset
}
ctl.dmixer {
   type hw
   card 0
}
pcm.dsp {
    type plug
    slave.pcm dmixer
}
ctl.mixer {
    type hw
    card 0
}

# first terminal with the first audio stream
------------------------------------------------------------------------

$ speaker-test -c2

speaker-test 1.0.16

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_direct.c:1479:(_snd_pcm_direct_get_slave_ipc_offset) Invalid type 'bluetooth' for slave PCM

Playback open error: -22,Invalid argument
ALSA lib pcm_direct.c:1479:(_snd_pcm_direct_get_slave_ipc_offset) Invalid type 'bluetooth' for slave PCM

Playback open error: -22,Invalid argument
ALSA lib pcm_direct.c:1479:(_snd_pcm_direct_get_slave_ipc_offset) Invalid type 'bluetooth' for slave PCM

Playback open error: -22,Invalid argument
^C

[-- Attachment #5: asoundrcdmix.log --]
[-- Type: text/x-log, Size: 716 bytes --]

# first terminal with the first audio stream
------------------------------------------------------------------------

$ speaker-test -c2

speaker-test 1.0.16

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_direct.c:1479:(_snd_pcm_direct_get_slave_ipc_offset) Invalid type 'bluetooth' for slave PCM

Playback open error: -22,Invalid argument
ALSA lib pcm_direct.c:1479:(_snd_pcm_direct_get_slave_ipc_offset) Invalid type 'bluetooth' for slave PCM

Playback open error: -22,Invalid argument
ALSA lib pcm_direct.c:1479:(_snd_pcm_direct_get_slave_ipc_offset) Invalid type 'bluetooth' for slave PCM

Playback open error: -22,Invalid argument
^C


[-- Attachment #6: asoundrcdmix1 --]
[-- Type: text/plain, Size: 626 bytes --]

pcm.headset {
    type bluetooth
    #~ device 00:0D:18:A0:35:70
    #~ device 00:53:53:FB:7E:9C # Nokia BH-801
    #~ device 00:0C:55:D1:C9:78 # Motorola S805
    #~ device 00:0D:FD:18:6E:3C # Motorola S9
    #~ device 20:07:09:15:A9:5A # Samsung WEP210
    #~ python .simple-agent.py hci0 00:1A:80:AB:0A:B1
    device 00:1A:80:AB:0A:B1 # Sony SRS-BT100
    profile hifi
    #profile voice
    #profile auto
    mode stereo
}

pcm.softvol {
    type softvol
    slave.pcm dmix:headset
    control.name Master
    control.card 0
}

pcm.!default {
    type plug
    slave.pcm softvol
}

ctl.!default {
    type hw
    card 0
}

[-- Attachment #7: asoundrcdmix1.log --]
[-- Type: text/x-log, Size: 952 bytes --]

# first terminal with the first audio stream
------------------------------------------------------------------------

$ speaker-test -c2

speaker-test 1.0.16

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib confmisc.c:768:(parse_card) cannot find card 'headset'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM dmix:headset
Playback open error: -19,No such device
^C


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
  2009-01-07  9:52       ` Jelle de Jong
@ 2009-01-09 11:48         ` event
  2009-01-10 14:39           ` event
  0 siblings, 1 reply; 10+ messages in thread
From: event @ 2009-01-09 11:48 UTC (permalink / raw)
  To: Jelle de Jong; +Cc: BlueZ development

On 2009-01-07, Jelle de Jong <jelledejong@powercraft.nl> wrote:
> event wrote:
>> On Tue, Jan 6, 2009 at 12:07, Jelle de Jong <jelledejong@powercraft.nl>
>> wrote:
>>> Jelle de Jong wrote:
>>>>> Hello everybody,
>>>>>
>>>>> I have been periodically trying to get multiple audio sources to play
>>>>> together (dmixing) to a hifi bluetooth speaker system or hifi bluetooth
>>>>> headset.
>>>>>
>>>>> I am using only alsa and no pulseaudio, esd, jack, mas of something
>>>>> else
>>>>> just alsa with asoundrc configuration files and no graphical
>>>>> environment.
>>>>>
>>>>> Can somebody show me an example asoundrc config file to make it
>>>>> possible
>>>>> to use software audio mixing with my bluetooth devices. If this is
>>>>> currently not possible, please tell why and what we can do about it. I
>>>>> am willing to donate some payal money to the person providing me with a
>>>>> working asoundrc configuration file that allows me to play multiple
>>>>> audio sources at the same time.
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>> Jelle
>>>>>
>>>> Bumping up this mail, I would really like to see a solution for my
>>>> problem or receive information why the problem is not possible not
>>>> solvable?
>>>>
>>>> Thanks in advance for any help,
>>>>
>>>> Best regards,
>>>>
>>>> Jelle
>>> Bump for the mail, I still have this issue, and would really appreciate
>>> somebody taking a look at. I don't know if there is code limitation or
>>> that it is just a asoundrc configuration issue.
>>>
>>> Please help,
>>>
>>> Best regards,
>>>
>>> Jelle
>>
>> Hello Jelle,
>> could you please provide more details:
>> 1. what happen when you play from two sources simultaneously?
>> 2. what happen if you play only one source?
>> 3. please provide your asoundrc (at least the pcm.bluetooth part)
>> 4. does it work fine with other output device?
>>
>> Vale,
>> event
>
> Thank you for responding, I had reattached the configurations and
> outputs with some more info. I have already spent a bloody awful lot of
> time on testing with trial and error. I am not an alsa or bluetooth
> developer I cannot get it to work. If a capable person could get it
> working I would be very great full.
>
> I am also not able to get bluetooth working without adding a sound card
> to my system, so i put in a usb sound dongle just to get bluetooth with
> alsa working, alsa won't load its modules without it first finding a
> soundcard. It is all very very confusing.
>
> Thanks in advance for any help,
>
> Best regards,
>
> Jelle
>

Hello Jelle,

I will setup the environment and do some tries as well. I'll come back
to you when some outcome will be available

Vale,
Leonid Movshovich

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
  2009-01-09 11:48         ` event
@ 2009-01-10 14:39           ` event
  2009-01-11 13:33             ` Jelle de Jong
  0 siblings, 1 reply; 10+ messages in thread
From: event @ 2009-01-10 14:39 UTC (permalink / raw)
  To: Jelle de Jong; +Cc: BlueZ development

[-- Attachment #1: Type: text/plain, Size: 3069 bytes --]

On 2009-01-09, event <event.riga@gmail.com> wrote:
> On 2009-01-07, Jelle de Jong <jelledejong@powercraft.nl> wrote:
>> event wrote:
>>> On Tue, Jan 6, 2009 at 12:07, Jelle de Jong <jelledejong@powercraft.nl>
>>> wrote:
>>>> Jelle de Jong wrote:
>>>>>> Hello everybody,
>>>>>>
>>>>>> I have been periodically trying to get multiple audio sources to play
>>>>>> together (dmixing) to a hifi bluetooth speaker system or hifi
>>>>>> bluetooth
>>>>>> headset.
>>>>>>
>>>>>> I am using only alsa and no pulseaudio, esd, jack, mas of something
>>>>>> else
>>>>>> just alsa with asoundrc configuration files and no graphical
>>>>>> environment.
>>>>>>
>>>>>> Can somebody show me an example asoundrc config file to make it
>>>>>> possible
>>>>>> to use software audio mixing with my bluetooth devices. If this is
>>>>>> currently not possible, please tell why and what we can do about it. I
>>>>>> am willing to donate some payal money to the person providing me with
>>>>>> a
>>>>>> working asoundrc configuration file that allows me to play multiple
>>>>>> audio sources at the same time.
>>>>>>
>>>>>> Thanks in advance,
>>>>>>
>>>>>> Jelle
>>>>>>
>>>>> Bumping up this mail, I would really like to see a solution for my
>>>>> problem or receive information why the problem is not possible not
>>>>> solvable?
>>>>>
>>>>> Thanks in advance for any help,
>>>>>
>>>>> Best regards,
>>>>>
>>>>> Jelle
>>>> Bump for the mail, I still have this issue, and would really appreciate
>>>> somebody taking a look at. I don't know if there is code limitation or
>>>> that it is just a asoundrc configuration issue.
>>>>
>>>> Please help,
>>>>
>>>> Best regards,
>>>>
>>>> Jelle
>>>
>>> Hello Jelle,
>>> could you please provide more details:
>>> 1. what happen when you play from two sources simultaneously?
>>> 2. what happen if you play only one source?
>>> 3. please provide your asoundrc (at least the pcm.bluetooth part)
>>> 4. does it work fine with other output device?
>>>
>>> Vale,
>>> event
>>
>> Thank you for responding, I had reattached the configurations and
>> outputs with some more info. I have already spent a bloody awful lot of
>> time on testing with trial and error. I am not an alsa or bluetooth
>> developer I cannot get it to work. If a capable person could get it
>> working I would be very great full.
>>
>> I am also not able to get bluetooth working without adding a sound card
>> to my system, so i put in a usb sound dongle just to get bluetooth with
>> alsa working, alsa won't load its modules without it first finding a
>> soundcard. It is all very very confusing.
>>
>> Thanks in advance for any help,
>>
>> Best regards,
>>
>> Jelle
>>
>
> Hello Jelle,
>
> I will setup the environment and do some tries as well. I'll come back
> to you when some outcome will be available
>
> Vale,
> Leonid Movshovich
>

Hello Jelle,

You need to setup a passkey agent (for bluez 3.x) for connection to
succeed. I've attached one simple

For dmix setups you have to define slaves as "pcm_slave." not "pcm."
is .asoundrc

Hope this helps.

Vale,
Leonid Movshovich

[-- Attachment #2: .asoundrc --]
[-- Type: text/plain, Size: 91 bytes --]

pcm.headset {
	type bluetooth
	autoconnect true
	device 00:02:78:DD:FE:EB
	profile hifi
}


[-- Attachment #3: bt_sec_impl.py --]
[-- Type: application/x-python, Size: 1122 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
  2009-01-10 14:39           ` event
@ 2009-01-11 13:33             ` Jelle de Jong
  2009-01-17  1:28               ` event
  0 siblings, 1 reply; 10+ messages in thread
From: Jelle de Jong @ 2009-01-11 13:33 UTC (permalink / raw)
  To: event; +Cc: BlueZ development

event wrote:
> On 2009-01-09, event <event.riga@gmail.com> wrote:
>> On 2009-01-07, Jelle de Jong <jelledejong@powercraft.nl> wrote:
>>> event wrote:
>>>> On Tue, Jan 6, 2009 at 12:07, Jelle de Jong <jelledejong@powercraft.nl>
>>>> wrote:
>>>>> Jelle de Jong wrote:
>>>>>>> Hello everybody,
>>>>>>>
>>>>>>> I have been periodically trying to get multiple audio sources to play
>>>>>>> together (dmixing) to a hifi bluetooth speaker system or hifi
>>>>>>> bluetooth
>>>>>>> headset.
>>>>>>>
>>>>>>> I am using only alsa and no pulseaudio, esd, jack, mas of something
>>>>>>> else
>>>>>>> just alsa with asoundrc configuration files and no graphical
>>>>>>> environment.
>>>>>>>
>>>>>>> Can somebody show me an example asoundrc config file to make it
>>>>>>> possible
>>>>>>> to use software audio mixing with my bluetooth devices. If this is
>>>>>>> currently not possible, please tell why and what we can do about it. I
>>>>>>> am willing to donate some payal money to the person providing me with
>>>>>>> a
>>>>>>> working asoundrc configuration file that allows me to play multiple
>>>>>>> audio sources at the same time.
>>>>>>>
>>>>>>> Thanks in advance,
>>>>>>>
>>>>>>> Jelle
>>>>>>>
>>>>>> Bumping up this mail, I would really like to see a solution for my
>>>>>> problem or receive information why the problem is not possible not
>>>>>> solvable?
>>>>>>
>>>>>> Thanks in advance for any help,
>>>>>>
>>>>>> Best regards,
>>>>>>
>>>>>> Jelle
>>>>> Bump for the mail, I still have this issue, and would really appreciate
>>>>> somebody taking a look at. I don't know if there is code limitation or
>>>>> that it is just a asoundrc configuration issue.
>>>>>
>>>>> Please help,
>>>>>
>>>>> Best regards,
>>>>>
>>>>> Jelle
>>>> Hello Jelle,
>>>> could you please provide more details:
>>>> 1. what happen when you play from two sources simultaneously?
>>>> 2. what happen if you play only one source?
>>>> 3. please provide your asoundrc (at least the pcm.bluetooth part)
>>>> 4. does it work fine with other output device?
>>>>
>>>> Vale,
>>>> event
>>> Thank you for responding, I had reattached the configurations and
>>> outputs with some more info. I have already spent a bloody awful lot of
>>> time on testing with trial and error. I am not an alsa or bluetooth
>>> developer I cannot get it to work. If a capable person could get it
>>> working I would be very great full.
>>>
>>> I am also not able to get bluetooth working without adding a sound card
>>> to my system, so i put in a usb sound dongle just to get bluetooth with
>>> alsa working, alsa won't load its modules without it first finding a
>>> soundcard. It is all very very confusing.
>>>
>>> Thanks in advance for any help,
>>>
>>> Best regards,
>>>
>>> Jelle
>>>
>> Hello Jelle,
>>
>> I will setup the environment and do some tries as well. I'll come back
>> to you when some outcome will be available
>>
>> Vale,
>> Leonid Movshovich
>>
> 
> Hello Jelle,
> 
> You need to setup a passkey agent (for bluez 3.x) for connection to
> succeed. I've attached one simple
> 
> For dmix setups you have to define slaves as "pcm_slave." not "pcm."
> is .asoundrc
> 
> Hope this helps.
> 
> Vale,
> Leonid Movshovich
> 

Thank you Leonid for responding. I gave it a good try again, with trial
and error with all kind of variations of the different asoundrc files I
attached in my previous mails. I am unable to get it working with two
audio streams to one bluetooth devices (mixing).

I ended up with lots of messages like "Unknown field pcm_slave". Could
you please post a complete asoundrc file that has been tested to work
with two speaker-test -c2 programs running beside each other?

Just to be clear, I have no problem getting my bluetooth audio device to
work with single audio streams, I would like to have mixing support
working so I can play multiple audio sources at the same time.

Thanks in advance,

Jelle

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
  2009-01-11 13:33             ` Jelle de Jong
@ 2009-01-17  1:28               ` event
  2009-01-17 10:29                 ` Jelle de Jong
  0 siblings, 1 reply; 10+ messages in thread
From: event @ 2009-01-17  1:28 UTC (permalink / raw)
  To: Jelle de Jong; +Cc: BlueZ development

On Sun, Jan 11, 2009 at 15:33, Jelle de Jong <jelledejong@powercraft.nl> wrote:
> event wrote:
>> On 2009-01-09, event <event.riga@gmail.com> wrote:
>>> On 2009-01-07, Jelle de Jong <jelledejong@powercraft.nl> wrote:
>>>> event wrote:
>>>>> On Tue, Jan 6, 2009 at 12:07, Jelle de Jong <jelledejong@powercraft.nl>
>>>>> wrote:
>>>>>> Jelle de Jong wrote:
>>>>>>>> Hello everybody,
>>>>>>>>
>>>>>>>> I have been periodically trying to get multiple audio sources to play
>>>>>>>> together (dmixing) to a hifi bluetooth speaker system or hifi
>>>>>>>> bluetooth
>>>>>>>> headset.
>>>>>>>>
>>>>>>>> I am using only alsa and no pulseaudio, esd, jack, mas of something
>>>>>>>> else
>>>>>>>> just alsa with asoundrc configuration files and no graphical
>>>>>>>> environment.
>>>>>>>>
>>>>>>>> Can somebody show me an example asoundrc config file to make it
>>>>>>>> possible
>>>>>>>> to use software audio mixing with my bluetooth devices. If this is
>>>>>>>> currently not possible, please tell why and what we can do about it. I
>>>>>>>> am willing to donate some payal money to the person providing me with
>>>>>>>> a
>>>>>>>> working asoundrc configuration file that allows me to play multiple
>>>>>>>> audio sources at the same time.
>>>>>>>>
>>>>>>>> Thanks in advance,
>>>>>>>>
>>>>>>>> Jelle
>>>>>>>>
>>>>>>> Bumping up this mail, I would really like to see a solution for my
>>>>>>> problem or receive information why the problem is not possible not
>>>>>>> solvable?
>>>>>>>
>>>>>>> Thanks in advance for any help,
>>>>>>>
>>>>>>> Best regards,
>>>>>>>
>>>>>>> Jelle
>>>>>> Bump for the mail, I still have this issue, and would really appreciate
>>>>>> somebody taking a look at. I don't know if there is code limitation or
>>>>>> that it is just a asoundrc configuration issue.
>>>>>>
>>>>>> Please help,
>>>>>>
>>>>>> Best regards,
>>>>>>
>>>>>> Jelle
>>>>> Hello Jelle,
>>>>> could you please provide more details:
>>>>> 1. what happen when you play from two sources simultaneously?
>>>>> 2. what happen if you play only one source?
>>>>> 3. please provide your asoundrc (at least the pcm.bluetooth part)
>>>>> 4. does it work fine with other output device?
>>>>>
>>>>> Vale,
>>>>> event
>>>> Thank you for responding, I had reattached the configurations and
>>>> outputs with some more info. I have already spent a bloody awful lot of
>>>> time on testing with trial and error. I am not an alsa or bluetooth
>>>> developer I cannot get it to work. If a capable person could get it
>>>> working I would be very great full.
>>>>
>>>> I am also not able to get bluetooth working without adding a sound card
>>>> to my system, so i put in a usb sound dongle just to get bluetooth with
>>>> alsa working, alsa won't load its modules without it first finding a
>>>> soundcard. It is all very very confusing.
>>>>
>>>> Thanks in advance for any help,
>>>>
>>>> Best regards,
>>>>
>>>> Jelle
>>>>
>>> Hello Jelle,
>>>
>>> I will setup the environment and do some tries as well. I'll come back
>>> to you when some outcome will be available
>>>
>>> Vale,
>>> Leonid Movshovich
>>>
>>
>> Hello Jelle,
>>
>> You need to setup a passkey agent (for bluez 3.x) for connection to
>> succeed. I've attached one simple
>>
>> For dmix setups you have to define slaves as "pcm_slave." not "pcm."
>> is .asoundrc
>>
>> Hope this helps.
>>
>> Vale,
>> Leonid Movshovich
>>
>
> Thank you Leonid for responding. I gave it a good try again, with trial
> and error with all kind of variations of the different asoundrc files I
> attached in my previous mails. I am unable to get it working with two
> audio streams to one bluetooth devices (mixing).
>
> I ended up with lots of messages like "Unknown field pcm_slave". Could
> you please post a complete asoundrc file that has been tested to work
> with two speaker-test -c2 programs running beside each other?
>
> Just to be clear, I have no problem getting my bluetooth audio device to
> work with single audio streams, I would like to have mixing support
> working so I can play multiple audio sources at the same time.
>
> Thanks in advance,
>
> Jelle
>
Hi Jelle,

I've digged there a bit and found out the following:
1. you cannot use dmix over bluetooth as bluetooth is implemented as a
plugin but dmix works with cards only
2. bluetooth itself doesn't do mixing

so dmix is not a thing which could help you here, but...
I have one crazy idea for you :)
you can try to setup alsa jACK plugin and then setup jACK to use your
alsa bluetooth device. Thus if jACK supports mixing itself (which most
probably the truth) the whole setup should work as you want.
Unfortunately, I don't have jACK installed so cannot give it a try.

Vale,
Leonid Movshovich

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
  2009-01-17  1:28               ` event
@ 2009-01-17 10:29                 ` Jelle de Jong
  2009-01-26 14:02                   ` Jelle de Jong
  0 siblings, 1 reply; 10+ messages in thread
From: Jelle de Jong @ 2009-01-17 10:29 UTC (permalink / raw)
  To: event; +Cc: BlueZ development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

event wrote:
> On Sun, Jan 11, 2009 at 15:33, Jelle de Jong <jelledejong@powercraft.nl> wrote:
>> event wrote:
>>> On 2009-01-09, event <event.riga@gmail.com> wrote:
>>>> On 2009-01-07, Jelle de Jong <jelledejong@powercraft.nl> wrote:
>>>>> event wrote:
>>>>>> On Tue, Jan 6, 2009 at 12:07, Jelle de Jong <jelledejong@powercraft.nl>
>>>>>> wrote:
>>>>>>> Jelle de Jong wrote:
>>>>>>>>> Hello everybody,
>>>>>>>>>
>>>>>>>>> I have been periodically trying to get multiple audio sources to play
>>>>>>>>> together (dmixing) to a hifi bluetooth speaker system or hifi
>>>>>>>>> bluetooth
>>>>>>>>> headset.
>>>>>>>>>
>>>>>>>>> I am using only alsa and no pulseaudio, esd, jack, mas of something
>>>>>>>>> else
>>>>>>>>> just alsa with asoundrc configuration files and no graphical
>>>>>>>>> environment.
>>>>>>>>>
>>>>>>>>> Can somebody show me an example asoundrc config file to make it
>>>>>>>>> possible
>>>>>>>>> to use software audio mixing with my bluetooth devices. If this is
>>>>>>>>> currently not possible, please tell why and what we can do about it. I
>>>>>>>>> am willing to donate some payal money to the person providing me with
>>>>>>>>> a
>>>>>>>>> working asoundrc configuration file that allows me to play multiple
>>>>>>>>> audio sources at the same time.
>>>>>>>>>
>>>>>>>>> Thanks in advance,
>>>>>>>>>
>>>>>>>>> Jelle
>>>>>>>>>
>>>>>>>> Bumping up this mail, I would really like to see a solution for my
>>>>>>>> problem or receive information why the problem is not possible not
>>>>>>>> solvable?
>>>>>>>>
>>>>>>>> Thanks in advance for any help,
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>>
>>>>>>>> Jelle
>>>>>>> Bump for the mail, I still have this issue, and would really appreciate
>>>>>>> somebody taking a look at. I don't know if there is code limitation or
>>>>>>> that it is just a asoundrc configuration issue.
>>>>>>>
>>>>>>> Please help,
>>>>>>>
>>>>>>> Best regards,
>>>>>>>
>>>>>>> Jelle
>>>>>> Hello Jelle,
>>>>>> could you please provide more details:
>>>>>> 1. what happen when you play from two sources simultaneously?
>>>>>> 2. what happen if you play only one source?
>>>>>> 3. please provide your asoundrc (at least the pcm.bluetooth part)
>>>>>> 4. does it work fine with other output device?
>>>>>>
>>>>>> Vale,
>>>>>> event
>>>>> Thank you for responding, I had reattached the configurations and
>>>>> outputs with some more info. I have already spent a bloody awful lot of
>>>>> time on testing with trial and error. I am not an alsa or bluetooth
>>>>> developer I cannot get it to work. If a capable person could get it
>>>>> working I would be very great full.
>>>>>
>>>>> I am also not able to get bluetooth working without adding a sound card
>>>>> to my system, so i put in a usb sound dongle just to get bluetooth with
>>>>> alsa working, alsa won't load its modules without it first finding a
>>>>> soundcard. It is all very very confusing.
>>>>>
>>>>> Thanks in advance for any help,
>>>>>
>>>>> Best regards,
>>>>>
>>>>> Jelle
>>>>>
>>>> Hello Jelle,
>>>>
>>>> I will setup the environment and do some tries as well. I'll come back
>>>> to you when some outcome will be available
>>>>
>>>> Vale,
>>>> Leonid Movshovich
>>>>
>>> Hello Jelle,
>>>
>>> You need to setup a passkey agent (for bluez 3.x) for connection to
>>> succeed. I've attached one simple
>>>
>>> For dmix setups you have to define slaves as "pcm_slave." not "pcm."
>>> is .asoundrc
>>>
>>> Hope this helps.
>>>
>>> Vale,
>>> Leonid Movshovich
>>>
>> Thank you Leonid for responding. I gave it a good try again, with trial
>> and error with all kind of variations of the different asoundrc files I
>> attached in my previous mails. I am unable to get it working with two
>> audio streams to one bluetooth devices (mixing).
>>
>> I ended up with lots of messages like "Unknown field pcm_slave". Could
>> you please post a complete asoundrc file that has been tested to work
>> with two speaker-test -c2 programs running beside each other?
>>
>> Just to be clear, I have no problem getting my bluetooth audio device to
>> work with single audio streams, I would like to have mixing support
>> working so I can play multiple audio sources at the same time.
>>
>> Thanks in advance,
>>
>> Jelle
>>
> Hi Jelle,
> 
> I've digged there a bit and found out the following:
> 1. you cannot use dmix over bluetooth as bluetooth is implemented as a
> plugin but dmix works with cards only
> 2. bluetooth itself doesn't do mixing
> 
> so dmix is not a thing which could help you here, but...
> I have one crazy idea for you :)
> you can try to setup alsa jACK plugin and then setup jACK to use your
> alsa bluetooth device. Thus if jACK supports mixing itself (which most
> probably the truth) the whole setup should work as you want.
> Unfortunately, I don't have jACK installed so cannot give it a try.
> 
> Vale,
> Leonid Movshovich

Thank you Leonid for confirming my issues getting mixing to work with
alsa and bluetooth.

I don't really like jack or pulseaudio, and would like to stick with
alsa a while more until all the bugs, usability, and performance issues
are gone. I do not feel like going into there issues in this mail,
because the mail would get 4 pages long, please search with google for
"pulseaudio broken" and find some answers.

My real question is, what would it take to fix the alsa plugin to make
it possible to use streaming. Maybe bluetooth devices should work as
cards... this would also solve the problem that I cant use bluetooth
without a dummy usb soundcard insert into my system. Alsa would not
start without finding a soundcard...

Is somebody willing to take a look at the alsa system for bluetooth?
What would resources or rewards would you like to fix it?

Best regards,

Jelle
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iJwEAQECAAYFAklxsx0ACgkQ1WclBW9j5HkUlQP+Op7VEonl3cOkPD3VEEMgoBeJ
8WFSVfGo6be2cRc64qrj7fy2dbCAABvvF2x0NrxTxzCWAInCembL5BX+ZrD2PjTh
h0wXHYix95OIY9A7VMFVrHlBfeB4Pvh0ePfNdGZtT6ln9SeXV4ulV+F9bGUV0Jhx
Jh+q3snAA0bq34huUYg=
=w1hK
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset
  2009-01-17 10:29                 ` Jelle de Jong
@ 2009-01-26 14:02                   ` Jelle de Jong
  0 siblings, 0 replies; 10+ messages in thread
From: Jelle de Jong @ 2009-01-26 14:02 UTC (permalink / raw)
  To: BlueZ development

Jelle de Jong wrote:
> event wrote:
>> On Sun, Jan 11, 2009 at 15:33, Jelle de Jong <jelledejong@powercraft.nl> wrote:
>>> event wrote:
>>>> On 2009-01-09, event <event.riga@gmail.com> wrote:
>>>>> On 2009-01-07, Jelle de Jong <jelledejong@powercraft.nl> wrote:
>>>>>> event wrote:
>>>>>>> On Tue, Jan 6, 2009 at 12:07, Jelle de Jong <jelledejong@powercraft.nl>
>>>>>>> wrote:
>>>>>>>> Jelle de Jong wrote:
>>>>>>>>>> Hello everybody,
>>>>>>>>>>
>>>>>>>>>> I have been periodically trying to get multiple audio sources to play
>>>>>>>>>> together (dmixing) to a hifi bluetooth speaker system or hifi
>>>>>>>>>> bluetooth
>>>>>>>>>> headset.
>>>>>>>>>>
>>>>>>>>>> I am using only alsa and no pulseaudio, esd, jack, mas of something
>>>>>>>>>> else
>>>>>>>>>> just alsa with asoundrc configuration files and no graphical
>>>>>>>>>> environment.
>>>>>>>>>>
>>>>>>>>>> Can somebody show me an example asoundrc config file to make it
>>>>>>>>>> possible
>>>>>>>>>> to use software audio mixing with my bluetooth devices. If this is
>>>>>>>>>> currently not possible, please tell why and what we can do about it. I
>>>>>>>>>> am willing to donate some payal money to the person providing me with
>>>>>>>>>> a
>>>>>>>>>> working asoundrc configuration file that allows me to play multiple
>>>>>>>>>> audio sources at the same time.
>>>>>>>>>>
>>>>>>>>>> Thanks in advance,
>>>>>>>>>>
>>>>>>>>>> Jelle
>>>>>>>>>>
>>>>>>>>> Bumping up this mail, I would really like to see a solution for my
>>>>>>>>> problem or receive information why the problem is not possible not
>>>>>>>>> solvable?
>>>>>>>>>
>>>>>>>>> Thanks in advance for any help,
>>>>>>>>>
>>>>>>>>> Best regards,
>>>>>>>>>
>>>>>>>>> Jelle
>>>>>>>> Bump for the mail, I still have this issue, and would really appreciate
>>>>>>>> somebody taking a look at. I don't know if there is code limitation or
>>>>>>>> that it is just a asoundrc configuration issue.
>>>>>>>>
>>>>>>>> Please help,
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>>
>>>>>>>> Jelle
>>>>>>> Hello Jelle,
>>>>>>> could you please provide more details:
>>>>>>> 1. what happen when you play from two sources simultaneously?
>>>>>>> 2. what happen if you play only one source?
>>>>>>> 3. please provide your asoundrc (at least the pcm.bluetooth part)
>>>>>>> 4. does it work fine with other output device?
>>>>>>>
>>>>>>> Vale,
>>>>>>> event
>>>>>> Thank you for responding, I had reattached the configurations and
>>>>>> outputs with some more info. I have already spent a bloody awful lot of
>>>>>> time on testing with trial and error. I am not an alsa or bluetooth
>>>>>> developer I cannot get it to work. If a capable person could get it
>>>>>> working I would be very great full.
>>>>>>
>>>>>> I am also not able to get bluetooth working without adding a sound card
>>>>>> to my system, so i put in a usb sound dongle just to get bluetooth with
>>>>>> alsa working, alsa won't load its modules without it first finding a
>>>>>> soundcard. It is all very very confusing.
>>>>>>
>>>>>> Thanks in advance for any help,
>>>>>>
>>>>>> Best regards,
>>>>>>
>>>>>> Jelle
>>>>>>
>>>>> Hello Jelle,
>>>>>
>>>>> I will setup the environment and do some tries as well. I'll come back
>>>>> to you when some outcome will be available
>>>>>
>>>>> Vale,
>>>>> Leonid Movshovich
>>>>>
>>>> Hello Jelle,
>>>>
>>>> You need to setup a passkey agent (for bluez 3.x) for connection to
>>>> succeed. I've attached one simple
>>>>
>>>> For dmix setups you have to define slaves as "pcm_slave." not "pcm."
>>>> is .asoundrc
>>>>
>>>> Hope this helps.
>>>>
>>>> Vale,
>>>> Leonid Movshovich
>>>>
>>> Thank you Leonid for responding. I gave it a good try again, with trial
>>> and error with all kind of variations of the different asoundrc files I
>>> attached in my previous mails. I am unable to get it working with two
>>> audio streams to one bluetooth devices (mixing).
>>>
>>> I ended up with lots of messages like "Unknown field pcm_slave". Could
>>> you please post a complete asoundrc file that has been tested to work
>>> with two speaker-test -c2 programs running beside each other?
>>>
>>> Just to be clear, I have no problem getting my bluetooth audio device to
>>> work with single audio streams, I would like to have mixing support
>>> working so I can play multiple audio sources at the same time.
>>>
>>> Thanks in advance,
>>>
>>> Jelle
>>>
>> Hi Jelle,
> 
>> I've digged there a bit and found out the following:
>> 1. you cannot use dmix over bluetooth as bluetooth is implemented as a
>> plugin but dmix works with cards only
>> 2. bluetooth itself doesn't do mixing
> 
>> so dmix is not a thing which could help you here, but...
>> I have one crazy idea for you :)
>> you can try to setup alsa jACK plugin and then setup jACK to use your
>> alsa bluetooth device. Thus if jACK supports mixing itself (which most
>> probably the truth) the whole setup should work as you want.
>> Unfortunately, I don't have jACK installed so cannot give it a try.
> 
>> Vale,
>> Leonid Movshovich
> 
> Thank you Leonid for confirming my issues getting mixing to work with
> alsa and bluetooth.
> 
> I don't really like jack or pulseaudio, and would like to stick with
> alsa a while more until all the bugs, usability, and performance issues
> are gone. I do not feel like going into there issues in this mail,
> because the mail would get 4 pages long, please search with google for
> "pulseaudio broken" and find some answers.
> 
> My real question is, what would it take to fix the alsa plugin to make
> it possible to use streaming. Maybe bluetooth devices should work as
> cards... this would also solve the problem that I cant use bluetooth
> without a dummy usb soundcard insert into my system. Alsa would not
> start without finding a soundcard...
> 
> Is somebody willing to take a look at the alsa system for bluetooth?
> What would resources or rewards would you like to fix it?
> 
> Best regards,
> 
> Jelle

Hello everybody,

I am popping up this email again, I would really like to see this
issue fixed, would somebody be willing to take a look at it?

Best regards,

Jelle

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-01-26 14:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-21 11:38 can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset Jelle de Jong
2008-12-29 10:18 ` Jelle de Jong
2009-01-06 10:07   ` Jelle de Jong
     [not found]     ` <664d43d60901061352y72c39fdctdeae5d7242ce559d@mail.gmail.com>
2009-01-07  9:52       ` Jelle de Jong
2009-01-09 11:48         ` event
2009-01-10 14:39           ` event
2009-01-11 13:33             ` Jelle de Jong
2009-01-17  1:28               ` event
2009-01-17 10:29                 ` Jelle de Jong
2009-01-26 14:02                   ` Jelle de Jong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox