[alsa-devel] [PATCH v4 2/3] platform/x86: dell-*: Add interface for switchable graphics status query

Andy Shevchenko andy.shevchenko at gmail.com
Mon Apr 23 15:43:41 CEST 2018


On Fri, Apr 20, 2018 at 12:44 PM, Kai-Heng Feng
<kai.heng.feng at canonical.com> wrote:
> On some Dell platforms, there's a BIOS option "Enable Switchable
> Graphics". This information is useful if we want to do different things
> based on this value, e.g. disable unused audio controller that comes
> with the discrete graphics.

>  int dell_micmute_led_set(int on);
> +bool dell_switchable_gfx_is_enabled(void);

I would rather preserve existing API, i.e.
 - prototype int func(void), where return either state or negative error code.
 - naming: dell_switchable_gfx_get()

-- 
With Best Regards,
Andy Shevchenko


More information about the Alsa-devel mailing list