Page MenuHomeFreeBSD

sound: add missing modules to snd_driver
ClosedPublic

Authored by christos on Jan 10 2024, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 7 2024, 4:20 AM
Unknown Object (File)
Apr 27 2024, 12:50 PM
Unknown Object (File)
Apr 27 2024, 12:50 PM
Unknown Object (File)
Apr 27 2024, 12:50 PM
Unknown Object (File)
Apr 27 2024, 12:10 PM
Unknown Object (File)
Apr 27 2024, 12:10 PM
Unknown Object (File)
Apr 27 2024, 11:40 AM
Unknown Object (File)
Feb 14 2024, 9:33 AM
Subscribers

Details

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Remove useless break while at it.
  • s/snd_uaudio/uaudio/

snd_uaudio(4) is declared as "uaudio" instead of "snd_uaudio" for some reason. We might want to change this.

emaste added inline comments.
sys/dev/sound/driver.c
80

it's curious that uaudio didn't follow the convention

This revision is now accepted and ready to land.Jan 10 2024, 9:49 PM

We might want to change this.

Our comments crossed paths :)

The module is KMOD= snd_uaudio and it makes sense to me to switch this over in a subsequent change

Does this have any user-visible effects? I'd guess not since sound(4) is compiled into GENERIC on most platforms, but I'm not sure.

Does this have any user-visible effects? I'd guess not since sound(4) is compiled into GENERIC on most platforms, but I'm not sure.

Probably not, but the list is still incomplete.

Hrm, with the uaudio driver being loaded by USB on demand I suspect we don't want the MODULE_DEPEND(snd_driver, uaudio, 1, 1, 1);?

Hrm, with the uaudio driver being loaded by USB on demand I suspect we don't want the MODULE_DEPEND(snd_driver, uaudio, 1, 1, 1);?

It doesn't hurt, but we can get rid of it indeed.

s/uaudio/snd_uaudio/. Depends on D43396.

This revision now requires review to proceed.Jan 10 2024, 10:36 PM

It's a little odd that we load all these for this driver. It seems a bit backwards...

However, making sure the list is complete and we can defer dealing with that issue for now.

This revision is now accepted and ready to land.Jan 11 2024, 9:18 PM
This revision was automatically updated to reflect the committed changes.

Hrm, with the uaudio driver being loaded by USB on demand I suspect we don't want the MODULE_DEPEND(snd_driver, uaudio, 1, 1, 1);?

I don't think this was addressed

Hrm, with the uaudio driver being loaded by USB on demand I suspect we don't want the MODULE_DEPEND(snd_driver, uaudio, 1, 1, 1);?

I don't think this was addressed

We technically don't need it, but I kept it here for completeness.

We technically don't need it, but I kept it here for completeness.

But does this mean that snd_uaudio will get loaded as a dependency of sound.ko rather than on demand after USB plug?