blob: 760d42f362827c56c7f0228da2d2ee17b38d80b5 [file] [log] [blame]
Mikhail Naganovcf824f62023-07-24 14:51:36 -07001/*
2 * Copyright (C) 2023 The Android Open Source 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#pragma once
18
Mikhail Naganovcf824f62023-07-24 14:51:36 -070019#include "alsa/Mixer.h"
20
21namespace aidl::android::hardware::audio::core::primary {
22
23class PrimaryMixer : public alsa::Mixer {
24 public:
Mikhail Naganovf5ec73e2024-10-02 11:02:52 -070025 static constexpr int kInvalidAlsaCard = -1;
26 static constexpr int kInvalidAlsaDevice = -1;
Mikhail Naganovcf824f62023-07-24 14:51:36 -070027 static constexpr int kAlsaCard = 0;
28 static constexpr int kAlsaDevice = 0;
29
30 static PrimaryMixer& getInstance();
31
32 private:
33 PrimaryMixer() : alsa::Mixer(kAlsaCard) {}
34};
35
36} // namespace aidl::android::hardware::audio::core::primary