Re: [Alsa-user] Phonic HB12U: issues during simultaneous playback and record
Looks like I've found it! For a proper fix, I need some guidance, though: On 21/08/2018 19:52, Andreas Böhler wrote: > Hey, > > a few weeks ago I already wrote to this list regarding a recording issue > with the Phonic Helix Board 12 Universal which could be resolved by > using Jack as backend. > > This time, I need playback to work simultaneously and I've got some > rather strange issues. > It turned out that setting the sample rate is a bit special here: Sample Rates must be set while the interface is active, and they must be always set. If one interface is brought down, the sample rate setting is gone, even if the device reports the correct sample rate. To test this, I modified set_sample_rate_v2 in sound/usb/clock.c and removed two if-clauses. How should a proper fix look like? I didn't find a similar quirk or an existing mechanism for a quirk like this. However, it only fixes full duplex for Ardour (no matter what the backend is!), but still disables sound output in PulseAudio if pavucontrol is closed. When this happens, the capture interface is closed and the device forgets the sample rate also for the playback substream. I suppose that setting the sample rate at this stage would bring playback back (untested, since I don't know how to implement that). Regards, Andreas -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] Phonic HB12U: issues during simultaneous playback and record
Hey, On 21/08/2018 19:52, Andreas Böhler wrote: > a few weeks ago I already wrote to this list regarding a recording issue > with the Phonic Helix Board 12 Universal which could be resolved by > using Jack as backend. > > This time, I need playback to work simultaneously and I've got some > rather strange issues. > > On the desktop, I usually use PulseAudio as a sound server. For whatever > reason, I can only play sound on this particular device while > pavucontrol is running! If I close pavucontrol, about five seconds later > sound is muted, i.e. I cannot hear anything while the player still plays. > > As soon as I open pavucontrol again, sound output is restored (it takes > 2-3 seconds for the full volume to be restored, it is immediately > audible on very low volume as soon as pavucontrol is opened). To follow up on this: I posted to the pulseaudio-discuss list as well and got an immediate reply from Takashi Sakamoto, who owns a device with the same chipset [1] and was able to reproduce my issue. According to him, it is a quirk in the device that needs fixing in the driver. I'm quoting his reply here: > When opening 'pavucontrol' or execute 'arecord', PCM substream is opened for > capturing direction. Endpoint of the device is configured to tranmit data > packet. Then, you can hear sound. This means that the device has a quirk in a > point of generating sound. > > However, I can also see no quirk in a situation that: > 1. stop any PCM substream relevant to the device at first > 2. then start playback PCM substream > 3. start no capture PCM substream > > This situation transits by starting/stopping capture PCM substream > 4. start capture PCM substream > (still hear sound) > 5. stopping capture PCM substream > (hear no sound even if playback PCM substream runs) > 6. start capture PCM substream > (hear sound again) > > Anyway, this is an issue of snd-usb-audio driver and a quirk of your > device, irrelevant to pulseaudio. It's better to post to alsa-devel > instead of pulseaudio-discuss. I assume that a quirk could consist of having the PCM capture stream *always* opened. Could somebody guide me into fixing this, since I'm not very familiar with the Linux audio subsystem. Thanks, Andreas [1] https://lists.freedesktop.org/archives/pulseaudio-discuss/2018-August/030470.html -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] Phonic HB12U: issues during simultaneous playback and record
Hey, a few weeks ago I already wrote to this list regarding a recording issue with the Phonic Helix Board 12 Universal which could be resolved by using Jack as backend. This time, I need playback to work simultaneously and I've got some rather strange issues. On the desktop, I usually use PulseAudio as a sound server. For whatever reason, I can only play sound on this particular device while pavucontrol is running! If I close pavucontrol, about five seconds later sound is muted, i.e. I cannot hear anything while the player still plays. As soon as I open pavucontrol again, sound output is restored (it takes 2-3 seconds for the full volume to be restored, it is immediately audible on very low volume as soon as pavucontrol is opened). Using Ardour, the symptoms are: * Playback works only using ALSA directly (but recording doesn't) * Recording only works using JACK (but playback doesn't) Next, I tried Audacious with different output plugins: * It plays back using Jack * It plays back using ALSA * It plays back using pulse, but only if pavucontrol is running Then, I started Audacious with the Jack backend and started Ardour at the same time. Now I can play sound using Ardour, but I cannot record. For the sake of completeness: Linux 4.14.63 on Arch Ardour 5.12 Jack 0.5.3 Audacious 3.9 What is wrong with my device? Thank you, Andreas Böhler -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Phonic Helix Board 12 Universal: Recording is silent
On 04/07/18 22:58, Ralf Mardorf wrote: On Wed, 4 Jul 2018 22:53:33 +0200, Ralf Mardorf wrote: On Wed, 4 Jul 2018 22:37:36 +0200, Andreas Böhler wrote: The device does not work when the sample rate is changed using Ardour. Are you using Ardour with plain ALSA or with jack using the ALSA backend? Some audio device only work when using jack. ^ with Ardour When using other software the same audio device could be used with plain ALSA. This is a known issue. Directly using ALSA - and that was the problem! Using Jack, it works. I could've thought of trying that earlier, since I had FireWire devices that were only supported using Jack for years. Sorry for the noise and thanks for the help, seems to be an Ardour/ALSA issue then. Regards, Andreas -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Phonic Helix Board 12 Universal: Recording is silent
On 03/07/18 10:10, Clemens Ladisch via Alsa-user wrote: Andreas Böhler wrote: On 02/07/18 23:02, Clemens Ladisch via Alsa-user wrote: Andreas Böhler wrote: all recordings are completely silent Please show the output of "amixer -c2". There is no output at all. "alsamixer -c2" reports "This sound device does not have any controls." Then there isn't much that could be done in software. It's possible that this devices requires a vendor-specific Windows driver that knows some secret command to make it behave. In the meantime, I debugged this a bit further, comparing Wireshark traces from Windows and Linux - with not relevant difference. Then, I tried recording again using a different program (Audacity) and, to my surprise, it worked. I immediately tried it again using Ardour with 44.100Hz and - it worked. However, after changing the sample rate *in Ardour*, it records only silence *in Ardour*. Audacity is still able to record. If I change the sample rate in Audacity, it works properly. If I start Ardour immediately, without starting Audacity before, it does not work (silence). To sum up: The device does not work when the sample rate is changed using Ardour. Audacity has to be started once before the device becomes usable. Do you have any ideas what might be wrong? Thanks, Andreas -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Phonic Helix Board 12 Universal: Recording is silent
On 02/07/18 23:02, Clemens Ladisch via Alsa-user wrote: > Andreas Böhler wrote: >> all recordings are completely silent > > Please show the output of "amixer -c2". There is no output at all. "alsamixer -c2" reports "This sound device does not have any controls." Thanks, Andreas -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] Phonic Helix Board 12 Universal: Recording is silent
Hey, I've got a Phonic Helix Board 12 Universal USB/FireWire Mixer (combination of analog mixer + multitrack soundcard). After performing a firmware upgrade, the kernel happily loads the USB Audio Class 2.0 interface driver for it. I can select it for recording in Ardour, but all recordings are completely silent (playback works perfectly fine). Since the device also has a FireWire port, I tried the FireWire connection: Recordings work flawlessly. I'm using ALSA drivers from Linux 4.17.3. Does anybody have experience with this device or similar behavior? I reported this as a kernel bug some time ago at https://bugzilla.kernel.org/show_bug.cgi?id=199791 where you can also find lsusb output and information from /proc/asound/card2/stream0. If needed, I can also provide Wireshark traces from Windows (=working) and Linux (=recording silent). Thank You, Andreas -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user