alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* snd_soc_set_dmi_name - Shouldn't it use SYS_VENDOR?
@ 2017-04-27 18:00 Daniel Drake
  2017-04-27 19:28 ` Pierre-Louis Bossart
  0 siblings, 1 reply; 11+ messages in thread
From: Daniel Drake @ 2017-04-27 18:00 UTC (permalink / raw)
  To: alsa-devel; +Cc: liam.r.girdwood, Pierre-Louis Bossart

Hi,

Nice to see DMI info being attached to SoC sound devices so that we
can differentiate between differerent products in userspace, thanks
for the effort there.

However I just noticed that it using DMI_BOARD_VENDOR. Is this intentional?

I have several examples of products here where DMI_BOARD_VENDOR is not
set to a meaningful value, but DMI_SYS_VENDOR is just fine. DMI quirks
in the kernel ordinarily tend to match products by combining
DMI_SYS_VENDOR with DMI_PRODUCT_NAME.

In the SMBIOS data format, Type 1 (System information) includes
DMI_SYS_VENDOR and DMI_PRODUCT_NAME. Type 2 (Base board information)
includes DMI_BOARD_VENDOR and DMI_BOARD_NAME. See dmi_decode() in
drivers/firmware/dmi_scan.c

It seems strange that ASoC is pulling the product name from Type 1 but
the vendor from type 2. Can we make it instead just use Type 1 data,
DMI_SYS_VENDOR and DMI_PRODUCT_NAME?

Thanks
Daniel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-05-02 10:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-27 18:00 snd_soc_set_dmi_name - Shouldn't it use SYS_VENDOR? Daniel Drake
2017-04-27 19:28 ` Pierre-Louis Bossart
2017-04-27 20:13   ` Daniel Drake
2017-04-27 20:32     ` Pierre-Louis Bossart
2017-04-27 21:02       ` Daniel Drake
2017-04-28  8:36         ` Takashi Iwai
2017-04-28 10:35         ` Liam Girdwood
2017-04-28 15:02           ` Lin, Mengdong
2017-04-28 16:21             ` Lin, Mengdong
2017-04-29 15:27               ` Daniel Drake
2017-05-02 10:19                 ` Mengdong Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).