forked from len0rd/rockbox
Si4700 tuner: It doesn't like to do i2c while powered off and hangs the bus. Make 'pause' simply be 'mute', allowing tuning during user mute as well as nicer-sounding unmute.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26269 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
06601e5fba
commit
e236b95746
2 changed files with 6 additions and 2 deletions
|
|
@ -279,7 +279,9 @@ void radio_pause(void)
|
|||
}
|
||||
|
||||
tuner_set(RADIO_MUTE, 1);
|
||||
tuner_set(RADIO_SLEEP, 1);
|
||||
/* For si4700: 2==this is really 'pause'. other tuners treat it
|
||||
* like 'bool'. */
|
||||
tuner_set(RADIO_SLEEP, 2);
|
||||
|
||||
radio_status = FMRADIO_PAUSED;
|
||||
} /* radio_pause */
|
||||
|
|
|
|||
|
|
@ -411,7 +411,9 @@ int si4700_set(int setting, int value)
|
|||
switch(setting)
|
||||
{
|
||||
case RADIO_SLEEP:
|
||||
if (value != 2)
|
||||
si4700_sleep(value);
|
||||
/* else actually it's 'pause' */
|
||||
break;
|
||||
|
||||
case RADIO_FREQUENCY:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue