Android-cuttlefish cvd tool
Classes | Namespaces | Macros | Enumerations | Functions | Variables
shm_layout.h File Reference
#include "cuttlefish/common/libs/utils/cf_endian.h"
Include dependency graph for shm_layout.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cuttlefish::virtio_snd_hdr
 
struct  cuttlefish::virtio_snd_query_info
 
struct  cuttlefish::virtio_snd_info
 
struct  cuttlefish::virtio_snd_jack_info
 
struct  cuttlefish::virtio_snd_chmap_info
 
struct  cuttlefish::virtio_snd_pcm_info
 
struct  cuttlefish::virtio_snd_pcm_hdr
 
struct  cuttlefish::virtio_snd_pcm_set_params
 
struct  cuttlefish::virtio_snd_pcm_xfer
 
struct  cuttlefish::virtio_snd_pcm_status
 
struct  cuttlefish::VioSConfig
 
struct  cuttlefish::IoTransferMsg
 
struct  cuttlefish::IoStatusMsg
 

Namespaces

namespace  cuttlefish
 

Macros

#define ASSERT_VALID_MSG_TYPE(T, size)    static_assert(sizeof(T) == (size), #T " has the wrong size")
 

Enumerations

enum class  cuttlefish::AudioCommandType : uint32_t {
  cuttlefish::VIRTIO_SND_R_JACK_INFO = 1 , cuttlefish::VIRTIO_SND_R_JACK_REMAP , cuttlefish::VIRTIO_SND_R_PCM_INFO = 0x0100 , cuttlefish::VIRTIO_SND_R_PCM_SET_PARAMS ,
  cuttlefish::VIRTIO_SND_R_PCM_PREPARE , cuttlefish::VIRTIO_SND_R_PCM_RELEASE , cuttlefish::VIRTIO_SND_R_PCM_START , cuttlefish::VIRTIO_SND_R_PCM_STOP ,
  cuttlefish::VIRTIO_SND_R_CHMAP_INFO = 0x0200
}
 
enum class  cuttlefish::AudioStatus : uint32_t {
  cuttlefish::VIRTIO_SND_S_OK = 0x8000 , cuttlefish::VIRTIO_SND_S_BAD_MSG , cuttlefish::VIRTIO_SND_S_NOT_SUPP , cuttlefish::VIRTIO_SND_S_IO_ERR ,
  cuttlefish::NOT_SET = static_cast<uint32_t>(-1)
}
 
enum class  cuttlefish::AudioStreamDirection : uint8_t { cuttlefish::VIRTIO_SND_D_OUTPUT = 0 , cuttlefish::VIRTIO_SND_D_INPUT }
 
enum class  cuttlefish::AudioStreamFormat : uint8_t {
  cuttlefish::VIRTIO_SND_PCM_FMT_IMA_ADPCM = 0 , cuttlefish::VIRTIO_SND_PCM_FMT_MU_LAW , cuttlefish::VIRTIO_SND_PCM_FMT_A_LAW , cuttlefish::VIRTIO_SND_PCM_FMT_S8 ,
  cuttlefish::VIRTIO_SND_PCM_FMT_U8 , cuttlefish::VIRTIO_SND_PCM_FMT_S16 , cuttlefish::VIRTIO_SND_PCM_FMT_U16 , cuttlefish::VIRTIO_SND_PCM_FMT_S18_3 ,
  cuttlefish::VIRTIO_SND_PCM_FMT_U18_3 , cuttlefish::VIRTIO_SND_PCM_FMT_S20_3 , cuttlefish::VIRTIO_SND_PCM_FMT_U20_3 , cuttlefish::VIRTIO_SND_PCM_FMT_S24_3 ,
  cuttlefish::VIRTIO_SND_PCM_FMT_U24_3 , cuttlefish::VIRTIO_SND_PCM_FMT_S20 , cuttlefish::VIRTIO_SND_PCM_FMT_U20 , cuttlefish::VIRTIO_SND_PCM_FMT_S24 ,
  cuttlefish::VIRTIO_SND_PCM_FMT_U24 , cuttlefish::VIRTIO_SND_PCM_FMT_S32 , cuttlefish::VIRTIO_SND_PCM_FMT_U32 , cuttlefish::VIRTIO_SND_PCM_FMT_FLOAT ,
  cuttlefish::VIRTIO_SND_PCM_FMT_FLOAT64 , cuttlefish::VIRTIO_SND_PCM_FMT_DSD_U8 , cuttlefish::VIRTIO_SND_PCM_FMT_DSD_U16 , cuttlefish::VIRTIO_SND_PCM_FMT_DSD_U32 ,
  cuttlefish::VIRTIO_SND_PCM_FMT_IEC958_SUBFRAME
}
 
enum  cuttlefish::AudioStreamRate : uint8_t {
  cuttlefish::VIRTIO_SND_PCM_RATE_5512 = 0 , cuttlefish::VIRTIO_SND_PCM_RATE_8000 , cuttlefish::VIRTIO_SND_PCM_RATE_11025 , cuttlefish::VIRTIO_SND_PCM_RATE_16000 ,
  cuttlefish::VIRTIO_SND_PCM_RATE_22050 , cuttlefish::VIRTIO_SND_PCM_RATE_32000 , cuttlefish::VIRTIO_SND_PCM_RATE_44100 , cuttlefish::VIRTIO_SND_PCM_RATE_48000 ,
  cuttlefish::VIRTIO_SND_PCM_RATE_64000 , cuttlefish::VIRTIO_SND_PCM_RATE_88200 , cuttlefish::VIRTIO_SND_PCM_RATE_96000 , cuttlefish::VIRTIO_SND_PCM_RATE_176400 ,
  cuttlefish::VIRTIO_SND_PCM_RATE_192000 , cuttlefish::VIRTIO_SND_PCM_RATE_384000
}
 
enum  cuttlefish::AudioChannelMap : uint8_t {
  cuttlefish::VIRTIO_SND_CHMAP_NONE = 0 , cuttlefish::VIRTIO_SND_CHMAP_NA , cuttlefish::VIRTIO_SND_CHMAP_MONO , cuttlefish::VIRTIO_SND_CHMAP_FL ,
  cuttlefish::VIRTIO_SND_CHMAP_FR , cuttlefish::VIRTIO_SND_CHMAP_RL , cuttlefish::VIRTIO_SND_CHMAP_RR , cuttlefish::VIRTIO_SND_CHMAP_FC ,
  cuttlefish::VIRTIO_SND_CHMAP_LFE , cuttlefish::VIRTIO_SND_CHMAP_SL , cuttlefish::VIRTIO_SND_CHMAP_SR , cuttlefish::VIRTIO_SND_CHMAP_RC ,
  cuttlefish::VIRTIO_SND_CHMAP_FLC , cuttlefish::VIRTIO_SND_CHMAP_FRC , cuttlefish::VIRTIO_SND_CHMAP_RLC , cuttlefish::VIRTIO_SND_CHMAP_RRC ,
  cuttlefish::VIRTIO_SND_CHMAP_FLW , cuttlefish::VIRTIO_SND_CHMAP_FRW , cuttlefish::VIRTIO_SND_CHMAP_FLH , cuttlefish::VIRTIO_SND_CHMAP_FCH ,
  cuttlefish::VIRTIO_SND_CHMAP_FRH , cuttlefish::VIRTIO_SND_CHMAP_TC , cuttlefish::VIRTIO_SND_CHMAP_TFL , cuttlefish::VIRTIO_SND_CHMAP_TFR ,
  cuttlefish::VIRTIO_SND_CHMAP_TFC , cuttlefish::VIRTIO_SND_CHMAP_TRL , cuttlefish::VIRTIO_SND_CHMAP_TRR , cuttlefish::VIRTIO_SND_CHMAP_TRC ,
  cuttlefish::VIRTIO_SND_CHMAP_TFLC , cuttlefish::VIRTIO_SND_CHMAP_TFRC , cuttlefish::VIRTIO_SND_CHMAP_TSL , cuttlefish::VIRTIO_SND_CHMAP_TSR ,
  cuttlefish::VIRTIO_SND_CHMAP_LLFE , cuttlefish::VIRTIO_SND_CHMAP_RLFE , cuttlefish::VIRTIO_SND_CHMAP_BC , cuttlefish::VIRTIO_SND_CHMAP_BLC ,
  cuttlefish::VIRTIO_SND_CHMAP_BRC
}
 
enum  cuttlefish::AudioJackFeatures : uint8_t { cuttlefish::VIRTIO_SND_JACK_F_REMAP = 0 }
 

Functions

 cuttlefish::ASSERT_VALID_MSG_TYPE (virtio_snd_query_info, 16)
 
 cuttlefish::ASSERT_VALID_MSG_TYPE (virtio_snd_jack_info, 24)
 
 cuttlefish::ASSERT_VALID_MSG_TYPE (virtio_snd_chmap_info, 24)
 
 cuttlefish::ASSERT_VALID_MSG_TYPE (virtio_snd_pcm_info, 32)
 
 cuttlefish::ASSERT_VALID_MSG_TYPE (virtio_snd_pcm_set_params, 24)
 
 cuttlefish::ASSERT_VALID_MSG_TYPE (virtio_snd_pcm_hdr, 8)
 
 cuttlefish::ASSERT_VALID_MSG_TYPE (IoTransferMsg, 12)
 
 cuttlefish::ASSERT_VALID_MSG_TYPE (IoStatusMsg, 16)
 

Variables

constexpr uint8_t cuttlefish::VIRTIO_SND_CHMAP_MAX_SIZE = 18
 
const uint32_t cuttlefish::VIOS_VERSION = 2
 

Macro Definition Documentation

◆ ASSERT_VALID_MSG_TYPE

#define ASSERT_VALID_MSG_TYPE (   T,
  size 
)     static_assert(sizeof(T) == (size), #T " has the wrong size")