mirror of
https://github.com/AetherDroid/android_device_samsung_universal7570-common.git
synced 2025-10-29 15:28:51 +01:00
Initial common device tree
This commit is contained in:
commit
765503ce5e
71 changed files with 22665 additions and 0 deletions
84
include/samsung_audio.h
Normal file
84
include/samsung_audio.h
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
* Copyright (C) 2017 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <telephony/ril.h>
|
||||
|
||||
#ifndef SAMSUNG_AUDIO_H
|
||||
#define SAMSUNG_AUDIO_H
|
||||
|
||||
#define MIXER_CARD 0
|
||||
#define SOUND_CARD 0
|
||||
|
||||
/* Playback */
|
||||
#define SOUND_DEEP_BUFFER_DEVICE 1
|
||||
#define SOUND_PLAYBACK_DEVICE 0
|
||||
#define SOUND_PLAYBACK_SCO_DEVICE 3
|
||||
|
||||
/* Capture */
|
||||
#define SOUND_CAPTURE_DEVICE 0
|
||||
#define SOUND_CAPTURE_SCO_DEVICE 3
|
||||
|
||||
/* Voice calls */
|
||||
#define SOUND_PLAYBACK_VOICE_DEVICE 2
|
||||
#define SOUND_CAPTURE_VOICE_DEVICE 2
|
||||
|
||||
/* Wideband AMR callback */
|
||||
#ifndef RIL_UNSOL_SNDMGR_WB_AMR_REPORT
|
||||
#ifdef RIL_UNSOL_WB_AMR_STATE
|
||||
#define RIL_UNSOL_SNDMGR_WB_AMR_REPORT RIL_UNSOL_WB_AMR_STATE
|
||||
#else
|
||||
#define RIL_UNSOL_SNDMGR_WB_AMR_REPORT 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Unusupported
|
||||
#define SOUND_CAPTURE_LOOPBACK_AEC_DEVICE 1
|
||||
#define SOUND_CAPTURE_HOTWORD_DEVICE 0
|
||||
*/
|
||||
|
||||
/*
|
||||
* If the device has stereo speakers and the speakers are arranged on
|
||||
* different sides of the device you can activate this feature by
|
||||
* setting it to 1.
|
||||
*/
|
||||
#define SWAP_SPEAKER_ON_SCREEN_ROTATION 0
|
||||
|
||||
/*
|
||||
* You can that this to 1 if your kernel supports irq affinity for
|
||||
* fast mode. See /proc/asound/irq_affinity
|
||||
*/
|
||||
#define SUPPORTS_IRQ_AFFINITY 0
|
||||
|
||||
/*
|
||||
* The Wolfson/Cirruslogic chips need to shutdown the DAPM route completely
|
||||
* to be able to load a new firmware. Some of these chips need a delay after
|
||||
* shutodown to full poweroff the DSPs.
|
||||
*
|
||||
* A good value to start with is 10ms:
|
||||
*
|
||||
* #define DSP_POWEROFF_DELAY 10 * 1000
|
||||
*/
|
||||
/* #define DSP_POWEROFF_DELAY 0 */
|
||||
|
||||
/*
|
||||
* Some device variants (often T-Mobile) have a separate voice processing IC
|
||||
* (Audience EarSmart xxx).
|
||||
* This hooks into the voice call session and enables, configures and disables
|
||||
* this extra firmware so RX/TX streams can be routed by the driver.
|
||||
*/
|
||||
/* #define AUDIENCE_EARSMART_IC */
|
||||
|
||||
#endif // SAMSUNG_AUDIO_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue