diff options
Diffstat (limited to 'sound/pci/hda/hda_local.h')
| -rw-r--r-- | sound/pci/hda/hda_local.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index ad0014ab71f9..5c9e578f7f2d 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
| @@ -228,8 +228,18 @@ struct hda_multi_out { | |||
| 228 | int max_channels; /* currently supported analog channels */ | 228 | int max_channels; /* currently supported analog channels */ |
| 229 | int dig_out_used; /* current usage of digital out (HDA_DIG_XXX) */ | 229 | int dig_out_used; /* current usage of digital out (HDA_DIG_XXX) */ |
| 230 | int no_share_stream; /* don't share a stream with multiple pins */ | 230 | int no_share_stream; /* don't share a stream with multiple pins */ |
| 231 | int share_spdif; /* share SPDIF pin */ | ||
| 232 | /* PCM information for both analog and SPDIF DACs */ | ||
| 233 | unsigned int analog_rates; | ||
| 234 | unsigned int analog_maxbps; | ||
| 235 | u64 analog_formats; | ||
| 236 | unsigned int spdif_rates; | ||
| 237 | unsigned int spdif_maxbps; | ||
| 238 | u64 spdif_formats; | ||
| 231 | }; | 239 | }; |
| 232 | 240 | ||
| 241 | int snd_hda_create_spdif_share_sw(struct hda_codec *codec, | ||
| 242 | struct hda_multi_out *mout); | ||
| 233 | int snd_hda_multi_out_dig_open(struct hda_codec *codec, | 243 | int snd_hda_multi_out_dig_open(struct hda_codec *codec, |
| 234 | struct hda_multi_out *mout); | 244 | struct hda_multi_out *mout); |
| 235 | int snd_hda_multi_out_dig_close(struct hda_codec *codec, | 245 | int snd_hda_multi_out_dig_close(struct hda_codec *codec, |
| @@ -241,7 +251,8 @@ int snd_hda_multi_out_dig_prepare(struct hda_codec *codec, | |||
| 241 | struct snd_pcm_substream *substream); | 251 | struct snd_pcm_substream *substream); |
| 242 | int snd_hda_multi_out_analog_open(struct hda_codec *codec, | 252 | int snd_hda_multi_out_analog_open(struct hda_codec *codec, |
| 243 | struct hda_multi_out *mout, | 253 | struct hda_multi_out *mout, |
| 244 | struct snd_pcm_substream *substream); | 254 | struct snd_pcm_substream *substream, |
| 255 | struct hda_pcm_stream *hinfo); | ||
| 245 | int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, | 256 | int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, |
| 246 | struct hda_multi_out *mout, | 257 | struct hda_multi_out *mout, |
| 247 | unsigned int stream_tag, | 258 | unsigned int stream_tag, |
| @@ -407,11 +418,4 @@ int snd_hda_check_amp_list_power(struct hda_codec *codec, | |||
| 407 | hda_nid_t nid); | 418 | hda_nid_t nid); |
| 408 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ | 419 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ |
| 409 | 420 | ||
| 410 | /* | ||
| 411 | * virtual master control | ||
| 412 | */ | ||
| 413 | struct snd_kcontrol *snd_ctl_make_virtual_master(char *name, | ||
| 414 | const unsigned int *tlv); | ||
| 415 | int snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave); | ||
| 416 | |||
| 417 | #endif /* __SOUND_HDA_LOCAL_H */ | 421 | #endif /* __SOUND_HDA_LOCAL_H */ |
