alsa: change PLAYBACK_PCM_DEVICE value 06/151606/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20170922.064509 submit/tizen_4.0/20170921.084657 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorLee Hackseung <lhs@dignsys.com>
Thu, 21 Sep 2017 01:39:18 +0000 (10:39 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 21 Sep 2017 08:44:44 +0000 (08:44 +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>
(cherry picked from commit 2b8a3e38fddf546b6aee93fa01b9ae1fda9be849)

tizen-audio-internal.h

index 81d570bfe3810bc0d9e2518ec395c776541d4aa4..7fa706c9e4d7357747a16d2981fca334abb616a5 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 */