alsa: change PLAYBACK_PCM_DEVICE value 27/151427/2 accepted/tizen/unified/20170922.065414 submit/tizen/20170921.084643
authorLee Hackseung <lhs@dignsys.com>
Thu, 21 Sep 2017 01:39:18 +0000 (10:39 +0900)
committerLee hackseung <lhs@dignsys.com>
Thu, 21 Sep 2017 07:26:03 +0000 (07:26 +0000)
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 <lhs@dignsys.com>
tizen-audio-internal.h

index 81d570b..7fa706c 100644 (file)
@@ -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 */