DO NOT MERGE Fix potential DoS caused by delivering signal to BT process

Bug: 28885210
Change-Id: I63866d894bfca47464d6e42e3fb0357c4f94d360

 Conflicts:
	btif/co/bta_hh_co.c
	btif/src/btif_core.c
Merge conflict resolution of ag/1161415 (referencing ag/1164670)
- Directly into mnc-mr2-release

static int in_set_sample_rate(struct audio_stream *stream, uint32_t rate)
{
 struct a2dp_stream_in *in = (struct a2dp_stream_in *)stream;

    FNLOG();

 if (in->common.cfg.rate > 0 && in->common.cfg.rate == rate)
 return 0;
 else
 return -1;
}

static int in_set_sample_rate(struct audio_stream *stream, uint32_t rate)
{
 struct a2dp_stream_in *in = (struct a2dp_stream_in *)stream;

    FNLOG();

 if (in->common.cfg.rate > 0 && in->common.cfg.rate == rate)
 return 0;
 else
 return -1;
}
