Lines Matching refs:CHN_NUM
107 #define CHN_NUM 2 macro
351 amixers[type*CHN_NUM+i]; in ct_alsa_mix_volume_get()
379 amixer = mixer->amixers[type*CHN_NUM+i]; in ct_alsa_mix_volume_put()
389 amixers[(type+j)*CHN_NUM+i]; in ct_alsa_mix_volume_put()
816 amix_d = mixer->amixers[type*CHN_NUM+i]; in ct_mixer_recording_select()
817 sum_c = mixer->sums[SUM_IN_F_C*CHN_NUM+i]; in ct_mixer_recording_select()
830 amix_d = mixer->amixers[type*CHN_NUM+i]; in ct_mixer_recording_unselect()
850 for (i = 0; i < (NUM_CT_SUMS * CHN_NUM); i++) { in ct_mixer_get_resources()
865 for (i = 0; i < (NUM_CT_AMIXERS * CHN_NUM); i++) { in ct_mixer_get_resources()
880 for (i = 0; i < (NUM_CT_AMIXERS * CHN_NUM); i++) { in ct_mixer_get_resources()
888 for (i = 0; i < (NUM_CT_SUMS * CHN_NUM); i++) { in ct_mixer_get_resources()
909 mixer->amixers = kcalloc(NUM_CT_AMIXERS * CHN_NUM, sizeof(void *), in ct_mixer_get_mem()
915 mixer->sums = kcalloc(NUM_CT_SUMS * CHN_NUM, sizeof(void *), in ct_mixer_get_mem()
944 amix_d = mixer->amixers[i*CHN_NUM]; in ct_mixer_topology_build()
945 sum = mixer->sums[k*CHN_NUM]; in ct_mixer_topology_build()
947 amix_d = mixer->amixers[i*CHN_NUM+1]; in ct_mixer_topology_build()
948 sum = mixer->sums[k*CHN_NUM+1]; in ct_mixer_topology_build()
955 amix_d = mixer->amixers[i*CHN_NUM]; in ct_mixer_topology_build()
956 amix_s = mixer->amixers[j*CHN_NUM]; in ct_mixer_topology_build()
958 amix_d = mixer->amixers[i*CHN_NUM+1]; in ct_mixer_topology_build()
959 amix_s = mixer->amixers[j*CHN_NUM+1]; in ct_mixer_topology_build()
964 amix_d = mixer->amixers[AMIXER_SPDIFO*CHN_NUM]; in ct_mixer_topology_build()
965 amix_s = mixer->amixers[AMIXER_MASTER_F*CHN_NUM]; in ct_mixer_topology_build()
967 amix_d = mixer->amixers[AMIXER_SPDIFO*CHN_NUM+1]; in ct_mixer_topology_build()
968 amix_s = mixer->amixers[AMIXER_MASTER_F*CHN_NUM+1]; in ct_mixer_topology_build()
973 amix_d = mixer->amixers[i*CHN_NUM]; in ct_mixer_topology_build()
974 sum = mixer->sums[k*CHN_NUM]; in ct_mixer_topology_build()
976 amix_d = mixer->amixers[i*CHN_NUM+1]; in ct_mixer_topology_build()
977 sum = mixer->sums[k*CHN_NUM+1]; in ct_mixer_topology_build()
982 amix_d = mixer->amixers[AMIXER_LINEIN*CHN_NUM]; in ct_mixer_topology_build()
983 sum = mixer->sums[SUM_IN_F*CHN_NUM]; in ct_mixer_topology_build()
985 amix_d = mixer->amixers[AMIXER_LINEIN*CHN_NUM+1]; in ct_mixer_topology_build()
986 sum = mixer->sums[SUM_IN_F*CHN_NUM+1]; in ct_mixer_topology_build()
990 amix_d = mixer->amixers[AMIXER_MIC*CHN_NUM]; in ct_mixer_topology_build()
991 sum = mixer->sums[SUM_IN_F*CHN_NUM]; in ct_mixer_topology_build()
993 amix_d = mixer->amixers[AMIXER_MIC*CHN_NUM+1]; in ct_mixer_topology_build()
994 sum = mixer->sums[SUM_IN_F*CHN_NUM+1]; in ct_mixer_topology_build()
998 amix_d = mixer->amixers[AMIXER_SPDIFI*CHN_NUM]; in ct_mixer_topology_build()
999 sum = mixer->sums[SUM_IN_F*CHN_NUM]; in ct_mixer_topology_build()
1001 amix_d = mixer->amixers[AMIXER_SPDIFI*CHN_NUM+1]; in ct_mixer_topology_build()
1002 sum = mixer->sums[SUM_IN_F*CHN_NUM+1]; in ct_mixer_topology_build()
1006 amix_d = mixer->amixers[AMIXER_MASTER_F_C*CHN_NUM]; in ct_mixer_topology_build()
1007 sum = mixer->sums[SUM_IN_F_C*CHN_NUM]; in ct_mixer_topology_build()
1009 amix_d = mixer->amixers[AMIXER_MASTER_F_C*CHN_NUM+1]; in ct_mixer_topology_build()
1010 sum = mixer->sums[SUM_IN_F_C*CHN_NUM+1]; in ct_mixer_topology_build()
1014 amix_d = mixer->amixers[AMIXER_PCM_F_C*CHN_NUM]; in ct_mixer_topology_build()
1015 sum = mixer->sums[SUM_IN_F_C*CHN_NUM]; in ct_mixer_topology_build()
1017 amix_d = mixer->amixers[AMIXER_PCM_F_C*CHN_NUM+1]; in ct_mixer_topology_build()
1018 sum = mixer->sums[SUM_IN_F_C*CHN_NUM+1]; in ct_mixer_topology_build()
1022 amix_d = mixer->amixers[AMIXER_LINEIN_C*CHN_NUM]; in ct_mixer_topology_build()
1023 sum = mixer->sums[SUM_IN_F_C*CHN_NUM]; in ct_mixer_topology_build()
1025 amix_d = mixer->amixers[AMIXER_LINEIN_C*CHN_NUM+1]; in ct_mixer_topology_build()
1026 sum = mixer->sums[SUM_IN_F_C*CHN_NUM+1]; in ct_mixer_topology_build()
1030 amix_d = mixer->amixers[AMIXER_MIC_C*CHN_NUM]; in ct_mixer_topology_build()
1031 sum = mixer->sums[SUM_IN_F_C*CHN_NUM]; in ct_mixer_topology_build()
1033 amix_d = mixer->amixers[AMIXER_MIC_C*CHN_NUM+1]; in ct_mixer_topology_build()
1034 sum = mixer->sums[SUM_IN_F_C*CHN_NUM+1]; in ct_mixer_topology_build()
1038 amix_d = mixer->amixers[AMIXER_SPDIFI_C*CHN_NUM]; in ct_mixer_topology_build()
1039 sum = mixer->sums[SUM_IN_F_C*CHN_NUM]; in ct_mixer_topology_build()
1041 amix_d = mixer->amixers[AMIXER_SPDIFI_C*CHN_NUM+1]; in ct_mixer_topology_build()
1042 sum = mixer->sums[SUM_IN_F_C*CHN_NUM+1]; in ct_mixer_topology_build()
1083 *rleft = &((struct amixer *)mixer->amixers[amix*CHN_NUM])->rsc; in mixer_get_output_ports()
1087 &((struct amixer *)mixer->amixers[amix*CHN_NUM+1])->rsc; in mixer_get_output_ports()
1097 mixer_set_input_port(mixer->amixers[amix*CHN_NUM], rsc); in mixer_set_input_left()
1100 mixer_set_input_port(mixer->amixers[amix*CHN_NUM], rsc); in mixer_set_input_left()
1111 mixer_set_input_port(mixer->amixers[amix*CHN_NUM+1], rsc); in mixer_set_input_right()
1114 mixer_set_input_port(mixer->amixers[amix*CHN_NUM+1], rsc); in mixer_set_input_right()
1126 for (i = 0; i < NUM_CT_AMIXERS*CHN_NUM; i++) { in mixer_resume()
1150 for (i = 0; i < (NUM_CT_AMIXERS * CHN_NUM); i++) { in ct_mixer_destroy()
1158 for (i = 0; i < (NUM_CT_SUMS * CHN_NUM); i++) { in ct_mixer_destroy()