Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92049
b: refs/heads/master
c: e922b00
h: refs/heads/master
i:
  92047: 063bfd7
v: v3
  • Loading branch information
Takashi Iwai committed Apr 24, 2008
1 parent 860f3c4 commit 30b3cb7
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4235a31784f59c9be5ff71534743c055091f9735
refs/heads/master: e922b0028fad87de0d262f9fa51f98595d2df258
7 changes: 7 additions & 0 deletions trunk/include/sound/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,11 @@ int snd_ctl_boolean_mono_info(struct snd_kcontrol *kcontrol,
int snd_ctl_boolean_stereo_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo);

/*
* virtual master control
*/
struct snd_kcontrol *snd_ctl_make_virtual_master(char *name,
const unsigned int *tlv);
int snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave);

#endif /* __SOUND_CONTROL_H */
4 changes: 4 additions & 0 deletions trunk/sound/core/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,7 @@ config SND_PCM_XRUN_DEBUG
It is usually not required, but if you have trouble with
sound clicking when system is loaded, it may help to determine
the process or driver which causes the scheduling gaps.

config SND_VMASTER
bool
depends on SND
1 change: 1 addition & 0 deletions trunk/sound/core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
snd-y := sound.o init.o memory.o info.o control.o misc.o device.o
snd-$(CONFIG_ISA_DMA_API) += isadma.o
snd-$(CONFIG_SND_OSSEMUL) += sound_oss.o info_oss.o
snd-$(CONFIG_SND_VMASTER) += vmaster.o

snd-pcm-objs := pcm.o pcm_native.o pcm_lib.o pcm_timer.o pcm_misc.o \
pcm_memory.o
Expand Down
4 changes: 4 additions & 0 deletions trunk/sound/pci/hda/vmaster.c → trunk/sound/core/vmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ int snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave)
return 0;
}

EXPORT_SYMBOL(snd_ctl_add_slave);

/*
* ctl callbacks for master controls
*/
Expand Down Expand Up @@ -362,3 +364,5 @@ struct snd_kcontrol *snd_ctl_make_virtual_master(char *name,
}
return kctl;
}

EXPORT_SYMBOL(snd_ctl_make_virtual_master);
1 change: 1 addition & 0 deletions trunk/sound/pci/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ config SND_HDA_INTEL
tristate "Intel HD Audio"
depends on SND
select SND_PCM
select SND_VMASTER
help
Say Y here to include support for Intel "High Definition
Audio" (Azalia) motherboard devices.
Expand Down
7 changes: 0 additions & 7 deletions trunk/sound/pci/hda/hda_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,4 @@ int snd_hda_check_amp_list_power(struct hda_codec *codec,
hda_nid_t nid);
#endif /* CONFIG_SND_HDA_POWER_SAVE */

/*
* virtual master control
*/
struct snd_kcontrol *snd_ctl_make_virtual_master(char *name,
const unsigned int *tlv);
int snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave);

#endif /* __SOUND_HDA_LOCAL_H */

0 comments on commit 30b3cb7

Please sign in to comment.