diff options
Diffstat (limited to 'apps/eq_menu.c')
-rw-r--r-- | apps/eq_menu.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/apps/eq_menu.c b/apps/eq_menu.c index 9939ee77fe..798b05d304 100644 --- a/apps/eq_menu.c +++ b/apps/eq_menu.c | |||
@@ -788,7 +788,7 @@ static bool eq_hw_set_band0_cutoff(void) | |||
788 | sizeof(names) / sizeof(*names), NULL); | 788 | sizeof(names) / sizeof(*names), NULL); |
789 | 789 | ||
790 | #ifndef SIMULATOR | 790 | #ifndef SIMULATOR |
791 | wmcodec_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, 0, | 791 | audiohw_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, 0, |
792 | global_settings.eq_hw_band0_gain); | 792 | global_settings.eq_hw_band0_gain); |
793 | #endif | 793 | #endif |
794 | 794 | ||
@@ -803,7 +803,7 @@ static bool eq_hw_set_band0_gain(void) | |||
803 | eq_hw_gain_format); | 803 | eq_hw_gain_format); |
804 | 804 | ||
805 | #ifndef SIMULATOR | 805 | #ifndef SIMULATOR |
806 | wmcodec_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, 0, | 806 | audiohw_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, 0, |
807 | global_settings.eq_hw_band0_gain); | 807 | global_settings.eq_hw_band0_gain); |
808 | #endif | 808 | #endif |
809 | 809 | ||
@@ -824,7 +824,7 @@ static bool eq_hw_set_band1_center(void) | |||
824 | sizeof(names) / sizeof(*names), NULL); | 824 | sizeof(names) / sizeof(*names), NULL); |
825 | 825 | ||
826 | #ifndef SIMULATOR | 826 | #ifndef SIMULATOR |
827 | wmcodec_set_equalizer_band(1, global_settings.eq_hw_band1_center, | 827 | audiohw_set_equalizer_band(1, global_settings.eq_hw_band1_center, |
828 | global_settings.eq_hw_band1_bandwidth, | 828 | global_settings.eq_hw_band1_bandwidth, |
829 | global_settings.eq_hw_band1_gain); | 829 | global_settings.eq_hw_band1_gain); |
830 | #endif | 830 | #endif |
@@ -839,7 +839,7 @@ static bool eq_hw_set_band1_bandwidth(void) | |||
839 | BANDWIDTH_NAMES_SIZE, NULL); | 839 | BANDWIDTH_NAMES_SIZE, NULL); |
840 | 840 | ||
841 | #ifndef SIMULATOR | 841 | #ifndef SIMULATOR |
842 | wmcodec_set_equalizer_band(1, global_settings.eq_hw_band1_center, | 842 | audiohw_set_equalizer_band(1, global_settings.eq_hw_band1_center, |
843 | global_settings.eq_hw_band1_bandwidth, | 843 | global_settings.eq_hw_band1_bandwidth, |
844 | global_settings.eq_hw_band1_gain); | 844 | global_settings.eq_hw_band1_gain); |
845 | #endif | 845 | #endif |
@@ -855,7 +855,7 @@ static bool eq_hw_set_band1_gain(void) | |||
855 | eq_hw_gain_format); | 855 | eq_hw_gain_format); |
856 | 856 | ||
857 | #ifndef SIMULATOR | 857 | #ifndef SIMULATOR |
858 | wmcodec_set_equalizer_band(1, global_settings.eq_hw_band1_center, | 858 | audiohw_set_equalizer_band(1, global_settings.eq_hw_band1_center, |
859 | global_settings.eq_hw_band1_bandwidth, | 859 | global_settings.eq_hw_band1_bandwidth, |
860 | global_settings.eq_hw_band1_gain); | 860 | global_settings.eq_hw_band1_gain); |
861 | #endif | 861 | #endif |
@@ -877,7 +877,7 @@ static bool eq_hw_set_band2_center(void) | |||
877 | sizeof(names) / sizeof(*names), NULL); | 877 | sizeof(names) / sizeof(*names), NULL); |
878 | 878 | ||
879 | #ifndef SIMULATOR | 879 | #ifndef SIMULATOR |
880 | wmcodec_set_equalizer_band(2, global_settings.eq_hw_band2_center, | 880 | audiohw_set_equalizer_band(2, global_settings.eq_hw_band2_center, |
881 | global_settings.eq_hw_band2_bandwidth, | 881 | global_settings.eq_hw_band2_bandwidth, |
882 | global_settings.eq_hw_band2_gain); | 882 | global_settings.eq_hw_band2_gain); |
883 | #endif | 883 | #endif |
@@ -892,7 +892,7 @@ static bool eq_hw_set_band2_bandwidth(void) | |||
892 | BANDWIDTH_NAMES_SIZE, NULL); | 892 | BANDWIDTH_NAMES_SIZE, NULL); |
893 | 893 | ||
894 | #ifndef SIMULATOR | 894 | #ifndef SIMULATOR |
895 | wmcodec_set_equalizer_band(2, global_settings.eq_hw_band2_center, | 895 | audiohw_set_equalizer_band(2, global_settings.eq_hw_band2_center, |
896 | global_settings.eq_hw_band2_bandwidth, | 896 | global_settings.eq_hw_band2_bandwidth, |
897 | global_settings.eq_hw_band2_gain); | 897 | global_settings.eq_hw_band2_gain); |
898 | #endif | 898 | #endif |
@@ -908,7 +908,7 @@ static bool eq_hw_set_band2_gain(void) | |||
908 | eq_hw_gain_format); | 908 | eq_hw_gain_format); |
909 | 909 | ||
910 | #ifndef SIMULATOR | 910 | #ifndef SIMULATOR |
911 | wmcodec_set_equalizer_band(2, global_settings.eq_hw_band2_center, | 911 | audiohw_set_equalizer_band(2, global_settings.eq_hw_band2_center, |
912 | global_settings.eq_hw_band2_bandwidth, | 912 | global_settings.eq_hw_band2_bandwidth, |
913 | global_settings.eq_hw_band2_gain); | 913 | global_settings.eq_hw_band2_gain); |
914 | #endif | 914 | #endif |
@@ -930,7 +930,7 @@ static bool eq_hw_set_band3_center(void) | |||
930 | sizeof(names) / sizeof(*names), NULL); | 930 | sizeof(names) / sizeof(*names), NULL); |
931 | 931 | ||
932 | #ifndef SIMULATOR | 932 | #ifndef SIMULATOR |
933 | wmcodec_set_equalizer_band(3, global_settings.eq_hw_band3_center, | 933 | audiohw_set_equalizer_band(3, global_settings.eq_hw_band3_center, |
934 | global_settings.eq_hw_band3_bandwidth, | 934 | global_settings.eq_hw_band3_bandwidth, |
935 | global_settings.eq_hw_band3_gain); | 935 | global_settings.eq_hw_band3_gain); |
936 | #endif | 936 | #endif |
@@ -945,7 +945,7 @@ static bool eq_hw_set_band3_bandwidth(void) | |||
945 | BANDWIDTH_NAMES_SIZE, NULL); | 945 | BANDWIDTH_NAMES_SIZE, NULL); |
946 | 946 | ||
947 | #ifndef SIMULATOR | 947 | #ifndef SIMULATOR |
948 | wmcodec_set_equalizer_band(3, global_settings.eq_hw_band3_center, | 948 | audiohw_set_equalizer_band(3, global_settings.eq_hw_band3_center, |
949 | global_settings.eq_hw_band3_bandwidth, | 949 | global_settings.eq_hw_band3_bandwidth, |
950 | global_settings.eq_hw_band3_gain); | 950 | global_settings.eq_hw_band3_gain); |
951 | #endif | 951 | #endif |
@@ -961,7 +961,7 @@ static bool eq_hw_set_band3_gain(void) | |||
961 | eq_hw_gain_format); | 961 | eq_hw_gain_format); |
962 | 962 | ||
963 | #ifndef SIMULATOR | 963 | #ifndef SIMULATOR |
964 | wmcodec_set_equalizer_band(3, global_settings.eq_hw_band3_center, | 964 | audiohw_set_equalizer_band(3, global_settings.eq_hw_band3_center, |
965 | global_settings.eq_hw_band3_bandwidth, | 965 | global_settings.eq_hw_band3_bandwidth, |
966 | global_settings.eq_hw_band3_gain); | 966 | global_settings.eq_hw_band3_gain); |
967 | #endif | 967 | #endif |
@@ -983,7 +983,7 @@ static bool eq_hw_set_band4_cutoff(void) | |||
983 | sizeof(names) / sizeof(*names), NULL); | 983 | sizeof(names) / sizeof(*names), NULL); |
984 | 984 | ||
985 | #ifndef SIMULATOR | 985 | #ifndef SIMULATOR |
986 | wmcodec_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, 0, | 986 | audiohw_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, 0, |
987 | global_settings.eq_hw_band4_gain); | 987 | global_settings.eq_hw_band4_gain); |
988 | #endif | 988 | #endif |
989 | 989 | ||
@@ -998,7 +998,7 @@ static bool eq_hw_set_band4_gain(void) | |||
998 | eq_hw_gain_format); | 998 | eq_hw_gain_format); |
999 | 999 | ||
1000 | #ifndef SIMULATOR | 1000 | #ifndef SIMULATOR |
1001 | wmcodec_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, 0, | 1001 | audiohw_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, 0, |
1002 | global_settings.eq_hw_band4_gain); | 1002 | global_settings.eq_hw_band4_gain); |
1003 | #endif | 1003 | #endif |
1004 | 1004 | ||
@@ -1011,28 +1011,28 @@ void eq_hw_enable(bool enable) | |||
1011 | (void) enable; | 1011 | (void) enable; |
1012 | #else | 1012 | #else |
1013 | if (enable) { | 1013 | if (enable) { |
1014 | wmcodec_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, | 1014 | audiohw_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, |
1015 | 0, global_settings.eq_hw_band0_gain); | 1015 | 0, global_settings.eq_hw_band0_gain); |
1016 | wmcodec_set_equalizer_band(1, global_settings.eq_hw_band1_center, | 1016 | audiohw_set_equalizer_band(1, global_settings.eq_hw_band1_center, |
1017 | global_settings.eq_hw_band1_bandwidth, | 1017 | global_settings.eq_hw_band1_bandwidth, |
1018 | global_settings.eq_hw_band1_gain); | 1018 | global_settings.eq_hw_band1_gain); |
1019 | wmcodec_set_equalizer_band(2, global_settings.eq_hw_band2_center, | 1019 | audiohw_set_equalizer_band(2, global_settings.eq_hw_band2_center, |
1020 | global_settings.eq_hw_band2_bandwidth, | 1020 | global_settings.eq_hw_band2_bandwidth, |
1021 | global_settings.eq_hw_band2_gain); | 1021 | global_settings.eq_hw_band2_gain); |
1022 | wmcodec_set_equalizer_band(3, global_settings.eq_hw_band3_center, | 1022 | audiohw_set_equalizer_band(3, global_settings.eq_hw_band3_center, |
1023 | global_settings.eq_hw_band3_bandwidth, | 1023 | global_settings.eq_hw_band3_bandwidth, |
1024 | global_settings.eq_hw_band3_gain); | 1024 | global_settings.eq_hw_band3_gain); |
1025 | wmcodec_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, | 1025 | audiohw_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, |
1026 | 0, global_settings.eq_hw_band4_gain); | 1026 | 0, global_settings.eq_hw_band4_gain); |
1027 | } else { | 1027 | } else { |
1028 | wmcodec_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, 0, 0); | 1028 | audiohw_set_equalizer_band(0, global_settings.eq_hw_band0_cutoff, 0, 0); |
1029 | wmcodec_set_equalizer_band(1, global_settings.eq_hw_band1_center, | 1029 | audiohw_set_equalizer_band(1, global_settings.eq_hw_band1_center, |
1030 | global_settings.eq_hw_band1_bandwidth, 0); | 1030 | global_settings.eq_hw_band1_bandwidth, 0); |
1031 | wmcodec_set_equalizer_band(2, global_settings.eq_hw_band2_center, | 1031 | audiohw_set_equalizer_band(2, global_settings.eq_hw_band2_center, |
1032 | global_settings.eq_hw_band2_bandwidth, 0); | 1032 | global_settings.eq_hw_band2_bandwidth, 0); |
1033 | wmcodec_set_equalizer_band(3, global_settings.eq_hw_band3_center, | 1033 | audiohw_set_equalizer_band(3, global_settings.eq_hw_band3_center, |
1034 | global_settings.eq_hw_band3_bandwidth, 0); | 1034 | global_settings.eq_hw_band3_bandwidth, 0); |
1035 | wmcodec_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, 0, 0); | 1035 | audiohw_set_equalizer_band(4, global_settings.eq_hw_band4_cutoff, 0, 0); |
1036 | } | 1036 | } |
1037 | #endif | 1037 | #endif |
1038 | } | 1038 | } |