Christopher N. Hesse | d23c6b5 | 2017-01-28 14:18:10 +0100 | [diff] [blame] | 1 | /* |
| 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. Hesse | 8414bd2 | 2017-01-30 18:57:20 +0100 | [diff] [blame] | 34 | #define SOUND_DEEP_BUFFER_DEVICE 3 |
Christopher N. Hesse | d23c6b5 | 2017-01-28 14:18:10 +0100 | [diff] [blame] | 35 | #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. Hesse | 696959d | 2017-02-02 20:49:55 +0100 | [diff] [blame] | 42 | /* Voice calls */ |
| 43 | #define SOUND_PLAYBACK_VOICE_DEVICE 1 |
| 44 | #define SOUND_CAPTURE_VOICE_DEVICE 1 |
| 45 | |
Christopher N. Hesse | d23c6b5 | 2017-01-28 14:18:10 +0100 | [diff] [blame] | 46 | /* Unusupported |
| 47 | #define SOUND_CAPTURE_LOOPBACK_AEC_DEVICE 1 |
| 48 | #define SOUND_CAPTURE_HOTWORD_DEVICE 0 |
| 49 | */ |
| 50 | |
Andreas Schneider | dc15cec | 2017-01-30 22:36:25 +0100 | [diff] [blame] | 51 | /* |
| 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. Hesse | d23c6b5 | 2017-01-28 14:18:10 +0100 | [diff] [blame] | 57 | |
Andreas Schneider | 3b64383 | 2017-01-31 11:48:22 +0100 | [diff] [blame] | 58 | /* |
| 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 Schneider | 759368f | 2017-02-02 16:11:14 +0100 | [diff] [blame] | 64 | /* |
| 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. Hesse | d23c6b5 | 2017-01-28 14:18:10 +0100 | [diff] [blame] | 75 | #endif // SAMSUNG_AUDIO_H |