blob: 1e84c05f49bce58d942ad236421e5443ccdcc62a [file] [log] [blame]
Christopher N. Hessed23c6b52017-01-28 14:18:10 +01001/*
2 * Copyright (C) 2017 The LineageOS Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef SAMSUNG_AUDIO_H
18#define SAMSUNG_AUDIO_H
19
20/*
21 * Sound card specific defines.
22 *
23 * This is an example configuration for a WolfsonMicro WM1814 sound card.
24 * Codec: Vegas
25 *
26 * If you driver does not support one of the devices, the id should not be
27 * defined.
28 */
29
30#define MIXER_CARD 0
31#define SOUND_CARD 0
32
33/* Playback */
Christopher N. Hesse8414bd22017-01-30 18:57:20 +010034#define SOUND_DEEP_BUFFER_DEVICE 3
Christopher N. Hessed23c6b52017-01-28 14:18:10 +010035#define SOUND_PLAYBACK_DEVICE 4
36#define SOUND_PLAYBACK_SCO_DEVICE 2
37
38/* Capture */
39#define SOUND_CAPTURE_DEVICE 0
40#define SOUND_CAPTURE_SCO_DEVICE 2
41
Christopher N. Hesse696959d2017-02-02 20:49:55 +010042/* Voice calls */
43#define SOUND_PLAYBACK_VOICE_DEVICE 1
44#define SOUND_CAPTURE_VOICE_DEVICE 1
45
Christopher N. Hessed23c6b52017-01-28 14:18:10 +010046/* Unusupported
47#define SOUND_CAPTURE_LOOPBACK_AEC_DEVICE 1
48#define SOUND_CAPTURE_HOTWORD_DEVICE 0
49*/
50
Andreas Schneiderdc15cec2017-01-30 22:36:25 +010051/*
52 * If the device has stereo speakers and the speakers are arranged on
53 * different sides of the device you can activate this feature by
54 * setting it to 1.
55 */
56#define SWAP_SPEAKER_ON_SCREEN_ROTATION 0
Christopher N. Hessed23c6b52017-01-28 14:18:10 +010057
Andreas Schneider3b643832017-01-31 11:48:22 +010058/*
59 * You can that this to 1 if your kernel supports irq affinity for
60 * fast mode. See /proc/asound/irq_affinity
61 */
62#define SUPPORTS_IRQ_AFFINITY 0
63
Andreas Schneider759368f2017-02-02 16:11:14 +010064/*
65 * The Wolfson/Cirruslogic chips need to shutdown the DAPM route completely
66 * to be able to load a new firmware. Some of these chips need a delay after
67 * shutodown to full poweroff the DSPs.
68 *
69 * A good value to start with is 10ms:
70 *
71 * #define DSP_POWEROFF_DELAY 10 * 1000
72 */
73/* #define DSP_POWEROFF_DELAY 0 */
74
Christopher N. Hessed23c6b52017-01-28 14:18:10 +010075#endif // SAMSUNG_AUDIO_H