From 2b8a3e38fddf546b6aee93fa01b9ae1fda9be849 Mon Sep 17 00:00:00 2001 From: Lee Hackseung Date: Thu, 21 Sep 2017 10:39:18 +0900 Subject: [PATCH] alsa: change PLAYBACK_PCM_DEVICE value New PLAYBACK_PCM_DEVICE value is "hw:1,0". Starting with version 4.9.39 of the Tizen-rpi3 kernel, there are two playback devices. So the default playback device is second. tizen-audio-impl-pcm.c -> _pcm_open() -> snd_pcm_open(PLAYBACK_PCM_DEVICE) Please see below: **** List of PLAYBACK Hardware Devices **** card 0: vc4hdmi [vc4-hdmi], device 0: MAI PCM vc4-hdmi-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 1: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 Change-Id: I6142cb904ba9eb6ce4867d3cf325e41676eb4a9b Signed-off-by: Hackseung Lee --- tizen-audio-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tizen-audio-internal.h b/tizen-audio-internal.h index 81d570b..7fa706c 100644 --- a/tizen-audio-internal.h +++ b/tizen-audio-internal.h @@ -124,7 +124,7 @@ typedef struct device_type { #define strneq strcmp #define ALSA_DEFAULT_CARD "bcm2835" -#define PLAYBACK_PCM_DEVICE "hw:0,0" +#define PLAYBACK_PCM_DEVICE "hw:1,0" #define CAPTURE_PCM_DEVICE "hw:0,0" /* hw:0,0 */ -- 2.7.4