forked from len0rd/rockbox
fix red on ypr0/ypr1
Always compile in pcm_alsa_set_digital_volume, the linker will optimize it away on targets that don't use it. Change-Id: Ia21c3eaa8a64b75761ab5d056361e7ed1fcf949a
This commit is contained in:
parent
53ebdbc7f3
commit
a486ee4fb8
1 changed files with 0 additions and 2 deletions
|
@ -221,7 +221,6 @@ error:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SONY_NWZ_LINUX
|
|
||||||
/* Digital volume explanation:
|
/* Digital volume explanation:
|
||||||
* with very good approximation (<0.1dB) the convertion from dB to multiplicative
|
* with very good approximation (<0.1dB) the convertion from dB to multiplicative
|
||||||
* factor, for dB>=0, is 2^(dB/3). We can then notice that if we write dB=3*k+r
|
* factor, for dB>=0, is 2^(dB/3). We can then notice that if we write dB=3*k+r
|
||||||
|
@ -253,7 +252,6 @@ void pcm_alsa_set_digital_volume(int vol_db)
|
||||||
dig_vol_mult = 1 << vol_shift | 1 << (vol_shift - 1);
|
dig_vol_mult = 1 << vol_shift | 1 << (vol_shift - 1);
|
||||||
printf("%d dB -> factor = %d\n", vol_db - 48, dig_vol_mult);
|
printf("%d dB -> factor = %d\n", vol_db - 48, dig_vol_mult);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* copy pcm samples to a spare buffer, suitable for snd_pcm_writei() */
|
/* copy pcm samples to a spare buffer, suitable for snd_pcm_writei() */
|
||||||
static bool fill_frames(void)
|
static bool fill_frames(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue