From: Lee Hackseung Date: Thu, 21 Sep 2017 01:39:18 +0000 (+0900) Subject: alsa: change PLAYBACK_PCM_DEVICE value X-Git-Tag: accepted/tizen/unified/20170922.065414^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b8a3e38fddf546b6aee93fa01b9ae1fda9be849;p=platform%2Fadaptation%2Fap_broadcom%2Faudio-hal-bcm2837.git 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 --- 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 */