Memo5 wrote: > Thanks for your reply! > > -Dbtheadset produces a correct output when i play a wav-file with a sampling > rate of of the headset (8000). Otherwise I get a corrupt sound output. Alsa > does not resample my sound, but I don't know the issue. Although I do not have this problem with A2DP I can reproduce it with profile "voice". For me ALSA does resample the sound but bluetoothd generates a constant stream of errors: Jun 8 20:31:11 aqui bluetoothd[25704]: Audio API: BT_REQUEST <- BT_START_STREAM Jun 8 20:31:11 aqui bluetoothd[25704]: State changed /org/bluez/25704/hci0/dev_00_02_76_64_BB_C4: HEADSET_STATE_CONNECTED -> HEADSET_STATE_PLAY_IN_PROGRESS Jun 8 20:31:11 aqui bluetoothd[25704]: SCO socket opened for headset /org/bluez/25704/hci0/dev_00_02_76_64_BB_C4 Jun 8 20:31:11 aqui bluetoothd[25704]: SCO fd=20 Jun 8 20:31:11 aqui bluetoothd[25704]: Audio API: BT_RESPONSE -> BT_START_STREAM Jun 8 20:31:11 aqui bluetoothd[25704]: Audio API: BT_INDICATION -> BT_NEW_STREAM Jun 8 20:31:11 aqui bluetoothd[25704]: State changed /org/bluez/25704/hci0/dev_00_02_76_64_BB_C4: HEADSET_STATE_PLAY_IN_PROGRESS -> HEADSET_STATE_PLAYING Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb d414b200 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb d22d7c00 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb d22d7e00 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb c7506600 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb c74cfc00 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb df07f600 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb df07f400 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb cfe71400 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb cfe71200 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb cfe71000 submission failed Jun 8 20:31:11 aqui btusb_send_frame: hci0 urb c5d38000 submission failed ALSA seems to do the right thing: aplay -v -D bluetooth audio_10.wav Playing WAVE 'audio_10.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Plug PCM: Route conversion PCM (sformat=S16_LE) Transformation table: 0 <- 0*0.5 + 1*0.5 Its setup is: stream : PLAYBACK access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 2 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 22050 period_size : 5512 period_time : 125000 tstamp_mode : NONE period_step : 1 avail_min : 5512 period_event : 0 start_threshold : 22050 stop_threshold : 22050 silence_threshold: 0 silence_size : 0 boundary : 1445068800 Slave: Rate conversion PCM (8000, sformat=S16_LE) Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S16_LE subformat : STD channels : 1 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 22050 period_size : 5512 period_time : 125000 tstamp_mode : NONE period_step : 1 avail_min : 5512 period_event : 0 start_threshold : 22050 stop_threshold : 22050 silence_threshold: 0 silence_size : 0 boundary : 1445068800 Slave: Bluetooth Audio Device Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S16_LE subformat : STD channels : 1 rate : 8000 exact rate : 8000 (8000/1) msbits : 16 buffer_size : 4000 period_size : 1000 period_time : 125000 tstamp_mode : NONE period_step : 1 avail_min : 1000 period_event : 0 start_threshold : 4000 stop_threshold : 4000 silence_threshold: 0 silence_size : 0 boundary : 2097152000 The "submission failed" floods the logs with its volume. I am running 4.41. If I record the stream coming off the headset and play that back it works fine. John ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user