Haiku cannot find any audio device

Yes. I removed that. but media_addon_server still crashed when new usb sound stick inserted.

1 Like
Debug information for team /boot/system/servers/media_addon_server (224):
CPU(s): 12x AMD Ryzen 5 5625U
Memory: 31.40 GiB total, 932.41 MiB used
Haiku revision: hrev57937+129 Dec 10 2024 21:49 (x86_64)

Active Threads:
	thread 224: media_addon_server (main)
	thread 242: _BMediaRoster_ 
	thread 243: media_addon_server control 
	thread 244: System clock control 
	thread 272: Audio Mixer control 
	thread 274: USB Audio control 
	thread 276: multi_audio audio output 
	thread 281: team 224 debug task 
	thread 277: Yeah baby, very shagadelic 
		state: Call (BTimeSource::PerformanceTimeFor: performance time too large)

		Frame		IP			Function Name
		-----------------------------------------------
		00000000	0x1961d6a4127	_kern_debugger + 0x7 
			Disassembly:
				_kern_debugger:
				0x000001961d6a4120:   48c7c0eb000000  mov $0xeb, %rax
				0x000001961d6a4127:             0f05  syscall <--

		0x7f3337696190	0x122bbf67427	BTimeSource::RealTimeFor(long, long) + 0x77 
		0x7f3337696440	0x1f73336a3c8	MixerCore::_MixThread() + 0x3d8 
		0x7f3337696450	0x1f73336ac34	MixerCore::_MixThreadEntry(void*) + 0x4 
		0x7f3337696470	0x1961d6a2e37	thread_entry + 0x17 
		00000000	0x7f4a3b0d8258	commpage_thread_exit + 0 

		Registers:
			  rip:	0x000001961d6a4129
			  rsp:	0x00007f3337696148
			  rbp:	0x00007f3337696180
			  rax:	0x00000000000000eb
			  rbx:	0x0000000001005380
			  rcx:	0x000001961d6a4129
			  rdx:	0x00007f3337695c7b
			  rsi:	0x000001961d73a52f
			  rdi:	0x00000122bbf83ad0
			   r8:	0x0000000000000000
			   r9:	0x0000000000000000
			  r10:	0x0000000000000000
			  r11:	0x0000000000000202
			  r12:	0x0000000000000000
			  r13:	0x000010ddea55db90
			  r14:	0x00007f33376962f0
			  r15:	0x00007f3337696230
			   cs:	0x002b
			   ds:	0x0000
			   es:	0x0000
			   fs:	0x0000
			   gs:	0x0000
			   ss:	0x0023
			  st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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
			ymm15:	{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

Loaded Images:
	ID		Text Base	Text End	Data Base	Data End	Type	Name
	--------------------------------------------------------------------------------
	5897	0x466a223000	0x466a224000	0x466a224000	0x466a225000	lib    	/boot/system/lib/libicudata.so.74.1
	5890	0x5c0d998000	0x5c0d9ba000	0x5c0d9ba000	0x5c0d9bd000	lib    	/boot/system/lib/libgame.so
	5906	0xb778f06000	0xb77901c000	0xb77901c000	0xb77901d000	lib    	/boot/system/lib/libzstd.so.1.5.6
	5902	0x100d2e6e000	0x100d2e7d000	0x100d2e7d000	0x100d2e7f000	lib    	/boot/system/lib/libicuio.so.74.1
	5900	0x105704e8000	0x105708ca000	0x105708ca000	0x105708e0000	lib    	/boot/system/lib/libicui18n.so.74.1
	6315	0x11b87bcc000	0x11b87be9000	0x11b87be9000	0x11b87bec000	add-on 	/boot/system/add-ons/media/hmulti_audio.media_addon
	5883	0x122bbee4000	0x122bbfa1000	0x122bbfa1000	0x122bbfad000	lib    	/boot/system/lib/libmedia.so
	5880	0x12ee309e000	0x12ee30bb000	0x12ee30bb000	0x12ee30bc000	lib    	/boot/system/runtime_loader
	5905	0x17060829000	0x1706083f000	0x1706083f000	0x17060840000	lib    	/boot/system/lib/libz.so.1.3.1
	5895	0x1961d664000	0x1961d774000	0x1961d774000	0x1961d78a000	lib    	/boot/system/lib/libroot.so
	5892	0x1964653c000	0x1964676f000	0x1964676f000	0x19646785000	lib    	/boot/system/lib/libstdc++.so.6.0.32
	5904	0x1c1157a1000	0x1c1159f9000	0x1c1159f9000	0x1c115a0d000	lib    	/boot/system/lib/libicuuc.so.74.1
	5882	0x1d49cd40000	0x1d49d075000	0x1d49d075000	0x1d49d0a3000	lib    	/boot/system/lib/libbe.so
	5881	0x1dbcb3c7000	0x1dbcb3db000	0x1dbcb3db000	0x1dbcb3dd000	app    	/boot/system/servers/media_addon_server
	6314	0x1f733353000	0x1f733374000	0x1f733374000	0x1f733377000	add-on 	/boot/system/add-ons/media/mixer.media_addon
	5918	0x1fbd8815000	0x1fbd881d000	0x1fbd881d000	0x1fbd881e000	add-on 	/boot/system/add-ons/locale/catalogs/plaintext
	5896	0x20825daf000	0x20825dce000	0x20825dce000	0x20825dcf000	lib    	/boot/system/lib/libgcc_s.so.1
	5879	0x7f4a3b0d8000	0x7f4a3b0e0000	0x00000000	0x00000000	system 	commpage

Areas:
	ID		Base		End			Size (KiB)	Protection	Locking			Name
	--------------------------------------------------------------------------------
	14305	0x60000000	0x60001000	         4	rw-cS      	none          	server_memory
	14309	0x68000000	0x68020000	       128	rw-cS      	none          	server_memory
	14040	0x466a223000	0x466a224000	         4	r-x        	none          	libicudata.so.74.1_seg0ro
	14041	0x466a224000	0x466a225000	         4	rw-        	none          	libicudata.so.74.1_seg1rw
	14014	0x5c0d998000	0x5c0d9ba000	       136	r-x        	none          	libgame.so_seg0ro
	14025	0x5c0d9ba000	0x5c0d9bd000	        12	rw-        	none          	libgame.so_seg1rw
	13994	0x716b253000	0x716b263000	        64	rw-        	none          	rld heap
	14060	0xb778f06000	0xb77901c000	      1112	r-x        	none          	libzstd.so.1.5.6_seg0ro
	14062	0xb77901c000	0xb77901d000	         4	rw-        	none          	libzstd.so.1.5.6_seg1rw
	13995	0xdd4401d000	0xdd4401e000	         4	rw-cS      	none          	_rld_debug_
	14069	0xff7c0ef000	0xff7c0f7000	        32	rw-        	none          	rld heap
	14083	0x1004010a000	0x1004011a000	        64	rw-        	none          	rld heap
	14084	0x100aeba0000	0x100aebb0000	        64	rw-        	none          	rld heap
	14086	0x100bbc11000	0x100bbc31000	       128	rw-        	none          	rld heap
	14087	0x100c3cb9000	0x100c3cd9000	       128	rw-        	none          	rld heap
	14089	0x100d0011000	0x100d1d6d000	     30064	r--S       	none          	libicuuc.so.74 mmap area
	14314	0x100d2b00000	0x100d2b01000	         4	rw-cS      	full          	__timesource_buf_1
	15061	0x100d2b65000	0x100d2b66000	         4	rw-cS      	full          	__timesource_buf_3
	15071	0x100d2b67000	0x100d2b73000	        48	rw-S       	lazy          	shared buffer list clone
	15074	0x100d2dc4000	0x100d2dca000	        24	rw-S       	full          	a cloned BBuffer
	15075	0x100d2dca000	0x100d2dd0000	        24	rw-S       	full          	a cloned BBuffer
	15076	0x100d2dd0000	0x100d2dd6000	        24	rw-S       	full          	a cloned BBuffer
	15079	0x100d2dd6000	0x100d2dd7000	         4	rw-S       	full          	__cloned_timesource_buf_3
	15093	0x100d2dd7000	0x100d2ddd000	        24	rw-S       	full          	a cloned BBuffer
	15094	0x100d2ddd000	0x100d2de3000	        24	rw-S       	full          	a cloned BBuffer
	15095	0x100d2de3000	0x100d2de9000	        24	rw-S       	full          	a cloned BBuffer
	14051	0x100d2e6e000	0x100d2e7d000	        60	r-x        	none          	libicuio.so.74.1_seg0ro
	14052	0x100d2e7d000	0x100d2e7f000	         8	rw-        	none          	libicuio.so.74.1_seg1rw
	14044	0x105704e8000	0x105708ca000	      3976	r-x        	none          	libicui18n.so.74.1_seg0ro
	14048	0x105708ca000	0x105708df000	        84	rw-        	none          	libicui18n.so.74.1_seg1rw
	14050	0x105708df000	0x105708e0000	         4	rw-        	none          	libicui18n.so.74.1_seg2rw
	14984	0x11b87bcc000	0x11b87be9000	       116	r-x        	none          	hmulti_audio.media_addon_seg0ro
	14985	0x11b87be9000	0x11b87bec000	        12	rw-        	none          	hmulti_audio.media_addon_seg1rw
	14007	0x122bbee4000	0x122bbfa1000	       756	r-x        	none          	libmedia.so_seg0ro
	14008	0x122bbfa1000	0x122bbfad000	        48	rw-        	none          	libmedia.so_seg1rw
	13992	0x12ee309e000	0x12ee30bb000	       116	r-x        	none          	runtime_loader_seg0ro
	13993	0x12ee30bb000	0x12ee30bc000	         4	rw-        	none          	runtime_loader_seg1rw
	14058	0x17060829000	0x1706083f000	        88	r-x        	none          	libz.so.1.3.1_seg0ro
	14059	0x1706083f000	0x17060840000	         4	rw-        	none          	libz.so.1.3.1_seg1rw
	14033	0x1961d664000	0x1961d774000	      1088	r-x        	none          	libroot.so_seg0ro
	14036	0x1961d774000	0x1961d782000	        56	rw-        	none          	libroot.so_seg1rw
	14037	0x1961d782000	0x1961d78a000	        32	rw-        	none          	libroot.so_seg2rw
	14028	0x1964653c000	0x1964676f000	      2252	r-x        	none          	libstdc++.so.6.0.32_seg0ro
	14031	0x1964676f000	0x1964677d000	        56	rw-        	none          	libstdc++.so.6.0.32_seg1rw
	14032	0x1964677d000	0x19646785000	        32	rw-        	none          	libstdc++.so.6.0.32_seg2rw
	14055	0x1c1157a1000	0x1c1159f9000	      2400	r-x        	none          	libicuuc.so.74.1_seg0ro
	14056	0x1c1159f9000	0x1c115a0c000	        76	rw-        	none          	libicuuc.so.74.1_seg1rw
	14057	0x1c115a0c000	0x1c115a0d000	         4	rw-        	none          	libicuuc.so.74.1_seg2rw
	14005	0x1d49cd40000	0x1d49d075000	      3284	r-x        	none          	libbe.so_seg0ro
	14006	0x1d49d075000	0x1d49d0a3000	       184	rw-        	none          	libbe.so_seg1rw
	13997	0x1dbcb3c7000	0x1dbcb3db000	        80	r-x        	none          	media_addon_server_seg0ro
	14004	0x1dbcb3db000	0x1dbcb3dd000	         8	rw-        	none          	media_addon_server_seg1rw
	14978	0x1f733353000	0x1f733374000	       132	r-x        	none          	mixer.media_addon_seg0ro
	14979	0x1f733374000	0x1f733377000	        12	rw-        	none          	mixer.media_addon_seg1rw
	14092	0x1fbd8815000	0x1fbd881d000	        32	r-x        	none          	plaintext_seg0ro
	14093	0x1fbd881d000	0x1fbd881e000	         4	rw-        	none          	plaintext_seg1rw
	14038	0x20825daf000	0x20825dce000	       124	r-x        	none          	libgcc_s.so.1_seg0ro
	14039	0x20825dce000	0x20825dcf000	         4	rw-        	none          	libgcc_s.so.1_seg1rw
	14088	0x10ddea474000	0x10ddea5d4000	      1408	rw-        	none          	heap
	15082	0x7f3337653000	0x7f3337698000	       276	rw-s       	none          	Yeah baby, very shagadelic_277_
	15067	0x7f3ddd45b000	0x7f3ddd4a0000	       276	rw-s       	none          	multi_audio audio output_276_st
	13991	0x7f4a3b0d8000	0x7f4a3b0e0000	        32	r-xSk      	full          	commpage
	14311	0x7f62532b1000	0x7f62532f6000	       276	rw-s       	none          	_BMediaRoster__242_stack
	13990	0x7f66f6d0f000	0x7f66f7d10000	     16388	rw-s       	none          	media_addon_server_224_stack
	14316	0x7fc99e4b7000	0x7fc99e4fc000	       276	rw-s       	none          	System clock control_244_stack
	14313	0x7fe3e0217000	0x7fe3e025c000	       276	rw-s       	none          	media_addon_server control_243_
	13986	0x7fea2a38e000	0x7fea2a392000	        16	rw-k       	full          	user area
	15063	0x7ff68cddb000	0x7ff68ce20000	       276	rw-s       	none          	USB Audio control_274_stack
	14981	0x7fff9f16a000	0x7fff9f1af000	       276	rw-s       	none          	Audio Mixer control_272_stack

Protection Flags: r - read, w - write, x - execute, s - stack, o - overcommit, c - cloneable, S - shared, k - kernel

Semaphores:
	ID		Count	Last Holder	Name
	------------------------------------------------------------
	1322	    0	          0	some BBlockCache lock
	1323	    0	          0	token space
	1324	    0	          0	BLooperList lock
	1325	    0	          0	AppServerLink_sLock
	1326	    0	          0	some BLocker
	1327	    0	          0	some BLocker
	1328	    0	          0	Catalog
	1329	    0	          0	LocaleRosterData
	1330	    0	          0	some BLocker
	1331	    0	          0	some BLocker
	1332	    0	          0	BMediaRoster::Roster locker
	1333	    0	          0	port pool
	1334	    0	          0	media theme lock
	1335	    0	          0	add-on manager
	1336	    0	          0	shared buffer list
	1337	    0	          0	media plugin manager
	1338	    0	          0	GameSound device lock
	1339	    0	          0	BMessageQueue Lock
	1340	    0	          0	AppLooperPort
	1417	    0	          0	screen list
	1418	    0	          0	clipboard
	1419	    0	          0	width buffer
	1420	    0	          0	BMessageQueue Lock
	1421	    0	          0	_BMediaRoster_
	1425	    0	          0	dormant node manager locker
	1426	    0	        274	time source object manager
	1430	    0	          0	BTimeSource slavenodes
	1550	    0	          0	BControllable lock
	1551	    0	          0	BTimedEventQueue locker
	1552	    0	          0	BTimedEventQueue locker
	1553	    0	          0	mixer core lock
	1554	    0	          0	mixer settings lock
	1555	    0	          0	Catalog
	1562	    0	          0	Catalog
	1566	    0	          0	BTimeSource slavenodes
	1567	    0	          0	BTimedEventQueue locker
	1568	    0	          0	BTimedEventQueue locker
	1569	    0	          0	BControllable lock
	1570	    0	          0	multi audio buffers
	1580	    3	       -277	buffer reclaim sem
	1581	    0	          0	mix thread wait

This is crash report when media_addon_server.
Strangely, the onboard sound chipset is not recognized by Haiku, so I cannot generate an error report.

1 Like

Did you report the on-board sound issue?

I didn’t. I don’t know how to report a error to Haiku developers. (My english is not good, so It takes a time to read essential document.) and on-board sound chip does not make error message, just don’t exist.

Here is where to submit a bug report.
https://dev.haiku-os.org/wiki

1 Like

https://dev.haiku-os.org/ticket/18320

Please at least post a syslog somewhere.

Hello, It’s been a long time.

I was tried to play sound on my Haiku PC. but I failed finally. Unitek Y-247A also not helped.

So, I choose more simple solution, Changing PC.

Lenovo M710q tiny is good. Sounds play well without any custom option.

I am appriciated that I watch youtube in my new haiku pc.

1 Like

Ahoy @dsscrolls

To get to use your USB sound device - any of you got - you have to select in Media Preflet

at first setting, like Sound settings on your language. Both Input and Output devices, and after bottom and right there is a button that restarts the Media services, this way activate the new device to use for sound processing. All possibly sampling rate is 48 kHz, listusb -v can show you at Sampling Freq ..... 44100, 48000 like this - if it important for you at all.

There are patches and development, those available in Haiku Nightly. If you already use Nightly, then interesting which revision, as there was a patch recently, that enabled HDMI and DP ports HD Audio Out, but caused issues with the machines chipset provided audio settings.

As I see it is an AMD Ryzen Mini PC, but on its product page I found everything, but the sound solution wasn’t detailed.
Ok as it is a Mini PC, it might be really an integrated USB and not a PCI bus connected audio device, however it is a ‘Gaming Mini PC’ .. it is interesting as it has not an HD Audio, no audio output, but just an audio jack on the rear for headphones. On the schemes or in the specs I had not found integrated speakers.

listdev command shows some Audio device which is not HDMI ?

1 Like