Re: can somebody show me an example asound configuration for dmixing with hifi bluetooth speakers/headset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



event wrote:
> On Tue, Jan 6, 2009 at 12:07, Jelle de Jong <jelledejong@xxxxxxxxxxxxx> 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
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
}
# 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

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
# 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

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
}
# 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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux