User Details
- User Since
- Nov 25 2021, 6:20 PM (139 w, 1 d)
Today
Could we add this field to the test in D45901?
Yesterday
Shouldn't we select the snd_dummy device for our mixer tests?
Current default could be set to any device, with not all features available that we want to test. Or am I missing something?
Mon, Jul 22
Don't see anything suspicious, no regressions in my (brief) tests.
Sun, Jul 21
For the deprecated argument interfaces of the mute (1, 0, ^) and recsrc
(+, -, =, ^) controls,
Fri, Jul 19
Thu, Jul 18
Did some brief tests, looks good to me.
Wed, Jul 17
Sun, Jul 14
I know it's WIP, but it would be nice to have a brief comment or description somewhere, to document what is and what is not implemented / working.
This file should probably also be added to share/examples/Makefile?
Fails to build - I think the path changes have to be reflected in share/examples/Makefile.
Fri, Jul 12
Mon, Jul 8
Sun, Jul 7
Sat, Jul 6
This fixes the panic for me, thank you.
Ok, it's not a regression - same panic on the main branch as of yesterday:
Fri, Jul 5
I get the following panic, but I may be missing some commit - any prerequisites for this?
Is there a test / application available to run this? I'd like to check the return values for my setup.
Thu, Jul 4
Looks good to me, in my tests with ossinfo this returns the expected sample rate values.
You may want to simplify the direction check and error handling on occasion and consolidate it with DSP_FIXUP_ERROR(), but that's not strictly necessary.
Wed, Jul 3
Also, in case the device is playback only or recording only, we don't return an error either for a duplex request. The channel allocation part in dsp_open() is explicitly designed to only return an error when there would be no channel at all.
Further discussion about the simplex check in D45835.
Overall approach is good, except we shouldn't fail for simplex when duplex is requested. Generic applications will not be prepared to handle this error, but will usually check the results of other operations (ioctl etc). Just search the channels for an already used direction in that case, or decide for one. And then make sure we don't try to allocate the opposite direction.
Mon, Jul 1
Sun, Jun 30
See the inline comment. I found only one hardware driver that sets the SD_F_SIMPLEX, the snd_solo(8) which is quite "retro", and the driver is compiled in duplex mode by default. Other uses of SD_F_SIMPLEX do not require any tie-breaking I think, but please double-check.
Sat, Jun 29
What are the requirements for the unit argument to make_dev()? Should it be unique? We're always producing the same unit number in seq_addunit() now.
Could you give some explanation for the hw.snd.feeder_rate_round logic?
I don't think that value affects the vchans capability for sample rate conversions. When I test with ossinfo now, it always returns the hardware sample rates for all of SNDCTL_AUDIOINFO, SNDCTL_AUDIOINFO_EX and SNDCTL_ENGINEINFO, since feeder_rate_round > 0 by default. And I can play a 96kHz sound just fine on a 48kHz only hardware, so vchan sample rate conversion works with feeder_rate_round > 0.
Thu, Jun 27
Sorry for the delay, had some serious outage due to virus infection (me, not my machines). Just to make sure, this is for the SNDCTL_ENGINEINFO case, right?
Jun 20 2024
Jun 18 2024
Jun 7 2024
I couldn't build the test program, missing some symbols like FreeBSD_nvlist_exists? How is an application supposed to consume this?
May 23 2024
May 22 2024
In my tests this worked as expected with unavailable devices, both in mixer(8) and audio/oss ossinfo.
All in all the output shows up correctly now in ossinfo, except for the issues already mentioned here.
May 20 2024
The patch is fine as is, but it does not fully address the issue described in the commit message, only D45256 does actually resolve it. You could either merge the two commits (and commit messages) when D45256 is ready, or adapt the commit messages to describe what part of the issue is addressed in each.
Uhm, sorry again, how do I take back the review accepted and change requested flags?
Sorry, this was meant for D45150, "Login to comment" took me to the wrong page.
The patch is fine as is, but it does not fully address the issue described in the commit message, only D45256 does actually resolve it. You could either merge the two commits (and commit messages) when D45256 is ready, or adapt the commit messages to describe what part of the issue is addressed in each.
May 18 2024
The current check is never false and If nvlist_unpack(), we might panic later down the road.
May 12 2024
May 11 2024
May 10 2024
This is ok as is, but it has the same problem as SNDCTL_MIXERINFO: We should consider returning "blank" oss_card_info structs for unavailable devices / device indices, instead of an error. Current implementation breaks audio/oss and probably kodi when devices are unavailable, since they stop iterating the SNDCTL_CARDINFO indices if there's an error. There is no enabled in oss_card_info to signal that a device is unavailable, but the info is mostly descriptive. We could return "unavailable" or something like that in the strings, which would hopefully be picked up by the application and shown to the user.