Lines Matching refs:rate_str
800 const char *rate_str = NULL, *in_channels = NULL; in a2dp_set_backend_cfg() local
817 rate_str = "KHZ_44P1"; in a2dp_set_backend_cfg()
820 rate_str = "KHZ_88P2"; in a2dp_set_backend_cfg()
823 rate_str = "KHZ_96"; in a2dp_set_backend_cfg()
827 rate_str = "KHZ_48"; in a2dp_set_backend_cfg()
831 ALOGV("%s: set backend rx sample rate = %s", __func__, rate_str); in a2dp_set_backend_cfg()
838 if (mixer_ctl_set_enum_by_string(ctl_sample_rate, rate_str) != 0) { in a2dp_set_backend_cfg()
839 ALOGE("%s: Failed to set backend sample rate = %s", __func__, rate_str); in a2dp_set_backend_cfg()
845 rate_str = ABR_TX_SAMPLE_RATE; in a2dp_set_backend_cfg()
847 ALOGV("%s: set backend tx sample rate = %s", __func__, rate_str); in a2dp_set_backend_cfg()
854 if (mixer_ctl_set_enum_by_string(ctl_sample_rate, rate_str) != 0) { in a2dp_set_backend_cfg()
856 __func__, rate_str); in a2dp_set_backend_cfg()
922 const char *rate_str = "KHZ_8", *in_channels = "Zero"; in a2dp_reset_backend_cfg() local
927 ALOGV("%s: reset backend sample rate = %s", __func__, rate_str); in a2dp_reset_backend_cfg()
934 if (mixer_ctl_set_enum_by_string(ctl_sample_rate_rx, rate_str) != 0) { in a2dp_reset_backend_cfg()
935 ALOGE("%s: Failed to reset Rx backend sample rate = %s", __func__, rate_str); in a2dp_reset_backend_cfg()
946 if (mixer_ctl_set_enum_by_string(ctl_sample_rate_tx, rate_str) != 0) { in a2dp_reset_backend_cfg()
947 ALOGE("%s: Failed to reset Tx backend sample rate = %s", __func__, rate_str); in a2dp_reset_backend_cfg()