mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-19 06:47:48 +00:00
ALSA: hda, move hp_bseries_system
Function hp_bseries_system() is always used, outside of CONFIG_ boundaries/controls, so move it. sound/pci/hda/patch_sigmatel.c:5458: error: implicit declaration of function 'hp_bseries_system' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
798a8a1501
commit
78987bdc4e
@ -4668,6 +4668,26 @@ static void stac92xx_unsol_event(struct hda_codec *codec, unsigned int res)
|
||||
}
|
||||
}
|
||||
|
||||
static int hp_bseries_system(u32 subsystem_id)
|
||||
{
|
||||
switch (subsystem_id) {
|
||||
case 0x103c307e:
|
||||
case 0x103c307f:
|
||||
case 0x103c3080:
|
||||
case 0x103c3081:
|
||||
case 0x103c1722:
|
||||
case 0x103c1723:
|
||||
case 0x103c1724:
|
||||
case 0x103c1725:
|
||||
case 0x103c1726:
|
||||
case 0x103c1727:
|
||||
case 0x103c1728:
|
||||
case 0x103c1729:
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
static void stac92hd_proc_hook(struct snd_info_buffer *buffer,
|
||||
struct hda_codec *codec, hda_nid_t nid)
|
||||
@ -4733,26 +4753,6 @@ static int stac92xx_resume(struct hda_codec *codec)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hp_bseries_system(u32 subsystem_id)
|
||||
{
|
||||
switch (subsystem_id) {
|
||||
case 0x103c307e:
|
||||
case 0x103c307f:
|
||||
case 0x103c3080:
|
||||
case 0x103c3081:
|
||||
case 0x103c1722:
|
||||
case 0x103c1723:
|
||||
case 0x103c1724:
|
||||
case 0x103c1725:
|
||||
case 0x103c1726:
|
||||
case 0x103c1727:
|
||||
case 0x103c1728:
|
||||
case 0x103c1729:
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* using power check for controlling mute led of HP notebooks
|
||||
* check for mute state only on Speakers (nid = 0x10)
|
||||
|
Loading…
x
Reference in New Issue
Block a user