mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: fm-aidl: Remove next_freq/before_freq helpers
This code is working, but it will query the H/W next channel everytime resulting in different freq than the list
This commit is contained in:
parent
d05c95ce7f
commit
a87aa48ec4
2 changed files with 4 additions and 2 deletions
|
|
@ -113,6 +113,7 @@ static int channel_search(const int fd, unsigned int upward,
|
|||
|
||||
return ret;
|
||||
}
|
||||
/*
|
||||
int next_channel(const int fd) {
|
||||
int ret;
|
||||
channel_search(fd, 1, 0, FM_CHANNEL_SPACING_100KHZ, &ret);
|
||||
|
|
@ -123,6 +124,7 @@ int before_channel(const int fd) {
|
|||
channel_search(fd, 0, 0, FM_CHANNEL_SPACING_100KHZ, &ret);
|
||||
return ret;
|
||||
}
|
||||
*/
|
||||
int set_mute(const int fd, bool mute) {
|
||||
int ret = set_control(fd, V4L2_CID_AUDIO_MUTE, !mute);
|
||||
if (ret < 0) {
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ namespace fm_radio_slsi {
|
|||
int open_device(void);
|
||||
int get_frequency(const int fd, int *channel);
|
||||
int set_frequency(const int fd, int channel);
|
||||
int next_channel(const int fd);
|
||||
int before_channel(const int fd);
|
||||
//int next_channel(const int fd);
|
||||
//int before_channel(const int fd);
|
||||
int set_mute(const int fd, bool mute);
|
||||
int set_volume(int fd, int volume);
|
||||
std::vector<int> get_freqs(const int fd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue