Page MenuHomeFreeBSD

christos (Christos Margiolis)
User

Projects

User Details

User Since
Jul 2 2021, 4:03 PM (150 w, 2 d)

Recent Activity

Today

christos updated the diff for D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*.

Address brooks' comments.

Sun, May 19, 6:56 PM
christos retitled D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS* from sound: Check user-supplied size passed to sndstat_ioctl() to sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*.
Sun, May 19, 6:56 PM
christos added inline comments to D45164: sound: Separate implementations for SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO.
Sun, May 19, 6:26 PM
christos added inline comments to D45164: sound: Separate implementations for SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO.
Sun, May 19, 6:20 PM

Yesterday

christos added a comment to D45237: sound: Correctly check nvlist_unpack() error.

The current check is never false and If nvlist_unpack(), we might panic later down the road.

Commit message should probably be "... if nvlist_unpack() fails, ..."?

Sat, May 18, 1:28 AM
christos requested review of D45238: snd_hda: Add patch for Asus UX331UAL.
Sat, May 18, 12:07 AM

Fri, May 17

christos added inline comments to D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*.
Fri, May 17, 11:22 PM
christos added a reviewer for D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*: brooks.
Fri, May 17, 10:51 PM
christos updated the diff for D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*.

Address brooks' comment.

Fri, May 17, 10:48 PM
christos updated the test plan for D45237: sound: Correctly check nvlist_unpack() error.
Fri, May 17, 10:40 PM
christos requested review of D45237: sound: Correctly check nvlist_unpack() error.
Fri, May 17, 10:39 PM
christos added a comment to D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*.

You need to decide the type of data based on the command passed before you examine it so you'll need a case statement before the tests. I'd also tend not to assign the arg/arg32 until you've decided the type. Additionally, data will be NULL for at least SNDSTIOC_REFRESH_DEVS and SNDSTIOC_FLUSH_USER_DEVS,

Fri, May 17, 10:32 PM
christos added a reviewer for D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*: imp.
Fri, May 17, 9:38 PM
christos added inline comments to D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*.
Fri, May 17, 9:37 PM
christos updated the test plan for D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*.
Fri, May 17, 9:36 PM
christos requested review of D45236: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*.
Fri, May 17, 9:33 PM
christos committed rGa19d42b08a40: sound: Remove ncards variable from sound_oss_card_info() (authored by christos).
sound: Remove ncards variable from sound_oss_card_info()
Fri, May 17, 7:34 PM
christos committed rG7814ed2bd321: snd_hda: Rename LENOVO_I* to LENOVO_IDEAPAD* (authored by christos).
snd_hda: Rename LENOVO_I* to LENOVO_IDEAPAD*
Fri, May 17, 7:34 PM
christos committed rG9a620018afb2: snd_hda: Add patch for Lenovo Ideapad 3 (authored by christos).
snd_hda: Add patch for Lenovo Ideapad 3
Fri, May 17, 7:34 PM
christos committed rG15aa8688d036: sound: Rename oss_audioinfo->real_device to oss_audioinfo->legacy_device (authored by christos).
sound: Rename oss_audioinfo->real_device to oss_audioinfo->legacy_device
Fri, May 17, 7:34 PM
christos committed rG8bd14f511efa: sound: Add missing oss_mixerinfo devnode and legacy_device fields (authored by christos).
sound: Add missing oss_mixerinfo devnode and legacy_device fields
Fri, May 17, 7:34 PM
christos committed rG2b3698288771: sound: Fix oss_sysinfo->numcards (authored by christos).
sound: Fix oss_sysinfo->numcards
Fri, May 17, 7:34 PM
christos committed rG8b4e2ba31d1b: sound: Remove nmix variable from mixer_oss_mixerinfo() (authored by christos).
sound: Remove nmix variable from mixer_oss_mixerinfo()
Fri, May 17, 7:34 PM
christos committed rG71b9b8d34bb7: arm: Remove stray references to dev/sound/chip.h (authored by christos).
arm: Remove stray references to dev/sound/chip.h
Fri, May 17, 7:34 PM
christos committed rG00f9d84ee207: sound: Update pcm/vchan.c LICENSE header (authored by christos).
sound: Update pcm/vchan.c LICENSE header
Fri, May 17, 7:34 PM
christos committed rG17a50abe0e19: sound: Remove unused "num" argument from chn_init() and related callers (authored by christos).
sound: Remove unused "num" argument from chn_init() and related callers
Fri, May 17, 7:34 PM
christos committed rGab7c01f9e82c: sound: Move vchan-related code to pcm/vchan.* (authored by christos).
sound: Move vchan-related code to pcm/vchan.*
Fri, May 17, 7:34 PM
christos committed rG99e372420df4: sound: Rename pcm_getparentchannel() to vchan_getparentchannel() (authored by christos).
sound: Rename pcm_getparentchannel() to vchan_getparentchannel()
Fri, May 17, 7:34 PM
christos committed rG00b0cbf98bb7: sound: Use nitems() where possible (authored by christos).
sound: Use nitems() where possible
Fri, May 17, 7:34 PM
christos committed rG6f6cc9324131: sound: Remove unused dsp_cdevs[] fields and devices (authored by christos).
sound: Remove unused dsp_cdevs[] fields and devices
Fri, May 17, 7:33 PM
christos committed rGe14f7d11cb2f: sound: Move chip.h contents to pcm/sound.h (authored by christos).
sound: Move chip.h contents to pcm/sound.h
Fri, May 17, 7:33 PM
christos committed rGd1eaefde3bca: sound: Remove hw.snd.version and SND_DRV_VERSION (authored by christos).
sound: Remove hw.snd.version and SND_DRV_VERSION
Fri, May 17, 7:33 PM
christos committed rG2c53a4bbcb17: sound: Convert pcm_chn_add() to void (authored by christos).
sound: Convert pcm_chn_add() to void
Fri, May 17, 7:33 PM
christos committed rGe6e7bf7087fb: sound: Add __assert_unreachable() to default cases in pcm_chn_add() and… (authored by christos).
sound: Add __assert_unreachable() to default cases in pcm_chn_add() and…
Fri, May 17, 7:33 PM
christos committed rG13ee4d7f332e: sound: Merge pcm_chn_create() and chn_init() (authored by christos).
sound: Merge pcm_chn_create() and chn_init()
Fri, May 17, 7:33 PM
christos committed rG0baaaf8543d5: sound: Remove chn_timeout check from chn_init() (authored by christos).
sound: Remove chn_timeout check from chn_init()
Fri, May 17, 7:33 PM
christos committed rG930b5a3c07f2: sound: Move pcm_chnref() and pcm_chnrelease() to pcm/channel.c (authored by christos).
sound: Move pcm_chnref() and pcm_chnrelease() to pcm/channel.c
Fri, May 17, 7:32 PM
christos committed rG532b1efd2d2e: sound: Merge pcm_chn_destroy() and chn_kill() (authored by christos).
sound: Merge pcm_chn_destroy() and chn_kill()
Fri, May 17, 7:32 PM
christos committed rGad677fb457bb: sound: Retire unit.* (authored by christos).
sound: Retire unit.*
Fri, May 17, 7:32 PM
christos committed rG41dee6355556: sound: Remove obsolete DV_F_* flags (authored by christos).
sound: Remove obsolete DV_F_* flags
Fri, May 17, 7:32 PM
christos committed rG98157281725b: sound: Simplify unit fetching in dsp_oss_audioinfo() (authored by christos).
sound: Simplify unit fetching in dsp_oss_audioinfo()
Fri, May 17, 7:32 PM
christos committed rGdecc224ab899: sound: Remove PCMMINOR() (authored by christos).
sound: Remove PCMMINOR()
Fri, May 17, 7:32 PM
christos committed rGd27972ec911d: sound: Get rid of snddev_info->devcount (authored by christos).
sound: Get rid of snddev_info->devcount
Fri, May 17, 7:32 PM
christos committed rG69707d9f5091: sound: Call device_get_name() and device_get_unit() only once in mixer_init() (authored by christos).
sound: Call device_get_name() and device_get_unit() only once in mixer_init()
Fri, May 17, 7:31 PM
christos committed rG8771127d75a1: sound: Be more verbose with virtual channel descriptions (authored by christos).
sound: Be more verbose with virtual channel descriptions
Fri, May 17, 7:31 PM

Tue, May 14

christos committed rG305db91d4b92: sound: Remove ncards variable from sound_oss_card_info() (authored by christos).
sound: Remove ncards variable from sound_oss_card_info()
Tue, May 14, 1:43 PM
christos committed rG54cc353f505d: snd_hda: Add patch for Lenovo Ideapad 3 (authored by christos).
snd_hda: Add patch for Lenovo Ideapad 3
Tue, May 14, 1:43 PM
christos committed rG278953360e0e: snd_hda: Rename LENOVO_I* to LENOVO_IDEAPAD* (authored by christos).
snd_hda: Rename LENOVO_I* to LENOVO_IDEAPAD*
Tue, May 14, 1:43 PM
christos closed D45144: sound: Remove ncards variable from sound_oss_card_info().
Tue, May 14, 1:43 PM
christos closed D45105: snd_hda: Rename LENOVO_I* to LENOVO_IDEAPAD*.
Tue, May 14, 1:43 PM
christos closed D45100: snd_hda: Add patch for Lenovo Ideapad 3.
Tue, May 14, 1:42 PM

Sat, May 11

christos added inline comments to D45164: sound: Separate implementations for SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO.
Sat, May 11, 5:12 PM
christos updated the test plan for D45164: sound: Separate implementations for SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO.
Sat, May 11, 5:10 PM
christos updated the test plan for D45164: sound: Separate implementations for SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO.
Sat, May 11, 5:10 PM
christos requested review of D45164: sound: Separate implementations for SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO.
Sat, May 11, 5:08 PM
christos added a comment to D45150: sound: Fix oss_sysinfo->nummixers.

Also it seems like this fallback mechanism is needed by a few other ioctls, so I think it's better to fix all of them in a single patch.

Sat, May 11, 4:34 PM
christos added a comment to D45150: sound: Fix oss_sysinfo->nummixers.

@dev_submerge.ch Can you test that this and D45151 fix the problem? I cannot reproduce it right now.

The mixer does see devices now that come after the unavailable ones. But it shows no device description for it.

We're missing a piece of the puzzle, as mixer_oss_mixerinfo() still skips unavailable devices. Which means SNDCTL_MIXERINFO returns an error instead of a device with enabled == 0, thus breaking the ossinfo utility from audio/oss, and probably other software using the same approach.

Sat, May 11, 3:22 PM

Fri, May 10

christos added a comment to D45150: sound: Fix oss_sysinfo->nummixers.

@dev_submerge.ch Can you test that this and D45151 fix the problem? I cannot reproduce it right now.

Fri, May 10, 4:50 PM
christos requested review of D45154: mixer.3: Showcase example of how to loop through all mixers.
Fri, May 10, 4:49 PM
christos requested review of D45151: mixer(8): Ignore mixer_open() failures for the -a option.
Fri, May 10, 4:42 PM
christos requested review of D45150: sound: Fix oss_sysinfo->nummixers.
Fri, May 10, 4:42 PM
christos added a comment to D45144: sound: Remove ncards variable from sound_oss_card_info().

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.

Fri, May 10, 3:40 PM

Thu, May 9

christos requested review of D45144: sound: Remove ncards variable from sound_oss_card_info().
Thu, May 9, 8:08 PM
christos committed rG24d5cc14dd60: sound: Rename oss_audioinfo->real_device to oss_audioinfo->legacy_device (authored by christos).
sound: Rename oss_audioinfo->real_device to oss_audioinfo->legacy_device
Thu, May 9, 7:09 PM
christos committed rGe6df8c379b0c: sound: Add missing oss_mixerinfo devnode and legacy_device fields (authored by christos).
sound: Add missing oss_mixerinfo devnode and legacy_device fields
Thu, May 9, 7:09 PM
christos committed rG59d98edae3e1: sound: Fix oss_sysinfo->numcards (authored by christos).
sound: Fix oss_sysinfo->numcards
Thu, May 9, 7:09 PM
christos closed D45138: sound: Rename oss_audioinfo->real_device to oss_audioinfo->legacy_device.
Thu, May 9, 7:09 PM
christos committed rG2f31a5eb75f1: sound: Remove nmix variable from mixer_oss_mixerinfo() (authored by christos).
sound: Remove nmix variable from mixer_oss_mixerinfo()
Thu, May 9, 7:09 PM
christos closed D45137: sound: Add missing oss_mixerinfo devnode and legacy_device fields.
Thu, May 9, 7:09 PM
christos closed D45136: sound: Fix oss_sysinfo->numcards.
Thu, May 9, 7:09 PM
christos closed D45135: sound: Remove nmix variable from mixer_oss_mixerinfo().
Thu, May 9, 7:09 PM
christos added a comment to D45135: sound: Remove nmix variable from mixer_oss_mixerinfo().

Maybe unrelated to this particular piece of code, but I did some tests with two USB sound cards. When I remove the first one (pcm0), the mixer application reveals some flaws:

<flo@current:~> mixer -a
mixer: /dev/mixer0: no such mixer

<flo@current:~> mixer
pcm1:mixer: (play/rec) (default)
    vol       = 0.75:0.75     pbk
    pcm       = 0.75:0.75     pbk

Note that while the mixer default pcm is correct (pcm1), there's no sound card identifier like when I have both plugged in:

<flo@current:~> mixer -a
pcm0:mixer: <Roland EDIROL UA-25EX> on uaudio0 (play/rec)
    vol       = 0.75:0.75     pbk
    pcm       = 0.75:0.75     pbk
pcm1:mixer: <RME Babyface (23607206)> on uaudio1 (play/rec) (default)
    vol       = 0.75:0.75     pbk
    pcm       = 0.75:0.75     pbk

<flo@current:~> mixer
pcm1:mixer: <RME Babyface (23607206)> on uaudio1 (play/rec) (default)
    vol       = 0.75:0.75     pbk
    pcm       = 0.75:0.75     pbk

Possibly related bug report.

Thu, May 9, 4:55 PM
christos added a comment to D45135: sound: Remove nmix variable from mixer_oss_mixerinfo().
Thu, May 9, 4:48 PM
christos accepted D45112: snd_hdsp(4): RME HDSP 9632 and HDSP 9652 sound card driver..

I do not really have the hardware to test the driver, but the code looks good to me at a first glance.

Thu, May 9, 4:39 PM
christos added a comment to D45135: sound: Remove nmix variable from mixer_oss_mixerinfo().

Regarding the race, it maybe be very hard to hit it

I just mean that I think the race doesn't even matter because the issue is identical if you remove the device any time prior to the mixer_oss_mixerinfo call?

Thu, May 9, 2:45 PM
christos added a comment to D45135: sound: Remove nmix variable from mixer_oss_mixerinfo().

This seems sensible; I'd expect mixer 1 to refer to /dev/mixer1 not whatever the second mixer happens to be. I don't think a race condition like you describe is even required, right? Removing the device providing /dev/mixer0 means the system will always be in this state?

Thu, May 9, 2:37 PM

Wed, May 8

christos requested review of D45138: sound: Rename oss_audioinfo->real_device to oss_audioinfo->legacy_device.
Wed, May 8, 11:45 PM
christos updated the diff for D45137: sound: Add missing oss_mixerinfo devnode and legacy_device fields.

s/real_device/legacy_device/

Wed, May 8, 11:36 PM
christos retitled D45137: sound: Add missing oss_mixerinfo devnode and legacy_device fields from sound: Add missing oss_mixerinfo devnode and real_device fields to sound: Add missing oss_mixerinfo devnode and legacy_device fields.
Wed, May 8, 11:36 PM
christos updated the diff for D45137: sound: Add missing oss_mixerinfo devnode and legacy_device fields.

Update commit message and filler size according to most recent soundcard.h
version.

Wed, May 8, 11:29 PM
christos updated the summary of D45137: sound: Add missing oss_mixerinfo devnode and legacy_device fields.
Wed, May 8, 11:29 PM
christos added inline comments to D45137: sound: Add missing oss_mixerinfo devnode and legacy_device fields.
Wed, May 8, 11:23 PM
christos added inline comments to D45137: sound: Add missing oss_mixerinfo devnode and legacy_device fields.
Wed, May 8, 11:21 PM
christos added inline comments to D45137: sound: Add missing oss_mixerinfo devnode and legacy_device fields.
Wed, May 8, 11:14 PM
christos requested review of D45137: sound: Add missing oss_mixerinfo devnode and legacy_device fields.
Wed, May 8, 11:08 PM
christos requested review of D45136: sound: Fix oss_sysinfo->numcards.
Wed, May 8, 10:47 PM
christos updated the summary of D45135: sound: Remove nmix variable from mixer_oss_mixerinfo().
Wed, May 8, 10:24 PM
christos requested review of D45135: sound: Remove nmix variable from mixer_oss_mixerinfo().
Wed, May 8, 10:23 PM

Mon, May 6

christos added a comment to D45100: snd_hda: Add patch for Lenovo Ideapad 3.

I couldn't find a useful reference for a name elsewhere so I think it's fine, although I might go with LENOVO_IDEAPAD3_SUBVENDOR

I chose I3 instead of IDEAPAD3 so as to follow the convention used for LENOVO_I330_SUBVENDOR, which is used for Ideapad 330.

I propose to make a follow-up patch to change both to IDEAPAD*.

Mon, May 6, 7:40 PM
christos requested review of D45105: snd_hda: Rename LENOVO_I* to LENOVO_IDEAPAD*.
Mon, May 6, 7:40 PM
christos committed rGa3513995f549: arm: Remove stray references to dev/sound/chip.h (authored by christos).
arm: Remove stray references to dev/sound/chip.h
Mon, May 6, 7:36 PM
christos added a comment to D45100: snd_hda: Add patch for Lenovo Ideapad 3.

I couldn't find a useful reference for a name elsewhere so I think it's fine, although I might go with LENOVO_IDEAPAD3_SUBVENDOR

Mon, May 6, 7:27 PM
christos updated the diff for D45100: snd_hda: Add patch for Lenovo Ideapad 3.

Since the user told me his exact laptop model is:
Lenovo Ideapad 3 17IAU7
CPU: 12th Gen Intel(R) Core(TM) i3-1215U

Mon, May 6, 6:54 PM
christos retitled D45100: snd_hda: Add patch for Lenovo Ideapad 3 from snd_hda: Add patch for Lenovo Ideapad 2 to snd_hda: Add patch for Lenovo Ideapad 3.
Mon, May 6, 6:53 PM
christos committed rG2b14465faa8d: sound: Update pcm/vchan.c LICENSE header (authored by christos).
sound: Update pcm/vchan.c LICENSE header
Mon, May 6, 6:48 PM
christos committed rG3af2beb8b24b: sound: Remove unused "num" argument from chn_init() and related callers (authored by christos).
sound: Remove unused "num" argument from chn_init() and related callers
Mon, May 6, 6:39 PM
christos committed rG77ab4263bc42: sound: Rename pcm_getparentchannel() to vchan_getparentchannel() (authored by christos).
sound: Rename pcm_getparentchannel() to vchan_getparentchannel()
Mon, May 6, 6:39 PM
christos closed D45095: sound: Remove unused "num" argument from chn_init() and related callers.
Mon, May 6, 6:39 PM
christos committed rG7ad5f383fcb5: sound: Move vchan-related code to pcm/vchan.* (authored by christos).
sound: Move vchan-related code to pcm/vchan.*
Mon, May 6, 6:38 PM
christos closed D45016: sound: Rename pcm_getparentchannel() to vchan_getparentchannel().
Mon, May 6, 6:38 PM