aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c90
1 files changed, 45 insertions, 45 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 2e9f5877386e..7f4e19951bae 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -332,7 +332,7 @@ static int snd_hda_bus_free(struct hda_bus *bus)
332 return 0; 332 return 0;
333} 333}
334 334
335static int snd_hda_bus_dev_free(snd_device_t *device) 335static int snd_hda_bus_dev_free(struct snd_device *device)
336{ 336{
337 struct hda_bus *bus = device->device_data; 337 struct hda_bus *bus = device->device_data;
338 return snd_hda_bus_free(bus); 338 return snd_hda_bus_free(bus);
@@ -346,12 +346,12 @@ static int snd_hda_bus_dev_free(snd_device_t *device)
346 * 346 *
347 * Returns 0 if successful, or a negative error code. 347 * Returns 0 if successful, or a negative error code.
348 */ 348 */
349int snd_hda_bus_new(snd_card_t *card, const struct hda_bus_template *temp, 349int snd_hda_bus_new(struct snd_card *card, const struct hda_bus_template *temp,
350 struct hda_bus **busp) 350 struct hda_bus **busp)
351{ 351{
352 struct hda_bus *bus; 352 struct hda_bus *bus;
353 int err; 353 int err;
354 static snd_device_ops_t dev_ops = { 354 static struct snd_device_ops dev_ops = {
355 .dev_free = snd_hda_bus_dev_free, 355 .dev_free = snd_hda_bus_dev_free,
356 }; 356 };
357 357
@@ -732,7 +732,7 @@ static int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int
732#define get_amp_index(kc) (((kc)->private_value >> 19) & 0xf) 732#define get_amp_index(kc) (((kc)->private_value >> 19) & 0xf)
733 733
734/* volume */ 734/* volume */
735int snd_hda_mixer_amp_volume_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 735int snd_hda_mixer_amp_volume_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
736{ 736{
737 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 737 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
738 u16 nid = get_amp_nid(kcontrol); 738 u16 nid = get_amp_nid(kcontrol);
@@ -753,7 +753,7 @@ int snd_hda_mixer_amp_volume_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t
753 return 0; 753 return 0;
754} 754}
755 755
756int snd_hda_mixer_amp_volume_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 756int snd_hda_mixer_amp_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
757{ 757{
758 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 758 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
759 hda_nid_t nid = get_amp_nid(kcontrol); 759 hda_nid_t nid = get_amp_nid(kcontrol);
@@ -769,7 +769,7 @@ int snd_hda_mixer_amp_volume_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
769 return 0; 769 return 0;
770} 770}
771 771
772int snd_hda_mixer_amp_volume_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 772int snd_hda_mixer_amp_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
773{ 773{
774 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 774 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
775 hda_nid_t nid = get_amp_nid(kcontrol); 775 hda_nid_t nid = get_amp_nid(kcontrol);
@@ -791,7 +791,7 @@ int snd_hda_mixer_amp_volume_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
791} 791}
792 792
793/* switch */ 793/* switch */
794int snd_hda_mixer_amp_switch_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 794int snd_hda_mixer_amp_switch_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
795{ 795{
796 int chs = get_amp_channels(kcontrol); 796 int chs = get_amp_channels(kcontrol);
797 797
@@ -802,7 +802,7 @@ int snd_hda_mixer_amp_switch_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t
802 return 0; 802 return 0;
803} 803}
804 804
805int snd_hda_mixer_amp_switch_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 805int snd_hda_mixer_amp_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
806{ 806{
807 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 807 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
808 hda_nid_t nid = get_amp_nid(kcontrol); 808 hda_nid_t nid = get_amp_nid(kcontrol);
@@ -818,7 +818,7 @@ int snd_hda_mixer_amp_switch_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
818 return 0; 818 return 0;
819} 819}
820 820
821int snd_hda_mixer_amp_switch_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 821int snd_hda_mixer_amp_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
822{ 822{
823 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 823 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
824 hda_nid_t nid = get_amp_nid(kcontrol); 824 hda_nid_t nid = get_amp_nid(kcontrol);
@@ -849,7 +849,7 @@ int snd_hda_mixer_amp_switch_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
849#define AMP_VAL_IDX_SHIFT 19 849#define AMP_VAL_IDX_SHIFT 19
850#define AMP_VAL_IDX_MASK (0x0f<<19) 850#define AMP_VAL_IDX_MASK (0x0f<<19)
851 851
852int snd_hda_mixer_bind_switch_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 852int snd_hda_mixer_bind_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
853{ 853{
854 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 854 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
855 unsigned long pval; 855 unsigned long pval;
@@ -864,7 +864,7 @@ int snd_hda_mixer_bind_switch_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
864 return err; 864 return err;
865} 865}
866 866
867int snd_hda_mixer_bind_switch_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 867int snd_hda_mixer_bind_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
868{ 868{
869 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 869 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
870 unsigned long pval; 870 unsigned long pval;
@@ -889,14 +889,14 @@ int snd_hda_mixer_bind_switch_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
889 * SPDIF out controls 889 * SPDIF out controls
890 */ 890 */
891 891
892static int snd_hda_spdif_mask_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 892static int snd_hda_spdif_mask_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
893{ 893{
894 uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; 894 uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958;
895 uinfo->count = 1; 895 uinfo->count = 1;
896 return 0; 896 return 0;
897} 897}
898 898
899static int snd_hda_spdif_cmask_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 899static int snd_hda_spdif_cmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
900{ 900{
901 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL | 901 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL |
902 IEC958_AES0_NONAUDIO | 902 IEC958_AES0_NONAUDIO |
@@ -907,7 +907,7 @@ static int snd_hda_spdif_cmask_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_
907 return 0; 907 return 0;
908} 908}
909 909
910static int snd_hda_spdif_pmask_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 910static int snd_hda_spdif_pmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
911{ 911{
912 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL | 912 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL |
913 IEC958_AES0_NONAUDIO | 913 IEC958_AES0_NONAUDIO |
@@ -915,7 +915,7 @@ static int snd_hda_spdif_pmask_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_
915 return 0; 915 return 0;
916} 916}
917 917
918static int snd_hda_spdif_default_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 918static int snd_hda_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
919{ 919{
920 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 920 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
921 921
@@ -978,7 +978,7 @@ static unsigned int convert_to_spdif_status(unsigned short val)
978 return sbits; 978 return sbits;
979} 979}
980 980
981static int snd_hda_spdif_default_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 981static int snd_hda_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
982{ 982{
983 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 983 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
984 hda_nid_t nid = kcontrol->private_value; 984 hda_nid_t nid = kcontrol->private_value;
@@ -1004,7 +1004,7 @@ static int snd_hda_spdif_default_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_valu
1004 return change; 1004 return change;
1005} 1005}
1006 1006
1007static int snd_hda_spdif_out_switch_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 1007static int snd_hda_spdif_out_switch_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1008{ 1008{
1009 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; 1009 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
1010 uinfo->count = 1; 1010 uinfo->count = 1;
@@ -1013,7 +1013,7 @@ static int snd_hda_spdif_out_switch_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_
1013 return 0; 1013 return 0;
1014} 1014}
1015 1015
1016static int snd_hda_spdif_out_switch_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 1016static int snd_hda_spdif_out_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1017{ 1017{
1018 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 1018 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1019 1019
@@ -1021,7 +1021,7 @@ static int snd_hda_spdif_out_switch_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_v
1021 return 0; 1021 return 0;
1022} 1022}
1023 1023
1024static int snd_hda_spdif_out_switch_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 1024static int snd_hda_spdif_out_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1025{ 1025{
1026 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 1026 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1027 hda_nid_t nid = kcontrol->private_value; 1027 hda_nid_t nid = kcontrol->private_value;
@@ -1044,7 +1044,7 @@ static int snd_hda_spdif_out_switch_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_v
1044 return change; 1044 return change;
1045} 1045}
1046 1046
1047static snd_kcontrol_new_t dig_mixes[] = { 1047static struct snd_kcontrol_new dig_mixes[] = {
1048 { 1048 {
1049 .access = SNDRV_CTL_ELEM_ACCESS_READ, 1049 .access = SNDRV_CTL_ELEM_ACCESS_READ,
1050 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1050 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
@@ -1089,8 +1089,8 @@ static snd_kcontrol_new_t dig_mixes[] = {
1089int snd_hda_create_spdif_out_ctls(struct hda_codec *codec, hda_nid_t nid) 1089int snd_hda_create_spdif_out_ctls(struct hda_codec *codec, hda_nid_t nid)
1090{ 1090{
1091 int err; 1091 int err;
1092 snd_kcontrol_t *kctl; 1092 struct snd_kcontrol *kctl;
1093 snd_kcontrol_new_t *dig_mix; 1093 struct snd_kcontrol_new *dig_mix;
1094 1094
1095 for (dig_mix = dig_mixes; dig_mix->name; dig_mix++) { 1095 for (dig_mix = dig_mixes; dig_mix->name; dig_mix++) {
1096 kctl = snd_ctl_new1(dig_mix, codec); 1096 kctl = snd_ctl_new1(dig_mix, codec);
@@ -1109,7 +1109,7 @@ int snd_hda_create_spdif_out_ctls(struct hda_codec *codec, hda_nid_t nid)
1109 1109
1110#define snd_hda_spdif_in_switch_info snd_hda_spdif_out_switch_info 1110#define snd_hda_spdif_in_switch_info snd_hda_spdif_out_switch_info
1111 1111
1112static int snd_hda_spdif_in_switch_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 1112static int snd_hda_spdif_in_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1113{ 1113{
1114 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 1114 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1115 1115
@@ -1117,7 +1117,7 @@ static int snd_hda_spdif_in_switch_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_va
1117 return 0; 1117 return 0;
1118} 1118}
1119 1119
1120static int snd_hda_spdif_in_switch_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 1120static int snd_hda_spdif_in_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1121{ 1121{
1122 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 1122 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1123 hda_nid_t nid = kcontrol->private_value; 1123 hda_nid_t nid = kcontrol->private_value;
@@ -1134,7 +1134,7 @@ static int snd_hda_spdif_in_switch_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_va
1134 return change; 1134 return change;
1135} 1135}
1136 1136
1137static int snd_hda_spdif_in_status_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 1137static int snd_hda_spdif_in_status_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1138{ 1138{
1139 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 1139 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1140 hda_nid_t nid = kcontrol->private_value; 1140 hda_nid_t nid = kcontrol->private_value;
@@ -1150,7 +1150,7 @@ static int snd_hda_spdif_in_status_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_va
1150 return 0; 1150 return 0;
1151} 1151}
1152 1152
1153static snd_kcontrol_new_t dig_in_ctls[] = { 1153static struct snd_kcontrol_new dig_in_ctls[] = {
1154 { 1154 {
1155 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1155 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1156 .name = SNDRV_CTL_NAME_IEC958("",CAPTURE,SWITCH), 1156 .name = SNDRV_CTL_NAME_IEC958("",CAPTURE,SWITCH),
@@ -1181,8 +1181,8 @@ static snd_kcontrol_new_t dig_in_ctls[] = {
1181int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid) 1181int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid)
1182{ 1182{
1183 int err; 1183 int err;
1184 snd_kcontrol_t *kctl; 1184 struct snd_kcontrol *kctl;
1185 snd_kcontrol_new_t *dig_mix; 1185 struct snd_kcontrol_new *dig_mix;
1186 1186
1187 for (dig_mix = dig_in_ctls; dig_mix->name; dig_mix++) { 1187 for (dig_mix = dig_in_ctls; dig_mix->name; dig_mix++) {
1188 kctl = snd_ctl_new1(dig_mix, codec); 1188 kctl = snd_ctl_new1(dig_mix, codec);
@@ -1498,7 +1498,7 @@ int snd_hda_is_supported_format(struct hda_codec *codec, hda_nid_t nid,
1498 */ 1498 */
1499static int hda_pcm_default_open_close(struct hda_pcm_stream *hinfo, 1499static int hda_pcm_default_open_close(struct hda_pcm_stream *hinfo,
1500 struct hda_codec *codec, 1500 struct hda_codec *codec,
1501 snd_pcm_substream_t *substream) 1501 struct snd_pcm_substream *substream)
1502{ 1502{
1503 return 0; 1503 return 0;
1504} 1504}
@@ -1507,7 +1507,7 @@ static int hda_pcm_default_prepare(struct hda_pcm_stream *hinfo,
1507 struct hda_codec *codec, 1507 struct hda_codec *codec,
1508 unsigned int stream_tag, 1508 unsigned int stream_tag,
1509 unsigned int format, 1509 unsigned int format,
1510 snd_pcm_substream_t *substream) 1510 struct snd_pcm_substream *substream)
1511{ 1511{
1512 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); 1512 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format);
1513 return 0; 1513 return 0;
@@ -1515,7 +1515,7 @@ static int hda_pcm_default_prepare(struct hda_pcm_stream *hinfo,
1515 1515
1516static int hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo, 1516static int hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo,
1517 struct hda_codec *codec, 1517 struct hda_codec *codec,
1518 snd_pcm_substream_t *substream) 1518 struct snd_pcm_substream *substream)
1519{ 1519{
1520 snd_hda_codec_setup_stream(codec, hinfo->nid, 0, 0, 0); 1520 snd_hda_codec_setup_stream(codec, hinfo->nid, 0, 0, 0);
1521 return 0; 1521 return 0;
@@ -1646,14 +1646,14 @@ int snd_hda_check_board_config(struct hda_codec *codec, const struct hda_board_c
1646/** 1646/**
1647 * snd_hda_add_new_ctls - create controls from the array 1647 * snd_hda_add_new_ctls - create controls from the array
1648 * @codec: the HDA codec 1648 * @codec: the HDA codec
1649 * @knew: the array of snd_kcontrol_new_t 1649 * @knew: the array of struct snd_kcontrol_new
1650 * 1650 *
1651 * This helper function creates and add new controls in the given array. 1651 * This helper function creates and add new controls in the given array.
1652 * The array must be terminated with an empty entry as terminator. 1652 * The array must be terminated with an empty entry as terminator.
1653 * 1653 *
1654 * Returns 0 if successful, or a negative error code. 1654 * Returns 0 if successful, or a negative error code.
1655 */ 1655 */
1656int snd_hda_add_new_ctls(struct hda_codec *codec, snd_kcontrol_new_t *knew) 1656int snd_hda_add_new_ctls(struct hda_codec *codec, struct snd_kcontrol_new *knew)
1657{ 1657{
1658 int err; 1658 int err;
1659 1659
@@ -1666,10 +1666,10 @@ int snd_hda_add_new_ctls(struct hda_codec *codec, snd_kcontrol_new_t *knew)
1666} 1666}
1667 1667
1668 1668
1669 /* 1669/*
1670 * Channel mode helper 1670 * Channel mode helper
1671 */ 1671 */
1672int snd_hda_ch_mode_info(struct hda_codec *codec, snd_ctl_elem_info_t *uinfo, 1672int snd_hda_ch_mode_info(struct hda_codec *codec, struct snd_ctl_elem_info *uinfo,
1673 const struct hda_channel_mode *chmode, int num_chmodes) 1673 const struct hda_channel_mode *chmode, int num_chmodes)
1674{ 1674{
1675 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 1675 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
@@ -1682,7 +1682,7 @@ int snd_hda_ch_mode_info(struct hda_codec *codec, snd_ctl_elem_info_t *uinfo,
1682 return 0; 1682 return 0;
1683} 1683}
1684 1684
1685int snd_hda_ch_mode_get(struct hda_codec *codec, snd_ctl_elem_value_t *ucontrol, 1685int snd_hda_ch_mode_get(struct hda_codec *codec, struct snd_ctl_elem_value *ucontrol,
1686 const struct hda_channel_mode *chmode, int num_chmodes, 1686 const struct hda_channel_mode *chmode, int num_chmodes,
1687 int max_channels) 1687 int max_channels)
1688{ 1688{
@@ -1697,7 +1697,7 @@ int snd_hda_ch_mode_get(struct hda_codec *codec, snd_ctl_elem_value_t *ucontrol,
1697 return 0; 1697 return 0;
1698} 1698}
1699 1699
1700int snd_hda_ch_mode_put(struct hda_codec *codec, snd_ctl_elem_value_t *ucontrol, 1700int snd_hda_ch_mode_put(struct hda_codec *codec, struct snd_ctl_elem_value *ucontrol,
1701 const struct hda_channel_mode *chmode, int num_chmodes, 1701 const struct hda_channel_mode *chmode, int num_chmodes,
1702 int *max_channelsp) 1702 int *max_channelsp)
1703{ 1703{
@@ -1717,7 +1717,7 @@ int snd_hda_ch_mode_put(struct hda_codec *codec, snd_ctl_elem_value_t *ucontrol,
1717/* 1717/*
1718 * input MUX helper 1718 * input MUX helper
1719 */ 1719 */
1720int snd_hda_input_mux_info(const struct hda_input_mux *imux, snd_ctl_elem_info_t *uinfo) 1720int snd_hda_input_mux_info(const struct hda_input_mux *imux, struct snd_ctl_elem_info *uinfo)
1721{ 1721{
1722 unsigned int index; 1722 unsigned int index;
1723 1723
@@ -1732,7 +1732,7 @@ int snd_hda_input_mux_info(const struct hda_input_mux *imux, snd_ctl_elem_info_t
1732} 1732}
1733 1733
1734int snd_hda_input_mux_put(struct hda_codec *codec, const struct hda_input_mux *imux, 1734int snd_hda_input_mux_put(struct hda_codec *codec, const struct hda_input_mux *imux,
1735 snd_ctl_elem_value_t *ucontrol, hda_nid_t nid, 1735 struct snd_ctl_elem_value *ucontrol, hda_nid_t nid,
1736 unsigned int *cur_val) 1736 unsigned int *cur_val)
1737{ 1737{
1738 unsigned int idx; 1738 unsigned int idx;
@@ -1783,7 +1783,7 @@ int snd_hda_multi_out_dig_close(struct hda_codec *codec, struct hda_multi_out *m
1783 * set up more restrictions for analog out 1783 * set up more restrictions for analog out
1784 */ 1784 */
1785int snd_hda_multi_out_analog_open(struct hda_codec *codec, struct hda_multi_out *mout, 1785int snd_hda_multi_out_analog_open(struct hda_codec *codec, struct hda_multi_out *mout,
1786 snd_pcm_substream_t *substream) 1786 struct snd_pcm_substream *substream)
1787{ 1787{
1788 substream->runtime->hw.channels_max = mout->max_channels; 1788 substream->runtime->hw.channels_max = mout->max_channels;
1789 return snd_pcm_hw_constraint_step(substream->runtime, 0, 1789 return snd_pcm_hw_constraint_step(substream->runtime, 0,
@@ -1797,7 +1797,7 @@ int snd_hda_multi_out_analog_open(struct hda_codec *codec, struct hda_multi_out
1797int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, struct hda_multi_out *mout, 1797int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, struct hda_multi_out *mout,
1798 unsigned int stream_tag, 1798 unsigned int stream_tag,
1799 unsigned int format, 1799 unsigned int format,
1800 snd_pcm_substream_t *substream) 1800 struct snd_pcm_substream *substream)
1801{ 1801{
1802 hda_nid_t *nids = mout->dac_nids; 1802 hda_nid_t *nids = mout->dac_nids;
1803 int chs = substream->runtime->channels; 1803 int chs = substream->runtime->channels;
@@ -2019,15 +2019,15 @@ int snd_hda_resume(struct hda_bus *bus)
2019/** 2019/**
2020 * snd_hda_resume_ctls - resume controls in the new control list 2020 * snd_hda_resume_ctls - resume controls in the new control list
2021 * @codec: the HDA codec 2021 * @codec: the HDA codec
2022 * @knew: the array of snd_kcontrol_new_t 2022 * @knew: the array of struct snd_kcontrol_new
2023 * 2023 *
2024 * This function resumes the mixer controls in the snd_kcontrol_new_t array, 2024 * This function resumes the mixer controls in the struct snd_kcontrol_new array,
2025 * originally for snd_hda_add_new_ctls(). 2025 * originally for snd_hda_add_new_ctls().
2026 * The array must be terminated with an empty entry as terminator. 2026 * The array must be terminated with an empty entry as terminator.
2027 */ 2027 */
2028int snd_hda_resume_ctls(struct hda_codec *codec, snd_kcontrol_new_t *knew) 2028int snd_hda_resume_ctls(struct hda_codec *codec, struct snd_kcontrol_new *knew)
2029{ 2029{
2030 snd_ctl_elem_value_t *val; 2030 struct snd_ctl_elem_value *val;
2031 2031
2032 val = kmalloc(sizeof(*val), GFP_KERNEL); 2032 val = kmalloc(sizeof(*val), GFP_KERNEL);
2033 if (! val) 2033 if (! val)