fix the fm radio functionality

merge missing changes from billchen1977s repo