Page MenuHomeFreeBSD

christos (Christos Margiolis)
User

Projects

User Details

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

Recent Activity

Yesterday

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
christos closed D45015: sound: Move vchan-related code to pcm/vchan.*.
Mon, May 6, 6:38 PM
christos committed rGc597c5579232: sound: Use nitems() where possible (authored by christos).
sound: Use nitems() where possible
Mon, May 6, 6:38 PM
christos closed D45014: sound: Use nitems() where possible.
Mon, May 6, 6:38 PM
christos committed rG72cbd381075a: sound: Remove unused dsp_cdevs[] fields and devices (authored by christos).
sound: Remove unused dsp_cdevs[] fields and devices
Mon, May 6, 6:38 PM
christos closed D45013: sound: Remove unused dsp_cdevs[] fields and devices.
Mon, May 6, 6:38 PM
christos committed rG923e0040a59a: sound: Move chip.h contents to pcm/sound.h (authored by christos).
sound: Move chip.h contents to pcm/sound.h
Mon, May 6, 6:38 PM
christos closed D44997: sound: Move chip.h contents to pcm/sound.h.
Mon, May 6, 6:38 PM
christos committed rG5224825a0edb: RELNOTES: Mention hw.snd.version being removed (authored by christos).
RELNOTES: Mention hw.snd.version being removed
Mon, May 6, 6:38 PM
christos committed rG7398d1ece5cf: sound: Remove hw.snd.version and SND_DRV_VERSION (authored by christos).
sound: Remove hw.snd.version and SND_DRV_VERSION
Mon, May 6, 6:38 PM
christos closed D44996: sound: Remove hw.snd.version and SND_DRV_VERSION.
Mon, May 6, 6:38 PM
christos committed rG139bcec852cf: sound: Convert pcm_chn_add() to void (authored by christos).
sound: Convert pcm_chn_add() to void
Mon, May 6, 6:38 PM
christos closed D44998: sound: Convert pcm_chn_add() to void.
Mon, May 6, 6:37 PM
christos closed D44994: sound: Add __assert_unreachable() to default cases in pcm_chn_add() and pcm_chn_remove().
Mon, May 6, 6:37 PM
christos committed rG76f95bae092b: 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…
Mon, May 6, 6:37 PM
christos closed D44993: sound: Merge pcm_chn_create() and chn_init().
Mon, May 6, 6:37 PM
christos committed rG2e9962ef5704: sound: Merge pcm_chn_create() and chn_init() (authored by christos).
sound: Merge pcm_chn_create() and chn_init()
Mon, May 6, 6:37 PM
christos added a comment to D45100: snd_hda: Add patch for Lenovo Ideapad 3.

The user who reported it verified that the following hints worked:

hint.hdac.0.cad0.nid20.config="as=1 seq=0"
hint.hdac.0.cad0.nid33.config="as=1 seq=15"
Mon, May 6, 2:17 PM
christos requested review of D45100: snd_hda: Add patch for Lenovo Ideapad 3.
Mon, May 6, 2:15 PM

Sun, May 5

christos added inline comments to D44993: sound: Merge pcm_chn_create() and chn_init().
Sun, May 5, 4:15 PM
christos requested review of D45095: sound: Remove unused "num" argument from chn_init() and related callers.
Sun, May 5, 4:15 PM
christos added inline comments to D44993: sound: Merge pcm_chn_create() and chn_init().
Sun, May 5, 3:50 PM
christos updated the diff for D45013: sound: Remove unused dsp_cdevs[] fields and devices.

Remove unused SND_DEV_* defines from pcm/sound.h. Convert the list to an enum.

Sun, May 5, 3:43 PM

Wed, May 1

christos updated the diff for D45013: sound: Remove unused dsp_cdevs[] fields and devices.

Remove /dev/dspW, /dev/audio and /dev/dspcd.

Wed, May 1, 10:03 PM
christos retitled D45013: sound: Remove unused dsp_cdevs[] fields and devices from sound: Remove unused dsp_cdevs[] fields to sound: Remove unused dsp_cdevs[] fields and devices.
Wed, May 1, 9:59 PM
christos added a comment to D45013: sound: Remove unused dsp_cdevs[] fields and devices.

I don't think there's a lot of value in keeping the aliases, if we don't also keep the behaviour -- i.e., if some application does expect to open /dev/dspW and send 16-bit samples without doing any other configuration it's not going to work as expected.

True, but if we delete them the program will just exit, which I don't know if it's any better. I am not very keen on keeping those aliases either however, so I am open to suggestions.

You're right, unless we can preset format and speed defaults for these clones they are not very useful. We have alternatives for people who want to just cat some wave files, e.g. the vchan sysctls or virtual_oss. I think we can remove them, it's not worth the effort.

Wed, May 1, 6:01 PM
christos added a comment to D45013: sound: Remove unused dsp_cdevs[] fields and devices.

I don't think there's a lot of value in keeping the aliases, if we don't also keep the behaviour -- i.e., if some application does expect to open /dev/dspW and send 16-bit samples without doing any other configuration it's not going to work as expected.

Wed, May 1, 12:05 AM

Tue, Apr 30

christos added a comment to D44993: sound: Merge pcm_chn_create() and chn_init().

@dev_submerge.ch If there's nothing else that needs fixing I think we can go ahead with it.

Tue, Apr 30, 11:41 PM
christos added a comment to D45013: sound: Remove unused dsp_cdevs[] fields and devices.

how does e.g. /dev/dspW map to 16-bit now?

Tue, Apr 30, 11:39 PM
christos added a comment to D45015: sound: Move vchan-related code to pcm/vchan.*.

What is this diff based on? I can't apply it on any branch I have.

Tue, Apr 30, 11:24 PM
christos added a comment to D44996: sound: Remove hw.snd.version and SND_DRV_VERSION.

Ignore the RELNOTES entry below the new one. I just didn't diff against main.

Tue, Apr 30, 12:21 AM
christos updated the diff for D44996: sound: Remove hw.snd.version and SND_DRV_VERSION.
  • Remove MACHINE_ARCH from sndstat header.
  • Add RELNOTES entry.
Tue, Apr 30, 12:20 AM

Mon, Apr 29

christos updated the diff for D44993: sound: Merge pcm_chn_create() and chn_init().

Address Florian's comments.

Mon, Apr 29, 8:14 PM
christos requested review of D45016: sound: Rename pcm_getparentchannel() to vchan_getparentchannel().
Mon, Apr 29, 5:42 PM
christos requested review of D45015: sound: Move vchan-related code to pcm/vchan.*.
Mon, Apr 29, 5:39 PM
christos requested review of D45014: sound: Use nitems() where possible.
Mon, Apr 29, 4:22 PM
christos requested review of D45013: sound: Remove unused dsp_cdevs[] fields and devices.
Mon, Apr 29, 4:00 PM
christos added inline comments to D44993: sound: Merge pcm_chn_create() and chn_init().
Mon, Apr 29, 3:10 PM
christos added inline comments to D44993: sound: Merge pcm_chn_create() and chn_init().
Mon, Apr 29, 2:57 PM
christos added inline comments to D44993: sound: Merge pcm_chn_create() and chn_init().
Mon, Apr 29, 2:53 PM
christos added inline comments to D44996: sound: Remove hw.snd.version and SND_DRV_VERSION.
Mon, Apr 29, 2:49 PM
christos updated the diff for D44996: sound: Remove hw.snd.version and SND_DRV_VERSION.

Remove "%ubit" line from sbuf_printf() in sndstat.c, MACHINE_ARCH includes the
bits already.

Mon, Apr 29, 12:27 PM
christos added a reviewer for D44997: sound: Move chip.h contents to pcm/sound.h: bapt.
Mon, Apr 29, 12:23 PM
christos added a reviewer for D44996: sound: Remove hw.snd.version and SND_DRV_VERSION: bapt.
Mon, Apr 29, 12:23 PM
christos added a reviewer for D44993: sound: Merge pcm_chn_create() and chn_init(): bapt.
Mon, Apr 29, 12:23 PM
christos updated the diff for D44996: sound: Remove hw.snd.version and SND_DRV_VERSION.

Remove it.

Mon, Apr 29, 12:23 PM
christos added a reviewer for D44996: sound: Remove hw.snd.version and SND_DRV_VERSION: dev_submerge.ch.
Mon, Apr 29, 12:21 PM
christos retitled D44996: sound: Remove hw.snd.version and SND_DRV_VERSION from sound: Move SND_DRV_VERSION to pcm/sound.h to sound: Remove hw.snd.version and SND_DRV_VERSION.
Mon, Apr 29, 12:21 PM
christos committed rGa2b09fc4b8b3: sound: Add missing space in dev.pcm.X.mode description (authored by christos).
sound: Add missing space in dev.pcm.X.mode description
Mon, Apr 29, 10:46 AM
christos committed rG33e0f0cd6ba8: sound: Assert that we do not enter chn_sleep() with CHN_F_SLEEPING (authored by christos).
sound: Assert that we do not enter chn_sleep() with CHN_F_SLEEPING
Mon, Apr 29, 10:46 AM
christos committed rGd8d7907826cc: sound: Fix panic caused by sleeping-channel destruction during asynchronous… (authored by christos).
sound: Fix panic caused by sleeping-channel destruction during asynchronous…
Mon, Apr 29, 10:45 AM
christos committed rG9847c2497d2b: sound: Wrap dsp_clone() and mixer_clone() with bus_topo_lock() (authored by christos).
sound: Wrap dsp_clone() and mixer_clone() with bus_topo_lock()
Mon, Apr 29, 10:45 AM
christos committed rGcc72812c49ba: sound: Fix NULL dereference in dsp_clone() and mixer_clone() (authored by christos).
sound: Fix NULL dereference in dsp_clone() and mixer_clone()
Mon, Apr 29, 10:45 AM
christos committed rGac316062a747: sound: Remove obsolete chn_setvolume() (authored by christos).
sound: Remove obsolete chn_setvolume()
Mon, Apr 29, 10:45 AM

Sun, Apr 28

christos committed rG993d1fad5bd8: RELNOTES: Fix wrong commit hash (authored by christos).
RELNOTES: Fix wrong commit hash
Sun, Apr 28, 8:00 PM
christos committed rG7cc1afc55890: sound: Remove chn_timeout check from chn_init() (authored by christos).
sound: Remove chn_timeout check from chn_init()
Sun, Apr 28, 7:50 PM
christos committed rGe56c8996fc43: sound: Add missing space in dev.pcm.X.mode description (authored by christos).
sound: Add missing space in dev.pcm.X.mode description
Sun, Apr 28, 7:49 PM
christos committed rGa24050e2b784: 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
Sun, Apr 28, 7:49 PM
christos committed rGb3ea087c05d8: sound: Merge pcm_chn_destroy() and chn_kill() (authored by christos).
sound: Merge pcm_chn_destroy() and chn_kill()
Sun, Apr 28, 7:49 PM
christos committed rG25723d66369f: sound: Retire unit.* (authored by christos).
sound: Retire unit.*
Sun, Apr 28, 7:49 PM
christos committed rGfa284525499d: sound: Assert that we do not enter chn_sleep() with CHN_F_SLEEPING (authored by christos).
sound: Assert that we do not enter chn_sleep() with CHN_F_SLEEPING
Sun, Apr 28, 7:49 PM
christos closed D44992: sound: Remove chn_timeout check from chn_init().
Sun, Apr 28, 7:49 PM
christos committed rG03614fcba25b: sound: Fix panic caused by sleeping-channel destruction during asynchronous… (authored by christos).
sound: Fix panic caused by sleeping-channel destruction during asynchronous…
Sun, Apr 28, 7:49 PM