From owner-freebsd-usb@freebsd.org Sun Apr 30 09:35:15 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE4C4D56250 for ; Sun, 30 Apr 2017 09:35:15 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id B3DAD1E06 for ; Sun, 30 Apr 2017 09:35:15 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: by mailman.ysv.freebsd.org (Postfix) id B33DDD5624F; Sun, 30 Apr 2017 09:35:15 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2DF4D5624E for ; Sun, 30 Apr 2017 09:35:15 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:375::1:5]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 481001E05 for ; Sun, 30 Apr 2017 09:35:15 +0000 (UTC) (envelope-from Alexander@leidinger.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1493544863; bh=aIPZdQzmd3NofMDmc8gh09WPPaUe+MtkCt1Xn3TYiXQ=; h=Date:From:To:Subject; b=EBevf2WKI3J98dc9Y7p2dx7glHNykFYp+l9Upwyz9qDO4ehWJP2KoEfiNjDYxmTdS AEgYtcYlqYZPa+r8//qNcJE9ZNZoMMDmAJeRHpWgBBZ8onNDn2zyKRwVvHLg/4bxOQ dI/KjFA7mthQc1a3BtYI9mG8bxvxx1/6Ys5SMNH9qv7RqmLTmcdg51G8T5H3ekdEB4 7S+iht8yLHxaoHF1/JWdo8gTpiZraPczCAzU1SDxcJ3dwai5cEerzEMafqAVSjoaCf 1ZdrylzgPnGcVAl1P3E4hCieWJFj9ajVatZUuyWIhtsSjouaIoZXW1qjqI+vDE3k4p IHSFXJwSh830Q== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1493544911; bh=aIPZdQzmd3NofMDmc8gh09WPPaUe+MtkCt1Xn3TYiXQ=; h=Date:From:To:Subject; b=ZgrdHBh/gxzP4jfR8fQTrusx7IHPSpgR2XKMZx9rReh4ieW79sl/FntRrGhBdu++v lGsoaopS5G2SVU8W13LqZg2QN3jsiP8/5PJtft2B6NUWlNN89ze5FfVhgpj9RabfpR CWXkmhwpSPOxPVcNtpWvJgC6taSDfAEOl/3UKhvVSWjIO/qXJ2tUyiq/uTjXxld1bY dwUTmXIia8Yk2XBZFAydBLsROzsKUR6Ua8KBllsU8rDxp3CiLzzcQKk73lnTuRR1yg 5+RTXKNQCF1+lGH+rAHLesP16ugxPhFE7y7gT0RU+VjQUK2bG698IqkAJam18jGWic 3yJPvb8/9NJfQ== Date: Sun, 30 Apr 2017 11:34:22 +0200 Message-ID: <20170430113422.Horde.7udwHoKOQOINbeW7AxByIRW@webmail.leidinger.net> From: Alexander Leidinger To: usb@freebsd.org Subject: Question about usb audio device - how to select output connector User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_TFff3YVKJnOBdj9jKvzIY6O"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2017 09:35:15 -0000 This message is in MIME format and has been PGP signed. --=_TFff3YVKJnOBdj9jKvzIY6O Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I had a look at snd_uaudio and there I don't find the info I look for. What I want to do is to have 6 chanel (5.1) SPDIF output. What I don't=20= =20 understand=20is how to select the connectors. To my understanding the=20=20 soundsystem=20only sees a line out and a line in, but not all the other=20= =20 connectors.=20Looking at the output of sysctl (dev.pcm, dev.uaudio and=20= =20 hw.snd)=20doesn't give me a hint either. What I have: ---snip--- ugen5.2: at usbus5 uaudio0 on uhub4 uaudio0: on usbus5 uaudio0: Play: 48000 Hz, 4 ch, 24-bit S-LE PCM format, 2x8ms buffer. uaudio0: Play: 44100 Hz, 4 ch, 24-bit S-LE PCM format, 2x8ms buffer. uaudio0: Record: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. uaudio0: Record: 48000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. uaudio0: Record: 44100 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. uaudio0: No MIDI sequencer. pcm5: on uaudio0 uaudio0: No HID volume keys found. ---snip--- What the sound subsystem sees: ---snip--- # cat /dev/sndstat FreeBSD Audio Driver (64bit 2009061500/amd64) Installed devices: pcm0: on hdaa0 kld snd_hda=20=20 (1p:1v/1r:1v)=20default snddev flags=3D0x2e6 [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags=20=20 0x00002100,=200x00000004 interrupts 62, underruns 0, feed 62, ready 0=20=20 [b:4096/2048/2|bs:4096/2048/2] =20 channel flags=3D0x2100 {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 44100/48000,=20=20 fmt=200x00201000/0x00200010, flags 0x10000000, 0x0000002b interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:131072/4096= /32] channel flags=3D0x10000000 {userland} -> feeder_root(0x00201000) ->=20=20 feeder_format(0x00201000=20-> 0x00200010) -> feeder_volume(0x00200010)=20= =20 ->=20feeder_rate(0x00200010 q:1 44100 -> 48000) -> {hardware} [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags=20=20 0x00002100,=200x00000005 interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096=20=20 [b:4096/2048/2|bs:4096/2048/2] =20 channel flags=3D0x2100 {hardware} -> feeder_root(0x00200010) ->=20=20 feeder_mixer(0x00200010)=20-> {userland} pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 8000, fmt=20=20 0x00100008,=20flags 0x10000000, 0x00000000 interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0= /0] channel flags=3D0x10000000 {hardware} -> feeder_root(0x00000000) -> {userland} pcm1: on hdaa0 kld snd_hda (1p:1v/2r:1v) snddev flags=3D0x2e6 [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags=20=20 0x00002100,=200x00000004 interrupts 128, underruns 0, feed 128, ready 0=20=20 [b:4096/2048/2|bs:4096/2048/2] =20 channel flags=3D0x2100 {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm1:play:dsp1.p0[pcm1:virtual:dsp1.vp0]: spd 22050/48000,=20=20 fmt=200x00201000/0x00200010, flags 0x10000000, 0x0000002b interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:65536/2048/= 32] channel flags=3D0x10000000 {userland} -> feeder_root(0x00201000) ->=20=20 feeder_format(0x00201000=20-> 0x00200010) -> feeder_volume(0x00200010)=20= =20 ->=20feeder_rate(0x00200010 q:1 22050 -> 48000) -> {hardware} [pcm1:record:dsp1.r0]: spd 48000, fmt 0x00200010, flags=20=20 0x00002100,=200x00000005 interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096=20=20 [b:4096/2048/2|bs:4096/2048/2] =20 channel flags=3D0x2100 {hardware} -> feeder_root(0x00200010) ->=20=20 feeder_mixer(0x00200010)=20-> {userland} [pcm1:record:dsp1.r1]: spd 8000, fmt 0x00100008, flags=20=20 0x00000000,=200x00000000 interrupts 0, overruns 0, feed 0, hfree 65536, sfree 0=20=20 [b:65536/32768/2|bs:0/0/0] =20 channel flags=3D0x0 {hardware} -> feeder_root(0x00000000) -> {userland} pcm1:record:dsp1.r0[pcm1:virtual:dsp1.vr0]: spd 8000, fmt=20=20 0x00100008,=20flags 0x10000000, 0x00000000 interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0= /0] channel flags=3D0x10000000 {hardware} -> feeder_root(0x00000000) -> {userland} pcm2: on hdaa0 kld snd_hda (1p:1v/0r:0v) snddev=20=20 flags=3D0x2e7 [pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010, flags=20=20 0x00006100,=200x00000004 interrupts 133, underruns 0, feed 133, ready 0=20=20 [b:4096/2048/2|bs:4096/2048/2] =20 channel flags=3D0x6100 {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm2:play:dsp2.p0[pcm2:virtual:dsp2.vp0]: spd 22050/48000,=20=20 fmt=200x00201000/0x00200010, flags 0x10000000, 0x0000002b interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:65536/2048/= 32] channel flags=3D0x10000000 {userland} -> feeder_root(0x00201000) ->=20=20 feeder_format(0x00201000=20-> 0x00200010) -> feeder_volume(0x00200010)=20= =20 ->=20feeder_rate(0x00200010 q:1 22050 -> 48000) -> {hardware} pcm3: on hdaa1 kld snd_hda (1p:1v/0r:0v) snddev=20=20 flags=3D0x2e7 [pcm3:play:dsp3.p0]: spd 48000, fmt 0x00200010, flags=20=20 0x00006100,=200x00000004 interrupts 153, underruns 0, feed 153, ready 0=20=20 [b:4096/2048/2|bs:4096/2048/2] =20 channel flags=3D0x6100 {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm3:play:dsp3.p0[pcm3:virtual:dsp3.vp0]: spd 22050/48000,=20=20 fmt=200x00201000/0x00200010, flags 0x10000000, 0x0000002b interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:65536/2048/= 32] channel flags=3D0x10000000 {userland} -> feeder_root(0x00201000) ->=20=20 feeder_format(0x00201000=20-> 0x00200010) -> feeder_volume(0x00200010)=20= =20 ->=20feeder_rate(0x00200010 q:1 22050 -> 48000) -> {hardware} pcm4: on hdaa1 kld snd_hda (1p:1v/0r:0v) snddev=20=20 flags=3D0x2e7 [pcm4:play:dsp4.p0]: spd 48000, fmt 0x00200010, flags=20=20 0x00006100,=200x00000004 interrupts 437, underruns 0, feed 437, ready 0=20=20 [b:4096/2048/2|bs:4096/2048/2] =20 channel flags=3D0x6100 {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp0]: spd 22050/48000,=20=20 fmt=200x00201000/0x00200010, flags 0x10000000, 0x0000002b interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:65536/2048/= 32] channel flags=3D0x10000000 {userland} -> feeder_root(0x00201000) ->=20=20 feeder_format(0x00201000=20-> 0x00200010) -> feeder_volume(0x00200010)=20= =20 ->=20feeder_rate(0x00200010 q:1 22050 -> 48000) -> {hardware} pcm5: at ? kld snd_uaudio (1p:1v/1r:1v) snddev flags=3D0x2e2 [pcm5:play:dsp5.p0]: spd 48000, fmt 0x00200010/0x00410000,=20=20 flags=200x00002100, 0x00000046 interrupts 0, underruns 0, feed 0, ready 0=20=20 [b:9216/4608/2|bs:4096/2048/2] =20 channel flags=3D0x2100 {userland} -> feeder_mixer(0x00200010) ->=20=20 feeder_format(0x00200010=20-> 0x00201000) -> feeder_matrix(2.0 -> 4.0)=20= =20 ->=20feeder_format(0x00401000 -> 0x00410000) -> {hardware} pcm5:play:dsp5.p0[pcm5:virtual:dsp5.vp0]: spd 8000, fmt=20=20 0x00100008,=20flags 0x10000000, 0x00000000 interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] channel flags=3D0x10000000 {userland} -> feeder_root(0x00000000) -> {hardware} [pcm5:record:dsp5.r0]: spd 48000, fmt 0x00200010/0x00210000,=20=20 flags=200x00002100, 0x00000007 interrupts 0, overruns 0, feed 0, hfree 4608, sfree 4096=20=20 [b:4608/2304/2|bs:4096/2048/2] =20 channel flags=3D0x2100 =20=20=20=20=20 {hardware} -> feeder_root(0x00210000) ->=20=20 feeder_format(0x00210000=20-> 0x00200010) -> feeder_mixer(0x00200010) ->=20= =20 {userland} =20 pcm5:record:dsp5.r0[pcm5:virtual:dsp5.vr0]: spd 8000, fmt=20=20 0x00100008,=20flags 0x10000000, 0x00000000 interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0= /0] channel flags=3D0x10000000 {hardware} -> feeder_root(0x00000000) -> {userland} No devices installed from userspace. ---snip--- What I have in /dev: ---snip--- # ll /dev/(dsp|mix|snd)* crw-rw-rw- 1 root wheel 0xed 29 Apr. 17:07 /dev/dsp0.0 crw-rw-rw- 1 root wheel 0x126 29 Apr. 16:59 /dev/dsp1.0 crw-rw-rw- 1 root wheel 0x127 29 Apr. 16:59 /dev/dsp1.2 crw-rw-rw- 1 root wheel 0x124 29 Apr. 16:59 /dev/dsp2.0 crw-rw-rw- 1 root wheel 0x125 29 Apr. 16:59 /dev/dsp2.2 crw-rw-rw- 1 root wheel 0x122 29 Apr. 16:59 /dev/dsp3.0 crw-rw-rw- 1 root wheel 0x123 29 Apr. 16:59 /dev/dsp3.2 crw-rw-rw- 1 root wheel 0x120 29 Apr. 16:59 /dev/dsp4.0 crw-rw-rw- 1 root wheel 0x121 29 Apr. 16:59 /dev/dsp4.2 crw-rw-rw- 1 root wheel 0x79 25 Apr. 21:35 /dev/mixer0 crw-rw-rw- 1 root wheel 0x7e 25 Apr. 21:35 /dev/mixer1 crw-rw-rw- 1 root wheel 0x83 25 Apr. 21:35 /dev/mixer2 crw-rw-rw- 1 root wheel 0x85 25 Apr. 21:35 /dev/mixer3 crw-rw-rw- 1 root wheel 0x86 25 Apr. 21:35 /dev/mixer4 crw-rw-rw- 1 root wheel 0x10b 29 Apr. 16:53 /dev/mixer5 crw-r--r-- 1 root wheel 0x73 25 Apr. 21:35 /dev/sndstat ---snip--- Mixer settings for uaudio: ---snip--- # mixer -f /dev/mixer5 Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer line is currently set to 75:75 ---snip--- Connectors on the hardware: - front - optical out - front - mix in - front - phones - rear - spdif out - rear - center/sub out - rear - rear - rear - front - rear - line in - rear - DIN Buttons on the hardware (for completeness, not important for now): - output volume (some kind of slider) - input volume (some kind of slider) - CMSS (in Windows some kind of channel-upmix) Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_TFff3YVKJnOBdj9jKvzIY6O Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJZBa+eAAoJEKrxQhqFIICEsLEP/2XRcNkczrT00I1NiQQJ2SLA K8NmIiPs+p27L64rTFliuae+/azXLcIJ/atJxAUmHdBVerp7l3q8rMp9U+MgOHXU ZQ4f1fvSEJowKnaeWxDzIXXufFWvUJ1ynkuqCyhG011yzRE2+iqRkwwlT/v101nQ 1OoCb08B6ZJRD3yyscYGzPW5usPMmoZurpP4NCCkozenNMO1T0L2avlPwtI8A23w z+LmqBpXFbWixMw8jYwxSdhal87nm8PaaFIZBvj46boZ6h9VqUSYozSb1Ys0q9ky BmUSAREhL3hPXeSyCHC5bQvaQ2lyL+uQSYURBSfwEbyCscqzAHi6zWF/sMNFPtW3 RmgVDC95vuqX42HgD4czfO35rYmHYRxykDWbraG8YLDVioO7CHo3Qiwr1WEegucP mJjrlQHCplk8ze67lBMtaB4q9qN3e9D63Ehge6Zw2No1UWiDlPwBxSYYtlAiKLz2 EHJZ97xRx4jG+RN16a9eDAyqqeMwQFH7yEmqgceor8aH0CtDB7eIto1sFwWni0L9 Es4ZlXQ76vSugM864JGsSIN4Ld/eQ0t/FkYjtLSJVh/DGF53Q5v8S73Wje+2w/UT 2RkBlh5HsZ1t1IJmx190wCeemn3hftTNuE/lDC5vYo1tmfGv0j+zvOd9YtR4uRQu rcxQxPHFyPji3ZDJhY1G =UhOC -----END PGP SIGNATURE----- --=_TFff3YVKJnOBdj9jKvzIY6O-- From owner-freebsd-usb@freebsd.org Sun Apr 30 09:58:21 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7C90D56A7D for ; Sun, 30 Apr 2017 09:58:21 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B613B58 for ; Sun, 30 Apr 2017 09:58:18 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5FE73261860; Sun, 30 Apr 2017 11:58:14 +0200 (CEST) Subject: Re: Question about usb audio device - how to select output connector To: Alexander Leidinger , "freebsd-usb@FreeBSD.org" References: <20170430113422.Horde.7udwHoKOQOINbeW7AxByIRW@webmail.leidinger.net> From: Hans Petter Selasky Message-ID: <50fd6b50-a14b-6894-0735-fa6ed054852e@selasky.org> Date: Sun, 30 Apr 2017 11:56:21 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <20170430113422.Horde.7udwHoKOQOINbeW7AxByIRW@webmail.leidinger.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2017 09:58:21 -0000 On 04/30/17 11:34, Alexander Leidinger wrote: > Hi, > > I had a look at snd_uaudio and there I don't find the info I look for. > > What I want to do is to have 6 chanel (5.1) SPDIF output. What I don't > understand is how to select the connectors. To my understanding the > soundsystem only sees a line out and a line in, but not all the other > connectors. Looking at the output of sysctl (dev.pcm, dev.uaudio and > hw.snd) doesn't give me a hint either. > > What I have: > ---snip--- > ugen5.2: at usbus5 > uaudio0 on uhub4 > uaudio0: 1.10/1.00, addr 2> on usbus5 > uaudio0: Play: 48000 Hz, 4 ch, 24-bit S-LE PCM format, 2x8ms buffer. > uaudio0: Play: 44100 Hz, 4 ch, 24-bit S-LE PCM format, 2x8ms buffer. > uaudio0: Record: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. > uaudio0: Record: 48000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. > uaudio0: Record: 44100 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. > uaudio0: No MIDI sequencer. > pcm5: on uaudio0 > uaudio0: No HID volume keys found. > ---snip--- > > What the sound subsystem sees: > ---snip--- > # cat /dev/sndstat > FreeBSD Audio Driver (64bit 2009061500/amd64) > Installed devices: > pcm0: on hdaa0 kld snd_hda > (1p:1v/1r:1v) default > snddev > flags=0x2e6 > [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags > 0x00002100, 0x00000004 > interrupts 62, underruns 0, feed 62, ready 0 > [b:4096/2048/2|bs:4096/2048/2] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> {hardware} > pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 44100/48000, fmt > 0x00201000/0x00200010, flags 0x10000000, 0x0000002b > interrupts 0, underruns 0, feed 0, ready 0 > [b:0/0/0|bs:131072/4096/32] > channel flags=0x10000000 > {userland} -> feeder_root(0x00201000) -> > feeder_format(0x00201000 -> 0x00200010) -> feeder_volume(0x00200010) -> > feeder_rate(0x00200010 q:1 44100 -> 48000) -> {hardware} > [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags > 0x00002100, 0x00000005 > interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 > [b:4096/2048/2|bs:4096/2048/2] > channel flags=0x2100 > {hardware} -> feeder_root(0x00200010) -> > feeder_mixer(0x00200010) -> {userland} > pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 8000, fmt > 0x00100008, flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 > [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm1: on hdaa0 kld snd_hda (1p:1v/2r:1v) > snddev > flags=0x2e6 > [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags > 0x00002100, 0x00000004 > interrupts 128, underruns 0, feed 128, ready 0 > [b:4096/2048/2|bs:4096/2048/2] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> {hardware} > pcm1:play:dsp1.p0[pcm1:virtual:dsp1.vp0]: spd 22050/48000, fmt > 0x00201000/0x00200010, flags 0x10000000, 0x0000002b > interrupts 0, underruns 0, feed 0, ready 0 > [b:0/0/0|bs:65536/2048/32] > channel flags=0x10000000 > {userland} -> feeder_root(0x00201000) -> > feeder_format(0x00201000 -> 0x00200010) -> feeder_volume(0x00200010) -> > feeder_rate(0x00200010 q:1 22050 -> 48000) -> {hardware} > [pcm1:record:dsp1.r0]: spd 48000, fmt 0x00200010, flags > 0x00002100, 0x00000005 > interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 > [b:4096/2048/2|bs:4096/2048/2] > channel flags=0x2100 > {hardware} -> feeder_root(0x00200010) -> > feeder_mixer(0x00200010) -> {userland} > [pcm1:record:dsp1.r1]: spd 8000, fmt 0x00100008, flags > 0x00000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 65536, sfree 0 > [b:65536/32768/2|bs:0/0/0] > channel flags=0x0 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm1:record:dsp1.r0[pcm1:virtual:dsp1.vr0]: spd 8000, fmt > 0x00100008, flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 > [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm2: on hdaa0 kld snd_hda (1p:1v/0r:0v) > snddev > flags=0x2e7 > [pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010, flags > 0x00006100, 0x00000004 > interrupts 133, underruns 0, feed 133, ready 0 > [b:4096/2048/2|bs:4096/2048/2] > channel flags=0x6100 > {userland} -> feeder_mixer(0x00200010) -> {hardware} > pcm2:play:dsp2.p0[pcm2:virtual:dsp2.vp0]: spd 22050/48000, fmt > 0x00201000/0x00200010, flags 0x10000000, 0x0000002b > interrupts 0, underruns 0, feed 0, ready 0 > [b:0/0/0|bs:65536/2048/32] > channel flags=0x10000000 > {userland} -> feeder_root(0x00201000) -> > feeder_format(0x00201000 -> 0x00200010) -> feeder_volume(0x00200010) -> > feeder_rate(0x00200010 q:1 22050 -> 48000) -> {hardware} > pcm3: on hdaa1 kld snd_hda (1p:1v/0r:0v) > snddev > flags=0x2e7 > [pcm3:play:dsp3.p0]: spd 48000, fmt 0x00200010, flags > 0x00006100, 0x00000004 > interrupts 153, underruns 0, feed 153, ready 0 > [b:4096/2048/2|bs:4096/2048/2] > channel flags=0x6100 > {userland} -> feeder_mixer(0x00200010) -> {hardware} > pcm3:play:dsp3.p0[pcm3:virtual:dsp3.vp0]: spd 22050/48000, fmt > 0x00201000/0x00200010, flags 0x10000000, 0x0000002b > interrupts 0, underruns 0, feed 0, ready 0 > [b:0/0/0|bs:65536/2048/32] > channel flags=0x10000000 > {userland} -> feeder_root(0x00201000) -> > feeder_format(0x00201000 -> 0x00200010) -> feeder_volume(0x00200010) -> > feeder_rate(0x00200010 q:1 22050 -> 48000) -> {hardware} > pcm4: on hdaa1 kld snd_hda (1p:1v/0r:0v) > snddev > flags=0x2e7 > [pcm4:play:dsp4.p0]: spd 48000, fmt 0x00200010, flags > 0x00006100, 0x00000004 > interrupts 437, underruns 0, feed 437, ready 0 > [b:4096/2048/2|bs:4096/2048/2] > channel flags=0x6100 > {userland} -> feeder_mixer(0x00200010) -> {hardware} > pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp0]: spd 22050/48000, fmt > 0x00201000/0x00200010, flags 0x10000000, 0x0000002b > interrupts 0, underruns 0, feed 0, ready 0 > [b:0/0/0|bs:65536/2048/32] > channel flags=0x10000000 > {userland} -> feeder_root(0x00201000) -> > feeder_format(0x00201000 -> 0x00200010) -> feeder_volume(0x00200010) -> > feeder_rate(0x00200010 q:1 22050 -> 48000) -> {hardware} > pcm5: at ? kld snd_uaudio (1p:1v/1r:1v) > snddev flags=0x2e2 > [pcm5:play:dsp5.p0]: spd 48000, fmt 0x00200010/0x00410000, > flags 0x00002100, 0x00000046 > interrupts 0, underruns 0, feed 0, ready 0 > [b:9216/4608/2|bs:4096/2048/2] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> > feeder_format(0x00200010 -> 0x00201000) -> feeder_matrix(2.0 -> 4.0) -> > feeder_format(0x00401000 -> 0x00410000) -> {hardware} > pcm5:play:dsp5.p0[pcm5:virtual:dsp5.vp0]: spd 8000, fmt > 0x00100008, flags 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm5:record:dsp5.r0]: spd 48000, fmt 0x00200010/0x00210000, > flags 0x00002100, 0x00000007 > interrupts 0, overruns 0, feed 0, hfree 4608, sfree 4096 > [b:4608/2304/2|bs:4096/2048/2] > channel flags=0x2100 > {hardware} -> feeder_root(0x00210000) -> > feeder_format(0x00210000 -> 0x00200010) -> feeder_mixer(0x00200010) -> > {userland} > pcm5:record:dsp5.r0[pcm5:virtual:dsp5.vr0]: spd 8000, fmt > 0x00100008, flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 > [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > No devices installed from userspace. > ---snip--- > > What I have in /dev: > ---snip--- > # ll /dev/(dsp|mix|snd)* > crw-rw-rw- 1 root wheel 0xed 29 Apr. 17:07 /dev/dsp0.0 > crw-rw-rw- 1 root wheel 0x126 29 Apr. 16:59 /dev/dsp1.0 > crw-rw-rw- 1 root wheel 0x127 29 Apr. 16:59 /dev/dsp1.2 > crw-rw-rw- 1 root wheel 0x124 29 Apr. 16:59 /dev/dsp2.0 > crw-rw-rw- 1 root wheel 0x125 29 Apr. 16:59 /dev/dsp2.2 > crw-rw-rw- 1 root wheel 0x122 29 Apr. 16:59 /dev/dsp3.0 > crw-rw-rw- 1 root wheel 0x123 29 Apr. 16:59 /dev/dsp3.2 > crw-rw-rw- 1 root wheel 0x120 29 Apr. 16:59 /dev/dsp4.0 > crw-rw-rw- 1 root wheel 0x121 29 Apr. 16:59 /dev/dsp4.2 > crw-rw-rw- 1 root wheel 0x79 25 Apr. 21:35 /dev/mixer0 > crw-rw-rw- 1 root wheel 0x7e 25 Apr. 21:35 /dev/mixer1 > crw-rw-rw- 1 root wheel 0x83 25 Apr. 21:35 /dev/mixer2 > crw-rw-rw- 1 root wheel 0x85 25 Apr. 21:35 /dev/mixer3 > crw-rw-rw- 1 root wheel 0x86 25 Apr. 21:35 /dev/mixer4 > crw-rw-rw- 1 root wheel 0x10b 29 Apr. 16:53 /dev/mixer5 > crw-r--r-- 1 root wheel 0x73 25 Apr. 21:35 /dev/sndstat > ---snip--- > > Mixer settings for uaudio: > ---snip--- > # mixer -f /dev/mixer5 > Mixer vol is currently set to 75:75 > Mixer pcm is currently set to 75:75 > Mixer line is currently set to 75:75 > ---snip--- > > Connectors on the hardware: > - front - optical out > - front - mix in > - front - phones > - rear - spdif out > - rear - center/sub out > - rear - rear > - rear - front > - rear - line in > - rear - DIN > > Buttons on the hardware (for completeness, not important for now): > - output volume (some kind of slider) > - input volume (some kind of slider) > - CMSS (in Windows some kind of channel-upmix) > Hi, Usually this is done using the "mixer" utility. All the USB device knobs that are available which don't fit into the mixer utility are exported as sysctls. See sysctl -a | grep pcm For example: sysctl dev.pcm.5.mixer --HPS From owner-freebsd-usb@freebsd.org Sun Apr 30 21:00:53 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58242D57ED8 for ; Sun, 30 Apr 2017 21:00:53 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 36896991 for ; Sun, 30 Apr 2017 21:00:53 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v3UL01T0070104 for ; Sun, 30 Apr 2017 21:00:53 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201704302100.v3UL01T0070104@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-usb@FreeBSD.org Subject: Problem reports for freebsd-usb@FreeBSD.org that need special attention Date: Sun, 30 Apr 2017 21:00:53 +0000 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2017 21:00:53 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 213877 | xhci reset causes panic on SuperMicro A1SRi-2758F 1 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Tue May 2 14:52:52 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82683D5A30E for ; Tue, 2 May 2017 14:52:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6AC13FC6 for ; Tue, 2 May 2017 14:52:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v42Eqqp7021001 for ; Tue, 2 May 2017 14:52:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 218908] Missing usbdevs for TP-Link WN-821N v5 Date: Tue, 02 May 2017 14:52:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kuehro@posteo.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2017 14:52:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218908 --- Comment #5 from Kai-Uwe Eckhardt --- After some testing it turns out that the WN821 is kind of deaf, especially after sending. Mabey someone finds a hint in the linux driver from the vend= or at http://www.tp-link.com/us/download/TL-WN821N.html#Driver in which I found the device ID and chip set to use: /*=3D=3D=3DTPLINK ID=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/ {USB_DEVICE(0x2357, 0x0107),.driver_info =3D RTL8192E}, /* TP-Link - Cameo */ Quite possibly there are some calibration hints in the source but I didn't = spot it on a first look. I was unable to compile the driver under Linux kernel 4= .9, so I cannot test there either.=20 Kai-Uwe --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-usb@freebsd.org Fri May 5 14:57:17 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0820BD5FB28 for ; Fri, 5 May 2017 14:57:17 +0000 (UTC) (envelope-from jerrywossion@gmail.com) Received: from mail-it0-x229.google.com (mail-it0-x229.google.com [IPv6:2607:f8b0:4001:c0b::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C84FB157B for ; Fri, 5 May 2017 14:57:16 +0000 (UTC) (envelope-from jerrywossion@gmail.com) Received: by mail-it0-x229.google.com with SMTP id w68so2576787itc.0 for ; Fri, 05 May 2017 07:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=wrihXebuvO4tXIso0O1YP2XOnjZgXRfjd3+1zKgisSg=; b=mbxH2egesk+IcgBqNQFFQ4r1SkIVk0BJ/mHUV4lrmdCQrmy7XhA9M9qFfHcOi7ArRK YQlQp9PxObLl4R00pdFn6oawSClfmiZDxZ+A1ADWbrAVptUp01DVi5CzoxxGv7nABBBW u9pwyhUAFJTSSIxdYtOkS9Cerg8daTAhpbN3NPZJs57NH/ecIPHI/btG7WbIMzooP981 FZBhJLIb/jpb7ZXnX9E3iUyS5CCVQt5zTK+sx9BJSIjAQYRbeRgjuzcLfowey1F6giQ4 jDy792DP0HPprXkFliwEqrnvlS2eEQcQ3Y6bCXKLx4J8QjiGDTKbGT8R4BzRxNLylCUj gPjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wrihXebuvO4tXIso0O1YP2XOnjZgXRfjd3+1zKgisSg=; b=NiDhll83P1HijHDB12HiBQTMZZmZowDRiuRwnSLjNFMKdSaamH4Ga2qRN3RvxBKs28 eByQ/FcO/yTwmqycIfTZdIDFHmPs/ZFU04vElwaeg2d+Y/LIf4qox+YY3VFbyJzbN10z w5S15qKQdv23b8Vb+UU7zmsuDfG6BKFLBgl2cjj6lyVdNZt4Nh1tjhKiYf1hoeFHz0qM 7B08denu4ioCBOdQADb9sxZXYi2AWEsr5vGTQ9yPzB8jWEL5Te+4uEQrLDg15zM4DLcm nDOCGkFuWpt0+mxQbo5uUSk2ugwhMGGaF/+CepODLFYpkA8sKRHECQqEyz82kyqZi5AB cG9A== X-Gm-Message-State: AN3rC/5qzOoavAuGjmEjNxNYUZuCjBCwFifoihch/EiTJWT3zPQ5v8EI pJ6urHF9XXw6mjX7O8oKSylUTFn6VoqP X-Received: by 10.36.117.5 with SMTP id y5mr9523033itc.19.1493996236104; Fri, 05 May 2017 07:57:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.158.11 with HTTP; Fri, 5 May 2017 07:56:55 -0700 (PDT) From: Jie Weng Date: Fri, 5 May 2017 22:56:55 +0800 Message-ID: Subject: [GSOC] Add support for usbdump file-format to wireshark To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2017 14:57:17 -0000 Hi All, I am a student from Jilin University, China, participating in GSOC 2017 with FreeBSD. Recently my proposal has been accepted so I'd like to make a short introduction about my proposal. ---------------------------------------------------------------------------= ----------------------------------------- Project Title Add support for usbdump file-format to Wireshark Project Description The FreeBSD dump tool usbdump is very useful for analyzing the internal of USB transactions, but it lacks some easy to use presentation forms for its output file to get further analyzed. Wireshark is a widely used network packet analyzer with a good graphic presentation form. Although Wireshark support variety of data formats of many capturing tools, it does not support usbdump file-format. In this proposal I decide to add support for usbdump file-format to Wireshark, this procedure mainly contain following aspects: a. Parse the usbdump file-format. To do this I should learn the Berkeley Packet Filter (BPF) since usbdump uses it behind the scene. b. Add support to Wireshark=E2=80=99s wiretap library. The wiretap library = handles a number of formats it supports, by hacking into it I can add support for the usbdump file-format. c. Add dissector, filter and other stuffs to Wireshark for our newly supported file-format to offer normal/good user experience. ---------------------------------------------------------------------------= ----------------------------------------- This is the first time for me to get involved in an open source project, I'll learn hard to catch up things I don't understand yet, and your advice will be very appreciated :) Best regards, Jie