summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/audio/nwzlinux-codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/nwzlinux-codec.c')
-rw-r--r--firmware/drivers/audio/nwzlinux-codec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/drivers/audio/nwzlinux-codec.c b/firmware/drivers/audio/nwzlinux-codec.c
index ca5e274255..5085befb20 100644
--- a/firmware/drivers/audio/nwzlinux-codec.c
+++ b/firmware/drivers/audio/nwzlinux-codec.c
@@ -26,7 +26,6 @@
#include "audio.h"
#include "sound.h"
#include "audiohw.h"
-#include "cscodec.h"
#include "nwzlinux_codec.h"
#include "stdlib.h"
#include "panic.h"
@@ -313,7 +312,7 @@ void audiohw_set_playback_src(enum nwz_src_t src)
void audiohw_preinit(void)
{
- alsa_controls_init();
+ alsa_controls_init("default");
/* turn on codec */
alsa_controls_set_bool("CODEC Power Switch", true);
/* mute */
@@ -416,7 +415,7 @@ void audiohw_set_volume(int vol_l, int vol_r)
printf(" set driver volume %d (%d dB)\n", drv_vol, curve->level[drv_vol] / 10);
nwz_set_driver_vol(drv_vol);
printf(" set digital volume %d dB\n", vol / 10);
- pcm_alsa_set_digital_volume(vol / 10, vol / 10);
+ pcm_set_mixer_volume(vol / 10, vol / 10);
}
void audiohw_close(void)