Bluetooth issues, possibly due to codec?

I use the Vero V to listen to music over bluetooth from multiple Android phones that may connect to it and regardless of the phone, the following happens.

Scenario 1: If I 1) connect Android via bluetooth to Vero V and 2) fire up music app and play music, all works fine.

Scenario 2: But if I 1) play music on phone and 2) connect phone via bluetooth to Vero V, there is about 2 seconds of music playing over bluetooth and then no more music, even though it still shows as playing on my phone.

I toyed with the Developer options on Android and found that only one of all the available options can fix the issue if I ever find myself in Scenario 2. It’s changing the default AAC Bluetooth audio codec to SBC. Whenever I do this AAC - > SBC codec transition in the settings, problem is fixed. If I transition from SBC → AAC codec, no music comes out of Vero V even though phone is still playing it.

So, I took this dmesg snapshot while doing such transitions, I annotated it with some comments:

############### At this point, music is playing on Android phone and I connect via bluetooth to Vero V:



[959545.836854] aml_tdm_open opening tdm id 2
[959545.837334] audio_ddr_mngr: frddrs[1] registered by device fe330000.audiobus:tdm@2
[959545.839289] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[959545.839298] asoc aml_dai_set_tdm_fmt, 0x4001, 000000009cc193cb, id(2), clksel(2)
[959545.839301] aml_tdm_set_fmt(), fmt not change
[959545.839308] dump_pcm_setting(000000009cc193cb)
[959545.839310] 	pcm_mode(1)
[959545.839312] 	sysclk(11289600)
[959545.839314] 	sysclk_bclk_ratio(4)
[959545.839316] 	bclk(2822400)
[959545.839317] 	bclk_lrclk_ratio(64)
[959545.839319] 	lrclk(44100)
[959545.839321] 	tx_mask(0x3)
[959545.839322] 	rx_mask(0x3)
[959545.839324] 	slots(2)
[959545.839325] 	slot_width(32)
[959545.839327] 	lane_mask_in(0x0)
[959545.839329] 	lane_mask_out(0xf)
[959545.839331] 	lane_oe_mask_in(0x0)
[959545.839332] 	lane_oe_mask_out(0x0)
[959545.839340] 	lane_lb_mask_in(0x0)
[959545.839345] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[959545.839348] aml_tdm_set_clkdiv, div 4, clksel(2)
[959545.839354] aml_set_bclk_ratio, select I2S mode
[959545.839361] aml_tdm_hw_setting_init(), enable mclk for tdm-2
[959545.839460] aml_tdm_prepare(), reset fddr
[959545.839476] ss_prepare() 247, lvl 1
[959545.839482] spdif_a fifo ctrl, frddr:1 type:1, 16 bits, chmask 0x3, swap 0x10
[959545.839490] iec_info: rate: 44100, codec_type:0x0, channel status L:0x100, R:0x100
[959545.839495] hdmitx: audio: aout notify rate 44100
[959545.839497] hdmitx: audio: aout notify size 16
[959545.839501] hdmitx: audio: aout notify sample size 1 was 4
[959545.839503] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959545.839508] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[959545.839526] hdmitx: audio: aout notify rate 44100
[959545.839528] hdmitx: audio: aout notify size 16
[959545.839530] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959545.840845] tdm playback mute: 0, lane_cnt = 4
[959545.840885] aml_tdm_prepare(), reset fddr
[959545.840900] ss_prepare() 247, lvl 1
[959545.840906] spdif_a fifo ctrl, frddr:1 type:1, 16 bits, chmask 0x3, swap 0x10
[959545.840913] iec_info: rate: 44100, codec_type:0x0, channel status L:0x100, R:0x100
[959545.840923] hdmitx: audio: aout notify rate 44100
[959545.840925] hdmitx: audio: aout notify size 16
[959545.840929] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959545.840933] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[959545.840953] hdmitx: audio: aout notify rate 44100
[959545.840955] hdmitx: audio: aout notify size 16
[959545.840957] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959545.841146] tdm playback mute: 0, lane_cnt = 4
[959546.337824] asoc-aml-card auge_sound: TDM[2] Playback enable
[959546.337834] ss_trigger() ss 3
[959546.337838] spdif_a is set to enable
[959546.337947] ss_mute() 364, mute 0, id 0
[959548.166686] input: Willie Trombone (AVRCP) as /devices/virtual/input/input42
[959548.965333] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[959548.966461] audio_ddr_mngr: frddrs[2] registered by device fe330000.audiobus:spdif@0
[959548.966468] aml_spdif_open opening spdif id 0 IEC codec type 0
[959548.968067] spdif_a keep clk continuous
[959548.968757] audio_ddr_mngr: frddrs[2] released by device fe330000.audiobus:spdif@0
[959548.971503] audio_dsp: buf=0
[959548.971510] audio_dsp: IEC958_mode_raw=0
[959548.971550] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959548.971552] audio_dsp: last mode 0,now 0
[959548.971652] hdmitx: hdmitx: config: audio_on
[959548.971658] hdmitx: audio: configure on
[959548.977579] audio_dsp: buf=0
[959548.977586] audio_dsp: IEC958_mode_raw=0
[959548.977618] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959548.977621] audio_dsp: last mode 0,now 0
[959548.977865] hdmitx: hdmitx: config: audio_on
[959548.977872] hdmitx: audio: configure on
[959549.488219] audio_dsp: buf=0
[959549.488227] audio_dsp: IEC958_mode_raw=0
[959549.488273] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959549.488276] audio_dsp: last mode 0,now 0
[959549.488402] hdmitx: hdmitx: config: audio_on
[959549.488408] hdmitx: audio: configure on
[959549.499211] audio_dsp: buf=0
[959549.499219] audio_dsp: IEC958_mode_raw=0
[959549.499320] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959549.499324] audio_dsp: last mode 0,now 0
[959549.499483] hdmitx: hdmitx: config: audio_on
[959549.499491] hdmitx: audio: configure on
[959550.007714] audio_dsp: buf=0
[959550.007722] audio_dsp: IEC958_mode_raw=0
[959550.007768] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959550.007772] audio_dsp: last mode 0,now 0
[959550.008076] hdmitx: hdmitx: config: audio_on
[959550.008084] hdmitx: audio: configure on
[959550.029007] audio_dsp: buf=0
[959550.029015] audio_dsp: IEC958_mode_raw=0
[959550.029051] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959550.029054] audio_dsp: last mode 0,now 0
[959550.029183] hdmitx: hdmitx: config: audio_on
[959550.029190] hdmitx: audio: configure on
[959550.540046] audio_dsp: buf=0
[959550.540054] audio_dsp: IEC958_mode_raw=0
[959550.540100] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959550.540103] audio_dsp: last mode 0,now 0
[959550.540241] hdmitx: hdmitx: config: audio_on
[959550.540248] hdmitx: audio: configure on
[959550.547621] audio_dsp: buf=0
[959550.547629] audio_dsp: IEC958_mode_raw=0
[959550.547665] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959550.547669] audio_dsp: last mode 0,now 0
[959550.547792] hdmitx: hdmitx: config: audio_on
[959550.547799] hdmitx: audio: configure on
[959551.056399] audio_dsp: buf=0
[959551.056407] audio_dsp: IEC958_mode_raw=0
[959551.056456] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959551.056459] audio_dsp: last mode 0,now 0
[959551.056614] hdmitx: hdmitx: config: audio_on
[959551.056621] hdmitx: audio: configure on
[959551.064222] audio_dsp: buf=0
[959551.064230] audio_dsp: IEC958_mode_raw=0
[959551.064267] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959551.064270] audio_dsp: last mode 0,now 0
[959551.064401] hdmitx: hdmitx: config: audio_on
[959551.064409] hdmitx: audio: configure on
[959551.571999] audio_dsp: buf=0
[959551.572007] audio_dsp: IEC958_mode_raw=0
[959551.572052] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959551.572056] audio_dsp: last mode 0,now 0
[959551.572185] hdmitx: hdmitx: config: audio_on
[959551.572192] hdmitx: audio: configure on
[959551.579129] audio_dsp: buf=0
[959551.579137] audio_dsp: IEC958_mode_raw=0
[959551.579173] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959551.579176] audio_dsp: last mode 0,now 0
[959551.579393] hdmitx: hdmitx: config: audio_on
[959551.579405] hdmitx: audio: configure on
[959552.087969] audio_dsp: buf=0
[959552.087978] audio_dsp: IEC958_mode_raw=0
[959552.088024] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959552.088027] audio_dsp: last mode 0,now 0
[959552.088172] hdmitx: hdmitx: config: audio_on
[959552.088180] hdmitx: audio: configure on
[959552.095410] audio_dsp: buf=0
[959552.095417] audio_dsp: IEC958_mode_raw=0
[959552.095453] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959552.095456] audio_dsp: last mode 0,now 0
[959552.095579] hdmitx: hdmitx: config: audio_on
[959552.095586] hdmitx: audio: configure on
[959552.605986] audio_dsp: buf=0
[959552.605994] audio_dsp: IEC958_mode_raw=0
[959552.606039] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959552.606043] audio_dsp: last mode 0,now 0
[959552.606171] hdmitx: hdmitx: config: audio_on
[959552.606178] hdmitx: audio: configure on
[959552.620832] audio_dsp: buf=0
[959552.620840] audio_dsp: IEC958_mode_raw=0
[959552.620880] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959552.620883] audio_dsp: last mode 0,now 0
[959552.621016] hdmitx: hdmitx: config: audio_on
[959552.621023] hdmitx: audio: configure on
[959553.128959] audio_dsp: buf=0
[959553.128967] audio_dsp: IEC958_mode_raw=0
[959553.129010] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959553.129014] audio_dsp: last mode 0,now 0
[959553.129158] hdmitx: hdmitx: config: audio_on
[959553.129165] hdmitx: audio: configure on
[959553.135808] audio_dsp: buf=0
[959553.135815] audio_dsp: IEC958_mode_raw=0
[959553.135850] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959553.135852] audio_dsp: last mode 0,now 0
[959553.135971] hdmitx: hdmitx: config: audio_on
[959553.135978] hdmitx: audio: configure on
[959553.645350] audio_dsp: buf=0
[959553.645358] audio_dsp: IEC958_mode_raw=0
[959553.645405] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959553.645408] audio_dsp: last mode 0,now 0
[959553.645541] hdmitx: hdmitx: config: audio_on
[959553.645549] hdmitx: audio: configure on
[959553.653475] audio_dsp: buf=0
[959553.653482] audio_dsp: IEC958_mode_raw=0
[959553.653523] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959553.653526] audio_dsp: last mode 0,now 0
[959553.653660] hdmitx: hdmitx: config: audio_on
[959553.653666] hdmitx: audio: configure on
[959554.164952] audio_dsp: buf=0
[959554.164960] audio_dsp: IEC958_mode_raw=0
[959554.165005] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959554.165008] audio_dsp: last mode 0,now 0
[959554.165134] hdmitx: hdmitx: config: audio_on
[959554.165140] hdmitx: audio: configure on
[959554.174426] audio_dsp: buf=0
[959554.174435] audio_dsp: IEC958_mode_raw=0
[959554.174474] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959554.174477] audio_dsp: last mode 0,now 0
[959554.174590] hdmitx: hdmitx: config: audio_on
[959554.174596] hdmitx: audio: configure on
[959554.683049] audio_dsp: buf=0
[959554.683057] audio_dsp: IEC958_mode_raw=0
[959554.683103] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959554.683107] audio_dsp: last mode 0,now 0
[959554.683243] hdmitx: hdmitx: config: audio_on
[959554.683249] hdmitx: audio: configure on
[959554.692161] audio_dsp: buf=0
[959554.692169] audio_dsp: IEC958_mode_raw=0
[959554.692208] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959554.692211] audio_dsp: last mode 0,now 0
[959554.692325] hdmitx: hdmitx: config: audio_on
[959554.692332] hdmitx: audio: configure on
[959555.201262] audio_dsp: buf=0
[959555.201271] audio_dsp: IEC958_mode_raw=0
[959555.201317] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959555.201321] audio_dsp: last mode 0,now 0
[959555.201468] hdmitx: hdmitx: config: audio_on
[959555.201476] hdmitx: audio: configure on
[959555.208154] audio_dsp: buf=0
[959555.208162] audio_dsp: IEC958_mode_raw=0
[959555.208200] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959555.208203] audio_dsp: last mode 0,now 0
[959555.208325] hdmitx: hdmitx: config: audio_on
[959555.208332] hdmitx: audio: configure on
[959555.717752] audio_dsp: buf=0
[959555.717760] audio_dsp: IEC958_mode_raw=0
[959555.717805] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959555.717809] audio_dsp: last mode 0,now 0
[959555.717939] hdmitx: hdmitx: config: audio_on
[959555.717946] hdmitx: audio: configure on
[959555.726540] audio_dsp: buf=0
[959555.726548] audio_dsp: IEC958_mode_raw=0
[959555.726589] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959555.726592] audio_dsp: last mode 0,now 0
[959555.726761] hdmitx: hdmitx: config: audio_on
[959555.726767] hdmitx: audio: configure on
[959556.236146] audio_dsp: buf=0
[959556.236154] audio_dsp: IEC958_mode_raw=0
[959556.236201] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959556.236205] audio_dsp: last mode 0,now 0
[959556.236354] hdmitx: hdmitx: config: audio_on
[959556.236361] hdmitx: audio: configure on
[959556.245004] audio_dsp: buf=0
[959556.245013] audio_dsp: IEC958_mode_raw=0
[959556.245050] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959556.245053] audio_dsp: last mode 0,now 0
[959556.245734] hdmitx: hdmitx: config: audio_on
[959556.245740] hdmitx: audio: configure on
[959556.754403] audio_dsp: buf=0
[959556.754411] audio_dsp: IEC958_mode_raw=0
[959556.754452] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959556.754455] audio_dsp: last mode 0,now 0
[959556.754567] hdmitx: hdmitx: config: audio_on
[959556.754573] hdmitx: audio: configure on
[959556.763096] audio_dsp: buf=0
[959556.763105] audio_dsp: IEC958_mode_raw=0
[959556.763143] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959556.763146] audio_dsp: last mode 0,now 0
[959556.763266] hdmitx: hdmitx: config: audio_on
[959556.763272] hdmitx: audio: configure on
[959557.271577] audio_dsp: buf=0
[959557.271585] audio_dsp: IEC958_mode_raw=0
[959557.271633] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959557.271636] audio_dsp: last mode 0,now 0
[959557.271783] hdmitx: hdmitx: config: audio_on
[959557.271790] hdmitx: audio: configure on
[959557.278926] audio_dsp: buf=0
[959557.278933] audio_dsp: IEC958_mode_raw=0
[959557.278971] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959557.278974] audio_dsp: last mode 0,now 0
[959557.279090] hdmitx: hdmitx: config: audio_on
[959557.279096] hdmitx: audio: configure on
[959557.789850] audio_dsp: buf=0
[959557.789858] audio_dsp: IEC958_mode_raw=0
[959557.789899] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959557.789903] audio_dsp: last mode 0,now 0
[959557.790015] hdmitx: hdmitx: config: audio_on
[959557.790021] hdmitx: audio: configure on
[959557.796680] audio_dsp: buf=0
[959557.796688] audio_dsp: IEC958_mode_raw=0
[959557.796724] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959557.796727] audio_dsp: last mode 0,now 0
[959557.796838] hdmitx: hdmitx: config: audio_on
[959557.796844] hdmitx: audio: configure on
[959558.307597] audio_dsp: buf=0
[959558.307605] audio_dsp: IEC958_mode_raw=0
[959558.307652] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959558.307656] audio_dsp: last mode 0,now 0
[959558.307805] hdmitx: hdmitx: config: audio_on
[959558.307813] hdmitx: audio: configure on
[959558.315853] audio_dsp: buf=0
[959558.315861] audio_dsp: IEC958_mode_raw=0
[959558.315897] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959558.315900] audio_dsp: last mode 0,now 0
[959558.316014] hdmitx: hdmitx: config: audio_on
[959558.316019] hdmitx: audio: configure on
[959558.824318] audio_dsp: buf=0
[959558.824324] audio_dsp: IEC958_mode_raw=0
[959558.824351] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959558.824353] audio_dsp: last mode 0,now 0
[959558.824439] hdmitx: hdmitx: config: audio_on
[959558.824445] hdmitx: audio: configure on
[959558.829247] audio_dsp: buf=0
[959558.829253] audio_dsp: IEC958_mode_raw=0
[959558.829279] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959558.829281] audio_dsp: last mode 0,now 0
[959558.829365] hdmitx: hdmitx: config: audio_on
[959558.829369] hdmitx: audio: configure on
[959559.342212] audio_dsp: buf=0
[959559.342220] audio_dsp: IEC958_mode_raw=0
[959559.342265] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959559.342268] audio_dsp: last mode 0,now 0
[959559.342417] hdmitx: hdmitx: config: audio_on
[959559.342423] hdmitx: audio: configure on
[959559.349337] audio_dsp: buf=0
[959559.349345] audio_dsp: IEC958_mode_raw=0
[959559.350841] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959559.350847] audio_dsp: last mode 0,now 0
[959559.351037] hdmitx: hdmitx: config: audio_on
[959559.351043] hdmitx: audio: configure on
[959559.858281] audio_dsp: buf=0
[959559.858289] audio_dsp: IEC958_mode_raw=0
[959559.858330] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959559.858333] audio_dsp: last mode 0,now 0
[959559.858445] hdmitx: hdmitx: config: audio_on
[959559.858450] hdmitx: audio: configure on
[959559.868704] audio_dsp: buf=0
[959559.868713] audio_dsp: IEC958_mode_raw=0
[959559.868751] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959559.868754] audio_dsp: last mode 0,now 0
[959559.868871] hdmitx: hdmitx: config: audio_on
[959559.868877] hdmitx: audio: configure on
[959560.379152] audio_dsp: buf=0
[959560.379160] audio_dsp: IEC958_mode_raw=0
[959560.379206] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959560.379210] audio_dsp: last mode 0,now 0
[959560.379358] hdmitx: hdmitx: config: audio_on
[959560.379365] hdmitx: audio: configure on
[959560.387672] audio_dsp: buf=0
[959560.387681] audio_dsp: IEC958_mode_raw=0
[959560.387717] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959560.387720] audio_dsp: last mode 0,now 0
[959560.387832] hdmitx: hdmitx: config: audio_on
[959560.387838] hdmitx: audio: configure on
[959560.896414] audio_dsp: buf=0
[959560.896422] audio_dsp: IEC958_mode_raw=0
[959560.896462] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959560.896465] audio_dsp: last mode 0,now 0
[959560.896582] hdmitx: hdmitx: config: audio_on
[959560.896588] hdmitx: audio: configure on
[959560.904714] audio_dsp: buf=0
[959560.904722] audio_dsp: IEC958_mode_raw=0
[959560.904758] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959560.904761] audio_dsp: last mode 0,now 0
[959560.904877] hdmitx: hdmitx: config: audio_on
[959560.904884] hdmitx: audio: configure on
[959561.415035] audio_dsp: buf=0
[959561.415043] audio_dsp: IEC958_mode_raw=0
[959561.415090] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959561.415094] audio_dsp: last mode 0,now 0
[959561.415245] hdmitx: hdmitx: config: audio_on
[959561.415252] hdmitx: audio: configure on
[959561.424608] audio_dsp: buf=0
[959561.424616] audio_dsp: IEC958_mode_raw=0
[959561.424650] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959561.424653] audio_dsp: last mode 0,now 0
[959561.424768] hdmitx: hdmitx: config: audio_on
[959561.424774] hdmitx: audio: configure on

[959561.933043] audio_dsp: buf=0
[959561.933051] audio_dsp: IEC958_mode_raw=0
[959561.933091] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959561.933095] audio_dsp: last mode 0,now 0
[959561.933204] hdmitx: hdmitx: config: audio_on
[959561.933211] hdmitx: audio: configure on
[959561.941477] audio_dsp: buf=0
[959561.941484] audio_dsp: IEC958_mode_raw=0
[959561.941523] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959561.941526] audio_dsp: last mode 0,now 0
[959561.941709] hdmitx: hdmitx: config: audio_on
[959561.941715] hdmitx: audio: configure on


[959562.451340] audio_dsp: buf=0
[959562.451348] audio_dsp: IEC958_mode_raw=0
[959562.451393] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959562.451397] audio_dsp: last mode 0,now 0
[959562.451546] hdmitx: hdmitx: config: audio_on
[959562.451553] hdmitx: audio: configure on
[959562.459700] audio_dsp: buf=0
[959562.459708] audio_dsp: IEC958_mode_raw=0
[959562.459745] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959562.459748] audio_dsp: last mode 0,now 0
[959562.459864] hdmitx: hdmitx: config: audio_on
[959562.459870] hdmitx: audio: configure on

[959562.966898] audio_dsp: buf=0
[959562.966906] audio_dsp: IEC958_mode_raw=0
[959562.966946] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959562.966949] audio_dsp: last mode 0,now 0
[959562.967061] hdmitx: hdmitx: config: audio_on
[959562.967067] hdmitx: audio: configure on
[959562.975595] audio_dsp: buf=0
[959562.975603] audio_dsp: IEC958_mode_raw=0
[959562.975638] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959562.975641] audio_dsp: last mode 0,now 0
[959562.975754] hdmitx: hdmitx: config: audio_on
[959562.975760] hdmitx: audio: configure on
[959563.485920] audio_dsp: buf=0
[959563.485928] audio_dsp: IEC958_mode_raw=0
[959563.485973] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959563.485976] audio_dsp: last mode 0,now 0
[959563.486176] hdmitx: hdmitx: config: audio_on
[959563.486183] hdmitx: audio: configure on
[959563.495950] audio_dsp: buf=0
[959563.495958] audio_dsp: IEC958_mode_raw=0
[959563.495994] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959563.495997] audio_dsp: last mode 0,now 0
[959563.496114] hdmitx: hdmitx: config: audio_on
[959563.496120] hdmitx: audio: configure on




############### Here I use Developer Options on Android to change Bluetooth codec from SBC -> AAC,  music still doesn't play through the Vero V but at least the dmesg spam is stopped:



[959563.533595] asoc-aml-card auge_sound: TDM[2] Playback stop
[959563.533605] ss_mute() 364, mute 1, id 0
[959563.533616] ss_trigger() ss 3
[959563.533619] spdif_a is set to disable
[959563.533631] audio_ddr_mngr: frddr stop success, fifo id 1, regbase:0x80, arb sts:0x40000020
[959563.533681] ss_free() lvl 1
[959563.533687] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[959563.533692] aml_tdm_hw_setting_free(), disable mclk for tdm-2
[959563.533718] tdm playback mute: 1, lane_cnt = 4
[959563.534155] audio_ddr_mngr: frddrs[1] released by device fe330000.audiobus:tdm@2
[959564.004818] audio_dsp: buf=0
[959564.004827] audio_dsp: IEC958_mode_raw=0
[959564.004873] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[959564.004877] audio_dsp: last mode 0,now 0
[959564.004999] hdmitx: hdmitx: config: audio_on
[959564.005006] hdmitx: audio: configure on
[959564.013037] aml_tdm_open opening tdm id 2
[959564.013564] audio_ddr_mngr: frddrs[1] registered by device fe330000.audiobus:tdm@2
[959564.015644] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[959564.015654] asoc aml_dai_set_tdm_fmt, 0x4001, 000000009cc193cb, id(2), clksel(2)
[959564.015657] aml_tdm_set_fmt(), fmt not change
[959564.015665] dump_pcm_setting(000000009cc193cb)
[959564.015667] 	pcm_mode(1)
[959564.015669] 	sysclk(11289600)
[959564.015671] 	sysclk_bclk_ratio(4)
[959564.015674] 	bclk(2822400)
[959564.015676] 	bclk_lrclk_ratio(64)
[959564.015678] 	lrclk(44100)
[959564.015680] 	tx_mask(0x3)
[959564.015682] 	rx_mask(0x3)
[959564.015684] 	slots(2)
[959564.015686] 	slot_width(32)
[959564.015688] 	lane_mask_in(0x0)
[959564.015690] 	lane_mask_out(0xf)
[959564.015692] 	lane_oe_mask_in(0x0)
[959564.015694] 	lane_oe_mask_out(0x0)
[959564.015696] 	lane_lb_mask_in(0x0)
[959564.015702] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[959564.015705] aml_tdm_set_clkdiv, div 4, clksel(2)
[959564.015713] aml_set_bclk_ratio, select I2S mode
[959564.015721] aml_tdm_hw_setting_init(), enable mclk for tdm-2
[959564.015826] aml_tdm_prepare(), reset fddr
[959564.015843] ss_prepare() 247, lvl 1
[959564.015850] spdif_a fifo ctrl, frddr:1 type:4, 24 bits, chmask 0x3, swap 0x10
[959564.015859] iec_info: rate: 44100, codec_type:0x0, channel status L:0x100, R:0x100
[959564.015865] hdmitx: audio: aout notify rate 44100
[959564.015867] hdmitx: audio: aout notify size 32
[959564.015872] hdmitx: audio: aout notify sample size 4 was 1
[959564.015875] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959564.015880] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[959564.015905] hdmitx: audio: aout notify rate 44100
[959564.015908] hdmitx: audio: aout notify size 32
[959564.015911] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959564.016158] tdm playback mute: 0, lane_cnt = 4
[959564.016331] hdmitx: sysfs set hdmi_ch to 0
[959564.016416] aml_tdm_prepare(), reset fddr
[959564.016431] ss_prepare() 247, lvl 1
[959564.016438] spdif_a fifo ctrl, frddr:1 type:4, 24 bits, chmask 0x3, swap 0x10
[959564.016445] iec_info: rate: 44100, codec_type:0x0, channel status L:0x100, R:0x100
[959564.016449] hdmitx: audio: aout notify rate 44100
[959564.016452] hdmitx: audio: aout notify size 32
[959564.016455] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959564.016459] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[959564.016475] hdmitx: audio: aout notify rate 44100
[959564.016478] hdmitx: audio: aout notify size 32
[959564.016481] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959564.016874] tdm playback mute: 0, lane_cnt = 4
[959564.019076] ss_free() lvl 1
[959564.019086] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[959564.019097] aml_tdm_hw_setting_free(), disable mclk for tdm-2
[959564.019129] tdm playback mute: 1, lane_cnt = 4
[959564.019200] audio_ddr_mngr: frddrs[1] released by device fe330000.audiobus:tdm@2
[959566.198479] input: Willie Trombone (AVRCP) as /devices/virtual/input/input43












############### Here I switch back from AAC - > SBC in developer options on Android and music starts playing normal, so it seems the AAC -> SBC transition always does the trick:






[959574.092923] aml_tdm_open opening tdm id 2
[959574.093308] audio_ddr_mngr: frddrs[1] registered by device fe330000.audiobus:tdm@2
[959574.094699] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[959574.094707] asoc aml_dai_set_tdm_fmt, 0x4001, 000000009cc193cb, id(2), clksel(2)
[959574.094709] aml_tdm_set_fmt(), fmt not change
[959574.094715] dump_pcm_setting(000000009cc193cb)
[959574.094716] 	pcm_mode(1)
[959574.094717] 	sysclk(11289600)
[959574.094719] 	sysclk_bclk_ratio(4)
[959574.094720] 	bclk(2822400)
[959574.094721] 	bclk_lrclk_ratio(64)
[959574.094722] 	lrclk(44100)
[959574.094724] 	tx_mask(0x3)
[959574.094725] 	rx_mask(0x3)
[959574.094726] 	slots(2)
[959574.094727] 	slot_width(32)
[959574.094728] 	lane_mask_in(0x0)
[959574.094729] 	lane_mask_out(0xf)
[959574.094731] 	lane_oe_mask_in(0x0)
[959574.094732] 	lane_oe_mask_out(0x0)
[959574.094733] 	lane_lb_mask_in(0x0)
[959574.094737] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[959574.094739] aml_tdm_set_clkdiv, div 4, clksel(2)
[959574.094744] aml_set_bclk_ratio, select I2S mode
[959574.094750] aml_tdm_hw_setting_init(), enable mclk for tdm-2
[959574.094835] aml_tdm_prepare(), reset fddr
[959574.094849] ss_prepare() 247, lvl 1
[959574.094854] spdif_a fifo ctrl, frddr:1 type:1, 16 bits, chmask 0x3, swap 0x10
[959574.094859] iec_info: rate: 44100, codec_type:0x0, channel status L:0x100, R:0x100
[959574.094864] hdmitx: audio: aout notify rate 44100
[959574.094866] hdmitx: audio: aout notify size 16
[959574.094868] hdmitx: audio: aout notify sample size 1 was 4
[959574.094870] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959574.094874] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[959574.094890] hdmitx: audio: aout notify rate 44100
[959574.094891] hdmitx: audio: aout notify size 16
[959574.094893] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959574.095055] tdm playback mute: 0, lane_cnt = 4
[959574.095078] aml_tdm_prepare(), reset fddr
[959574.095089] ss_prepare() 247, lvl 1
[959574.095094] spdif_a fifo ctrl, frddr:1 type:1, 16 bits, chmask 0x3, swap 0x10
[959574.095099] iec_info: rate: 44100, codec_type:0x0, channel status L:0x100, R:0x100
[959574.095103] hdmitx: audio: aout notify rate 44100
[959574.095104] hdmitx: audio: aout notify size 16
[959574.095107] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959574.095109] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[959574.095122] hdmitx: audio: aout notify rate 44100
[959574.095124] hdmitx: audio: aout notify size 16
[959574.095125] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[959574.095250] tdm playback mute: 0, lane_cnt = 4
[959574.591024] asoc-aml-card auge_sound: TDM[2] Playback enable
[959574.591033] ss_trigger() ss 3
[959574.591038] spdif_a is set to enable
[959574.591148] ss_mute() 364, mute 0, id 0
[959576.142869] input: Willie Trombone (AVRCP) as /devices/virtual/input/input44

This is probably the relevant part from the log, every time I switch from SBC → AAC I get this in dmesg and music stops playing through Vero V:



[961245.581588] asoc-aml-card auge_sound: TDM[2] Playback stop
[961245.581600] ss_mute() 364, mute 1, id 0
[961245.581608] ss_trigger() ss 3
[961245.581612] spdif_a is set to disable
[961245.581624] audio_ddr_mngr: frddr stop success, fifo id 1, regbase:0x80, arb sts:0x40000020
[961245.581674] ss_free() lvl 1
[961245.581680] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[961245.581686] aml_tdm_hw_setting_free(), disable mclk for tdm-2
[961245.581711] tdm playback mute: 1, lane_cnt = 4
[961245.581773] audio_ddr_mngr: frddrs[1] released by device fe330000.audiobus:tdm@2
[961248.265701] input: Willie Trombone (AVRCP) as /devices/virtual/input/input50

And every time I switch back from AAC → SBC I get this and music plays fine:

[961253.725850] aml_tdm_open opening tdm id 2
[961253.726820] audio_ddr_mngr: frddrs[1] registered by device fe330000.audiobus:tdm@2
[961253.729084] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[961253.729094] asoc aml_dai_set_tdm_fmt, 0x4001, 000000009cc193cb, id(2), clksel(2)
[961253.729097] aml_tdm_set_fmt(), fmt not change
[961253.729105] dump_pcm_setting(000000009cc193cb)
[961253.729108] 	pcm_mode(1)
[961253.729110] 	sysclk(11289600)
[961253.729112] 	sysclk_bclk_ratio(4)
[961253.729114] 	bclk(2822400)
[961253.729116] 	bclk_lrclk_ratio(64)
[961253.729118] 	lrclk(44100)
[961253.729120] 	tx_mask(0x3)
[961253.729122] 	rx_mask(0x3)
[961253.729124] 	slots(2)
[961253.729126] 	slot_width(32)
[961253.729129] 	lane_mask_in(0x0)
[961253.729131] 	lane_mask_out(0xf)
[961253.729133] 	lane_oe_mask_in(0x0)
[961253.729135] 	lane_oe_mask_out(0x0)
[961253.729137] 	lane_lb_mask_in(0x0)
[961253.729143] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[961253.729146] aml_tdm_set_clkdiv, div 4, clksel(2)
[961253.729154] aml_set_bclk_ratio, select I2S mode
[961253.729162] aml_tdm_hw_setting_init(), enable mclk for tdm-2
[961253.729361] aml_tdm_prepare(), reset fddr
[961253.729378] ss_prepare() 247, lvl 1
[961253.729384] spdif_a fifo ctrl, frddr:1 type:1, 16 bits, chmask 0x3, swap 0x10
[961253.729392] iec_info: rate: 44100, codec_type:0x0, channel status L:0x100, R:0x100
[961253.729397] hdmitx: audio: aout notify rate 44100
[961253.729399] hdmitx: audio: aout notify size 16
[961253.729403] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[961253.729407] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[961253.729425] hdmitx: audio: aout notify rate 44100
[961253.729427] hdmitx: audio: aout notify size 16
[961253.729429] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[961253.729595] tdm playback mute: 0, lane_cnt = 4
[961253.729624] aml_tdm_prepare(), reset fddr
[961253.729637] ss_prepare() 247, lvl 1
[961253.729642] spdif_a fifo ctrl, frddr:1 type:1, 16 bits, chmask 0x3, swap 0x10
[961253.729648] iec_info: rate: 44100, codec_type:0x0, channel status L:0x100, R:0x100
[961253.729652] hdmitx: audio: aout notify rate 44100
[961253.729654] hdmitx: audio: aout notify size 16
[961253.729657] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[961253.729661] audio_ddr_mngr: frddr_set_sharebuffer_enable share lvl: 1, dst_src: 3
[961253.729675] hdmitx: audio: aout notify rate 44100
[961253.729677] hdmitx: audio: aout notify size 16
[961253.729679] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[961253.729943] tdm playback mute: 0, lane_cnt = 4
[961254.250712] asoc-aml-card auge_sound: TDM[2] Playback enable
[961254.250721] ss_trigger() ss 3
[961254.250726] spdif_a is set to enable
[961254.250835] ss_mute() 364, mute 0, id 0
[961256.146639] input: Willie Trombone (AVRCP) as /devices/virtual/input/input51

Bump, i need to know what’s the exact bluetooth chipset on the Vero V please !

And I need to know at least whether it can be forced to default to SBC all the time if there is any sort of bluetooth codec negotiation going on.

Whole module is 8822CS.

See bluez-alsa codec selection weirdness · Issue #355 · arkq/bluez-alsa · GitHub for info on switching codecs

Ok so I made more tests and I can actually get the workaround to work even for AAC codec, so bluetooth codec is not the issue! I will close this thread and open a new one, I suspect OSMC audio routing from bluetooth to SPDIF has an issue.