blob: 8b8aeac922b9e927edfc5f9ff59d3a4804a64cbe [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
42/* Unusupported
43#define SOUND_CAPTURE_LOOPBACK_AEC_DEVICE 1
44#define SOUND_CAPTURE_HOTWORD_DEVICE 0
45*/
46
Andreas Schneiderdc15cec2017-01-30 22:36:25 +010047/*
48 * If the device has stereo speakers and the speakers are arranged on
49 * different sides of the device you can activate this feature by
50 * setting it to 1.
51 */
52#define SWAP_SPEAKER_ON_SCREEN_ROTATION 0
Christopher N. Hessed23c6b52017-01-28 14:18:10 +010053
Andreas Schneider3b643832017-01-31 11:48:22 +010054/*
55 * You can that this to 1 if your kernel supports irq affinity for
56 * fast mode. See /proc/asound/irq_affinity
57 */
58#define SUPPORTS_IRQ_AFFINITY 0
59
Christopher N. Hessed23c6b52017-01-28 14:18:10 +010060#endif // SAMSUNG_AUDIO_H