platform/adaptation/ap_broadcom/audio-hal-bcm2837.git
8 months agoRemove unnecessary code 98/297698/2 accepted/tizen_8.0_unified accepted/tizen_unified accepted/tizen_unified_riscv tizen tizen_8.0 accepted/tizen/8.0/unified/20231005.092416 accepted/tizen/unified/20230831.081050 accepted/tizen/unified/riscv/20231220.095318 tizen_8.0_m2_release
Jaechul Lee [Wed, 23 Aug 2023 04:45:43 +0000 (13:45 +0900)]
Remove unnecessary code

"PCM Playback Route" control always fails when pulseaudio starts because
the control doesn't exist after upgrading kernel.

[Version] 0.1.20
[Issue Type] Update

Change-Id: I6dd9aecc8377778038cdd33d05f011a52a6a1e6c
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
16 months agoChange mixer name to 'Headphone Playback Volume' 44/285244/1 accepted/tizen/unified/20230824.064523
Jaechul Lee [Thu, 8 Dec 2022 05:19:46 +0000 (14:19 +0900)]
Change mixer name to 'Headphone Playback Volume'

the voluem mixer name has been changed.

[Version] 0.1.19
[Issue Type] Bug

Change-Id: I50dc329d36fd562ff1347d668aa7632b86874841
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
22 months agoFix coverity issues (EVALUATION_ORDER) 15/277215/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062624 accepted/tizen/7.0/unified/hotfix/20221116.104326 accepted/tizen/unified/20220705.211057 submit/tizen/20220704.084748 tizen_7.0_m2_release
Jaechul Lee [Mon, 4 Jul 2022 02:12:00 +0000 (11:12 +0900)]
Fix coverity issues (EVALUATION_ORDER)

[Version] 0.1.18
[Issue Type] Coverity

Change-Id: Id4bc57b58ebc19f46aa841305b285e653d024530
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
22 months agoChange set_rate/set_channels to set_rate_near/set_channels_near 24/274224/11 accepted/tizen/unified/20220628.133612 submit/tizen/20220627.045454 submit/tizen/20220627.084702 submit/tizen/20220628.002620
Jaechul Lee [Mon, 25 Apr 2022 05:06:26 +0000 (14:06 +0900)]
Change set_rate/set_channels to set_rate_near/set_channels_near

It tries to open a device by _near APIs in order to support USB devices.

[Version] 0.1.17
[Issue Type] New feature

Change-Id: Ib9c8b93cc1b7b2a40026c183de3e1ef3575ea607
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
2 years agoUse start threshold / avail min properly 32/265232/1 accepted/tizen/unified/20211101.140221 submit/tizen/20211013.065211 submit/tizen/20211015.121039 submit/tizen/20211028.130933 submit/tizen/20211101.022107
Jaechul Lee [Wed, 13 Oct 2021 05:40:33 +0000 (14:40 +0900)]
Use start threshold / avail min properly

[Version] 0.1.16
[Issue Type] Update

Change-Id: Ife9c4639ce2f82e0e9d33ccbc2efef326033585e
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
2 years agoUse general default card name instead of a specific one 79/261379/1 accepted/tizen/6.5/unified/20211028.093147 accepted/tizen/unified/20210719.025303 submit/tizen/20210716.081411 submit/tizen_6.5/20211028.161401 tizen_6.5.m2_release
Seungbae Shin [Fri, 16 Jul 2021 07:42:30 +0000 (16:42 +0900)]
Use general default card name instead of a specific one

[Version] 0.1.15
[Issue Type] Update

Change-Id: I4291a4764b255fe429bab75bd08f23ddb9fd75d5

2 years agoSet default playback route to headphone and change by route option 43/259043/4 accepted/tizen/unified/20210708.131518 submit/tizen/20210705.072009 submit/tizen/20210707.025110
Seungbae Shin [Mon, 31 May 2021 08:18:06 +0000 (17:18 +0900)]
Set default playback route to headphone and change by route option

Previously playback route was initialize to headphone only if headless case.
Now we will handle route option for that through sound-manager internal api,
so set default as headphone always.

[Version] 0.1.14
[Issue Type] Feature

Change-Id: Ie95585900aef0cf561494b401d04c9070052567b

2 years agoChange path of configuration and license files 00/259200/1 accepted/tizen/unified/20210608.131209 submit/tizen/20210604.030216
Jaechul Lee [Wed, 2 Jun 2021 05:17:09 +0000 (14:17 +0900)]
Change path of configuration and license files

[Version] 0.1.13
[Issue Type] Update

Change-Id: I4613cc719d57d667cbad40ef308befe3cc008e67
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
3 years agoAdd missing implementations 41/253641/4 accepted/tizen/unified/20210219.095201 submit/tizen/20210218.045157 submit/tizen/20210219.045921
Seungbae Shin [Wed, 10 Feb 2021 03:21:25 +0000 (12:21 +0900)]
Add missing implementations

sync code with other audio hal backends

[Version] 0.1.12
[Issue Type] Update

Change-Id: I386229e4c1d4ed93a7f80664acf1d68be4fe9532

3 years agotypdef postfix is changed to {enum}_e and {struct}_s 50/253150/2
Jaechul Lee [Fri, 5 Feb 2021 02:25:37 +0000 (11:25 +0900)]
typdef postfix is changed to {enum}_e and {struct}_s

enum and structure are changed for better readability. In case of enum,
{enum}_t is changed to {enum}_'e', and {struct}_t is changed to
{struct}_'s'

[Version] 0.1.11
[Issue Type] Readability enhance

Change-Id: Ic0cb2776669f101e74b6c0513199d50d3a1ac6cd
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
3 years agoFix build warnings 29/253029/2
Jaechul Lee [Thu, 4 Feb 2021 03:29:40 +0000 (12:29 +0900)]
Fix build warnings

[Version] 0.1.10
[Issue Type] Build

Change-Id: If0745cdad5ab09b0bae67d98e522c5ee91cd35e8
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
3 years agoUse hal interface 47/252247/10 accepted/tizen/unified/20210204.134555 submit/tizen/20210203.005915 submit/tizen/20210204.010649
Jaechul Lee [Tue, 26 Jan 2021 04:50:39 +0000 (13:50 +0900)]
Use hal interface

hal interfaces were added. Besides, structure and enum names were changed
for better readability. In case of enum, audio_return_t is changed to
audio_return_'e', and device_info_t is changed to device_info_'s'.

[Version] 0.1.9
[Issue Type] None

Change-Id: I88005d26198d0453d07d08059f58e4cdf2206cb3
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoChange default volume value of volume mixer control 89/216089/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/5.5/unified/20191031.014604 accepted/tizen/5.5/unified/mobile/hotfix/20201027.082814 accepted/tizen/5.5/unified/wearable/hotfix/20201027.123844 accepted/tizen/6.0/unified/20201030.123014 accepted/tizen/6.0/unified/hotfix/20201103.052858 accepted/tizen/unified/20191021.072012 submit/tizen/20191021.045026 submit/tizen_5.5/20191031.000001 submit/tizen_5.5_mobile_hotfix/20201026.185101 submit/tizen_5.5_wearable_hotfix/20201026.184301 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 tizen_5.5.m2_release tizen_6.0.m2_release
Sangchul Lee [Mon, 21 Oct 2019 04:43:54 +0000 (13:43 +0900)]
Change default volume value of volume mixer control

It is revised from 90% to 100%.

[Version] 0.1.8
[Issue Type] Tuning

Change-Id: Id50fbcb556e40b080fb256d4dea87f0b7a4917f7
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
4 years agoSet volume mixer control value 86/216086/2 submit/tizen/20191021.043551
Sangchul Lee [Mon, 21 Oct 2019 03:58:43 +0000 (12:58 +0900)]
Set volume mixer control value

It had been set inside of UCM with a verb, but we removed the UCM
codes in the previous patch, Now it is added to _audio_volume_init()
and it is set with the previous value.

[Version] 0.1.7
[Issue Type] Bug fix

Change-Id: I383ea92485f450258f309a17bef16714dfc3579f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
4 years agoRemove codes related to UCM 47/215647/1 accepted/tizen/unified/20191017.011741 submit/tizen/20191016.023524 submit/tizen/20191016.053318
Sangchul Lee [Mon, 14 Oct 2019 01:09:33 +0000 (10:09 +0900)]
Remove codes related to UCM

The HDMI audio device could not be detected from PulseAudio,
it is impossible to set the HDMI device to UCM which leads to
set "PCM Playback Route" mixer value to 2(HDMI).

Hence, we decide to set the mixer value to 0(Auto) and leave it
without any UCM setting.

With the HDMI connected booting, sound will be played through the HDMI.
Otherwise sound will be played through the audiojack.

[Version] 0.1.6
[Issue Type] Bug fix

Change-Id: I6f87eee5bd074f32763f2c4a99bc738fe547d266
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
4 years agoUpdate display feature key 72/211272/1 accepted/tizen/unified/20190801.113333 submit/tizen/20190801.025847
Seungbae Shin [Thu, 1 Aug 2019 02:31:37 +0000 (11:31 +0900)]
Update display feature key

[Version] 0.1.5
[Issue Type] Feature update

Change-Id: I4823c748e45a83f26f98ca6c44111153bb6dd783

4 years agoSync with latest HAL codes 05/206105/1 accepted/tizen/unified/20190610.082600 submit/tizen/20190515.035049 submit/tizen/20190607.015716
Seungbae Shin [Tue, 14 May 2019 08:49:26 +0000 (17:49 +0900)]
Sync with latest HAL codes

[Version] 0.1.4
[Issue Type] Sync

Change-Id: I7ab1b2bd783cc0cfeeae7dc104aa7c68006265fc

5 years agoForce to use earjack only for headless profile 44/202244/2 accepted/tizen/unified/20190327.160455 submit/tizen/20190327.104232
Seungbae Shin [Tue, 26 Mar 2019 06:25:37 +0000 (15:25 +0900)]
Force to use earjack only for headless profile

[Version] 0.1.3
[Issue Type] Add

Change-Id: Ic4142c971ac9c8a623b78c285b7c97d1ab40929b

5 years agoFix invalid format string 36/195536/2 accepted/tizen/unified/20181218.062909 submit/tizen/20181217.051937
Seungbae Shin [Fri, 14 Dec 2018 06:50:05 +0000 (15:50 +0900)]
Fix invalid format string

[Version] 0.1.2
[Issue Type] Build

Change-Id: Ib469e12d1d1324e4a1bcbaa51afce9f42b7f1b88

5 years agoCard and device arguments are added to pcm open API 82/184682/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.011955 accepted/tizen/unified/20180726.064835 submit/tizen/20180724.034640 submit/tizen_5.0/20181101.000001
Jungsup Lee [Tue, 26 Jun 2018 05:38:32 +0000 (14:38 +0900)]
Card and device arguments are added to pcm open API

[Version] 0.1.1
[Issue Type] API

Change-Id: Ia1ba2a63b3aa3212e756debf548611046ebb9495
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
6 years agoalsa: change PLAYBACK_PCM_DEVICE value 27/151427/2 accepted/tizen/unified/20170922.065414 submit/tizen/20170921.084643
Lee Hackseung [Thu, 21 Sep 2017 01:39:18 +0000 (10:39 +0900)]
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 <lhs@dignsys.com>
6 years agorevise installing a license file 55/145255/1
Youngjae Shin [Tue, 22 Aug 2017 01:54:07 +0000 (10:54 +0900)]
revise installing a license file

Change-Id: I03eeecb23c2cafb89433856bd1cf3d5858334688

6 years agoCleared all warnings when compiling 51/136151/2 accepted/tizen/4.0/unified/20170816.012900 accepted/tizen/4.0/unified/20170828.224437 accepted/tizen/unified/20170718.173919 submit/tizen/20170717.070127 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100001 submit/tizen_4.0/20170828.110001
Lee Hackseung [Wed, 28 Jun 2017 08:30:57 +0000 (17:30 +0900)]
Cleared all warnings when compiling

tizen-audio-impl-pcm.c
Change AUDIO_LOG_ERROR usage.

Change-Id: I8cdafcf338ba8904d191d2fd32749747352b775d

6 years agoRemove SPEAKER, MIC and JACK 66/136066/2
Lee Hackseung [Wed, 28 Jun 2017 02:53:52 +0000 (11:53 +0900)]
Remove SPEAKER, MIC and JACK

Does not support these devices.

Change-Id: I9fd6ea8f95a2824de69e556cb557265b909e6148

6 years agoInitialization audio HAL for BCM2837 40/135540/1
Hackseung [Fri, 23 Jun 2017 04:24:06 +0000 (13:24 +0900)]
Initialization audio HAL for BCM2837

Target board is the Raspberry PI 3 Model B

Codes are based on audio-hal-alc5658(0.2.24)

Change-Id: I0e81a2e71e820a2a23eecb69a92cebfb6d28b8a1

6 years agoInitial empty repository master
Tizen Infrastructure [Thu, 22 Jun 2017 23:12:09 +0000 (23:12 +0000)]
Initial empty repository