fix the fm radio functionality

merge the missing fm radio changes from billchen1977's repository