repo_name string | dataset string | owner string | lang string | func_name string | code string | docstring string | url string | sha string |
|---|---|---|---|---|---|---|---|---|
SBEMU | github_2023 | crazii | c | snd_trident_spdif_default_info | static int snd_trident_spdif_default_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958;
uinfo->count = 1;
return 0;
} | /*---------------------------------------------------------------------------
snd_trident_spdif_default
Description: put/get the S/PDIF default settings
---------------------------------------------------------------------------*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L2469-L2475 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_spdif_mask_info | static int snd_trident_spdif_mask_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958;
uinfo->count = 1;
return 0;
} | /*---------------------------------------------------------------------------
snd_trident_spdif_mask
Description: put/get the S/PDIF mask
---------------------------------------------------------------------------*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L2531-L2537 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_spdif_stream_info | static int snd_trident_spdif_stream_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958;
uinfo->count = 1;
return 0;
} | /*---------------------------------------------------------------------------
snd_trident_spdif_stream
Description: put/get the S/PDIF stream settings
---------------------------------------------------------------------------*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L2564-L2570 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_vol_control_info | static int snd_trident_vol_control_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
uinfo->count = 2;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 255;
return 0;
} | /*---------------------------------------------------------------------------
snd_trident_vol_control
Description: wave & music volume control
---------------------------------------------------------------------------*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L2677-L2685 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_pcm_vol_control_info | static int snd_trident_pcm_vol_control_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
struct snd_trident *trident = snd_kcontrol_chip(kcontrol);
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
uinfo->count = 1;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 255;
if (trident-... | /*---------------------------------------------------------------------------
snd_trident_pcm_vol_control
Description: PCM front volume control
---------------------------------------------------------------------------*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L2747-L2759 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_pcm_pan_control_info | static int snd_trident_pcm_pan_control_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
uinfo->count = 1;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 127;
return 0;
} | /*---------------------------------------------------------------------------
snd_trident_pcm_pan_control
Description: PCM front pan control
---------------------------------------------------------------------------*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L2815-L2823 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_pcm_rvol_control_info | static int snd_trident_pcm_rvol_control_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
uinfo->count = 1;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 127;
return 0;
} | /*---------------------------------------------------------------------------
snd_trident_pcm_rvol_control
Description: PCM reverb volume control
---------------------------------------------------------------------------*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L2878-L2886 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_pcm_cvol_control_info | static int snd_trident_pcm_cvol_control_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
uinfo->count = 1;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 127;
return 0;
} | /*---------------------------------------------------------------------------
snd_trident_pcm_cvol_control
Description: PCM chorus volume control
---------------------------------------------------------------------------*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L2936-L2944 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_mixer | static int snd_trident_mixer(struct snd_trident *trident, int pcm_spdif_device)
{
struct snd_ac97_template _ac97;
struct snd_card *card = trident->card;
struct snd_kcontrol *kctl;
#if 0
struct snd_ctl_elem_value *uctl;
#endif
int idx, err, retries = 2;
#if 0
static struct snd_ac97_bus_ops ops = {
.write = snd_t... | /*---------------------------------------------------------------------------
snd_trident_mixer
Description: This routine registers the 4DWave device for mixer support.
Parameters: trident - pointer to target device class for 4DWave.
Returns: None
-----------------------------... | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3056-L3225 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | do_delay | static inline void do_delay(struct snd_trident *chip)
{
//schedule_timeout_uninterruptible(1);
udelay(1);
} | /* CONFIG_GAMEPORT */
/*
* delay for 1 tick
*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3331-L3335 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_sis_reset | static int snd_trident_sis_reset(struct snd_trident *trident)
{
unsigned long end_time;
unsigned int i;
int r;
r = trident->in_suspend ? 0 : 2; /* count of retries */
__si7018_retry:
pci_write_config_byte(trident->pci, 0x46, 0x04); /* SOFTWARE RESET */
udelay(100);
pci_write_config_byte(trident->pci, 0x46... | /*
* SiS reset routine
*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3341-L3389 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_proc_read | static void snd_trident_proc_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{
struct snd_trident *trident = entry->private_data;
char *s;
switch (trident->device) {
case TRIDENT_DEVICE_ID_SI7018:
s = "SiS 7018 Audio";
break;
case TRIDENT_DEVICE_ID_DX:
s = "Trident 4DWave PCI DX";
... | /*
* /proc interface
*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3396-L3429 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_tlb_alloc | static int snd_trident_tlb_alloc(struct snd_trident *trident)
{
int i;
/* TLB array must be aligned to 16kB !!! so we allocate
32kB region and correct offset when necessary */
if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(trident->pci),
2 * SNDRV_TRIDENT_MAX_PAGES * 4, &trident->tlb.buffer) ... | /*---------------------------------------------------------------------------
snd_trident_tlb_alloc
Description: Allocate and set up the TLB page table on 4D NX.
Each entry has 4 bytes (physical PCI address).
Parameters: trident - pointer to target device class for 4DWave.
Returns: ... | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3461-L3501 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_stop_all_voices | static void snd_trident_stop_all_voices(struct snd_trident *trident)
{
outl(0xffffffff, TRID_REG(trident, T4D_STOP_A));
outl(0xffffffff, TRID_REG(trident, T4D_STOP_B));
outl(0, TRID_REG(trident, T4D_AINTEN_A));
outl(0, TRID_REG(trident, T4D_AINTEN_B));
} | /*
* initialize 4D DX chip
*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3507-L3513 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_4d_nx_init | static int snd_trident_4d_nx_init(struct snd_trident *trident)
{
struct pci_dev *pci = trident->pci;
unsigned long end_time;
/* reset the legacy configuration and whole audio/wavetable block */
pci_write_config_dword(pci, 0x40, 0); /* DDMA */
pci_write_config_byte(pci, 0x44, 0); /* ports */
pci_write_config_byte... | /*
* initialize 4D NX chip
*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3555-L3608 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_sis_init | static int snd_trident_sis_init(struct snd_trident *trident)
{
int err;
if ((err = snd_trident_sis_reset(trident)) < 0)
return err;
snd_trident_stop_all_voices(trident);
/* initialize S/PDIF */
outl(trident->spdif_bits, TRID_REG(trident, SI_SPDIF_CS));
return 0;
} | /*
* initialize sis7018 chip
*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3613-L3626 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_create | int snd_trident_create(struct snd_card *card,
struct pci_dev *pci,
int pcm_streams,
int pcm_spdif_device,
int max_wavetable_size,
struct snd_trident ** rtrident)
{
struct snd_trident *trident;
int i, err;
struct snd_trident_voice *voice;
struct snd_trident_pcm_mixer *tmi... | /*---------------------------------------------------------------------------
snd_trident_create
Description: This routine will create the device specific class for
the 4DWave card. It will also perform basic initialization.
Parameters: card - which card to create
... | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3666-L3806 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_free | int snd_trident_free(struct snd_trident *trident)
{
snd_trident_free_gameport(trident);
snd_trident_disable_eso(trident);
// Disable S/PDIF out
if (trident->device == TRIDENT_DEVICE_ID_NX)
outb(0x00, TRID_REG(trident, NX_SPCTRL_SPCSO + 3));
else if (trident->device == TRIDENT_DEVICE_ID_SI7018) {
outl(0, TRID_R... | /*---------------------------------------------------------------------------
snd_trident_free
Description: This routine will free the device specific class for
the 4DWave card.
Parameters: trident - device specific private data for 4DWave card
Returns: None.
... | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3820-L3844 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_interrupt | irqreturn_t snd_trident_interrupt(int irq, void *dev_id)
{
struct snd_trident *trident = dev_id;
unsigned int audio_int, chn_int, stimer, channel, mask, tmp;
int delta;
struct snd_trident_voice *voice;
audio_int = inl(TRID_REG(trident, T4D_MISCINT));
if ((audio_int & (ADDRESS_IRQ|MPU401_IRQ)) == 0)
return IRQ_... | /*---------------------------------------------------------------------------
snd_trident_interrupt
Description: ISR for Trident 4DWave device
Parameters: trident - device specific private data for 4DWave card
Problems: It seems that Trident chips generates interrupts more than
... | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_main.c#L3864-L3961 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | set_tlb_bus | static inline void set_tlb_bus(struct snd_trident *trident, int page,
unsigned long ptr, dma_addr_t addr)
{
page <<= 1;
__set_tlb_bus(trident, page, ptr, addr);
__set_tlb_bus(trident, page+1, ptr + SNDRV_TRIDENT_PAGE_SIZE, addr + SNDRV_TRIDENT_PAGE_SIZE);
} | /* fill TLB entries -- we need to fill two entries */ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_memory.c#L73-L79 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | set_tlb_bus | static inline void set_tlb_bus(struct snd_trident *trident, int page,
unsigned long ptr, dma_addr_t addr)
{
int i;
page *= UNIT_PAGES;
for (i = 0; i < UNIT_PAGES; i++, page++) {
__set_tlb_bus(trident, page, ptr, addr);
ptr += SNDRV_TRIDENT_PAGE_SIZE;
addr += SNDRV_TRIDENT_PAGE_SIZE;
}
} | /* fill TLB entries -- UNIT_PAGES entries must be filled */ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_memory.c#L103-L113 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | is_valid_page | static int is_valid_page(unsigned long ptr)
{
if (ptr & ~0x3fffffffUL) {
snd_printk(KERN_ERR "max memory size is 1GB!!\n");
return 0;
}
if (ptr & (SNDRV_TRIDENT_PAGE_SIZE-1)) {
snd_printk(KERN_ERR "page is not aligned\n");
return 0;
}
return 1;
} | /*
* check if the given pointer is valid for pages
*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_memory.c#L173-L184 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_trident_free_pages | int snd_trident_free_pages(struct snd_trident *trident,
struct snd_util_memblk *blk)
{
struct snd_util_memhdr *hdr;
int page;
if (snd_BUG_ON(!trident || !blk))
return -EINVAL;
hdr = trident->tlb.memhdr;
mutex_lock(&hdr->block_mutex);
/* reset TLB entries */
for (page = firstpg(blk); page <= lastpg(blk)... | /*
* release DMA buffer from page table
*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/drivers/trident/trident_memory.c#L297-L315 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | mdma_ISA_bufpos_test | static unsigned int mdma_ISA_bufpos_test(struct mpxplay_audioout_info_s *aui)
{
unsigned int last=MDma_ISA_getbufpos(aui),retry;
retry=10;
do{
if(last!=MDma_ISA_getbufpos(aui))
return 1;
delay(10);
}while(--retry);
return 0;
} | //------------------------------------------------------------------------- | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/dmairq.c#L376-L386 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | pcibios_GetBus | static uint8_t pcibios_GetBus(void)
{
union REGS reg;
pcibios_clear_regs(reg);
reg.h.ah = PCI_FUNCTION_ID;
reg.h.al = PCI_BIOS_PRESENT;
reg.w.cflag=1;
int386(PCI_SERVICE, ®, ®);
if(reg.w.cflag)
return 0;
return 1;
} | //just to make vscode happy | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/pcibios.c#L37-L53 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | pcibios_search_devices | uint8_t pcibios_search_devices(pci_device_s devices[],pci_config_s *ppkey)
{
if(pcibios_GetBus()){
unsigned int i=0;
while(devices[i].vendor_id){
if(pcibios_FindDevice(devices[i].vendor_id,devices[i].device_id,ppkey)==PCI_SUCCESSFUL){
if(ppkey){
ppkey->device_name=devices[i].device_name;
ppkey->de... | //_MSC_VER | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/pcibios.c#L82-L98 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | pcibios_ReadConfig_Byte | uint8_t pcibios_ReadConfig_Byte(pci_config_s * ppkey, uint16_t wAdr)
{
union REGS reg;
pcibios_clear_regs(reg);
reg.h.ah = PCI_FUNCTION_ID;
reg.h.al = PCI_READ_BYTE;
reg.h.bh = ppkey->bBus;
reg.h.bl = PCIDEVFUNC(ppkey->bDev, ppkey->bFunc);
reg.w.di = wAdr;
int386(PCI_SERVICE, ®, ®);
return reg.h.cl... | //BIOS INT service may freeze on some PC (tested a 845M laptop), use pure IOs. | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/pcibios.c#L101-L115 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | ALS4000_writeMIXER | static void ALS4000_writeMIXER (struct mpxplay_audioout_info_s *aui, unsigned long reg, unsigned long val)
{
struct als4000_card_s *card = aui->card_private_data;
als4000dbg("write mixer val: %X\n", val);
} | // XXX need to defer writing until start is called??? | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_als4000.c#L167-L171 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | CMI8X38_writeMIXER | static void CMI8X38_writeMIXER(struct mpxplay_audioout_info_s *aui,unsigned long reg, unsigned long val)
{
struct cmi8x38_card *card=aui->card_private_data;
//_LOG("write mixer: %x, %x->%x\n", reg, snd_cmipci_mixer_read(card,reg), val);
snd_cmipci_mixer_write(card,reg,val);
} | //--------------------------------------------------------------------------
//mixer | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_cmi.c#L944-L949 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_es1371_wait_src_ready | static unsigned int snd_es1371_wait_src_ready(struct ensoniq_card_s *card)
{
unsigned int t, r = 0;
for (t = 0; t < POLL_COUNT; t++) {
r = inl(card->port + ES_REG_1371_SMPRATE);
if ((r & ES_1371_SRC_RAM_BUSY) == 0)
return r;
}
mpxplay_debugf(ENS_DEBUG_OUTPUT,"wait_src_ready timeout r=%8.8X",r);
return 0;
} | //-------------------------------------------------------------------------
// low level write & read | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_e1371.c#L129-L140 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_es1371_buffer_init | static unsigned int snd_es1371_buffer_init(struct ensoniq_card_s *card,struct mpxplay_audioout_info_s *aui)
{
unsigned int bytes_per_sample=2; // 16 bit
card->pcmout_bufsize=MDma_get_max_pcmoutbufsize(aui,0,ES1371_DMABUF_ALIGN,bytes_per_sample,0);
card->dm=MDma_alloc_cardmem(card->pcmout_bufsize);
card->pcmout_buff... | //------------------------------------------------------------------------- | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_e1371.c#L326-L335 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | ES1371_getbufpos | static long ES1371_getbufpos(struct mpxplay_audioout_info_s *aui)
{
struct ensoniq_card_s *card=aui->card_private_data;
unsigned long bufpos=0;
if(inl(card->port + ES_REG_CONTROL) & ES_DAC1_EN) {
outl((card->port + ES_REG_MEM_PAGE), ES_MEM_PAGEO(ES_PAGE_DAC));
bufpos = ES_REG_FCURR_COUNTI(inl(card->port + ES_REG... | //------------------------------------------------------------------------ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_e1371.c#L585-L598 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | ES1371_writeMIXER | static void ES1371_writeMIXER(struct mpxplay_audioout_info_s *aui,unsigned long reg, unsigned long val)
{
struct ensoniq_card_s *card=aui->card_private_data;
snd_es1371_codec_write(card,reg,val);
} | //--------------------------------------------------------------------------
//mixer | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_e1371.c#L603-L607 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | INTELICH_writedata | static void INTELICH_writedata(struct mpxplay_audioout_info_s *aui,char *src,unsigned long left)
{
struct intel_card_s *card=aui->card_private_data;
MDma_writedata(aui,src,left);
} | //------------------------------------------------------------------------ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_ich.c#L718-L723 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | INTELICH_writeMIXER | static void INTELICH_writeMIXER(struct mpxplay_audioout_info_s *aui,unsigned long reg, unsigned long val)
{
struct intel_card_s *card=aui->card_private_data;
mpxplay_debugf(ICH_DEBUG_OUTPUT,"writeMIXER %X %X", reg, val);
snd_intel_codec_write(card,reg,val);
} | //--------------------------------------------------------------------------
//mixer | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_ich.c#L787-L792 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | update_pci_byte | static void update_pci_byte(pci_config_s *pci, unsigned int reg,
unsigned char mask, unsigned char val)
{
unsigned char data;
data=pcibios_ReadConfig_Byte(pci, reg);
data &= ~mask;
data |= (val & mask);
pcibios_WriteConfig_Byte(pci, reg, data);
} | //------------------------------------------------------------------------- | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_inthd.c#L136-L145 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | azx_corb_start | static void azx_corb_start(struct intelhd_card_s *chip, int confirm)
{
int timeout = 2000;
azx_writeb(chip, CORBCTL, CORBRUN); //start corb
// https://www.intel.com/content/dam/www/public/us/en/documents/product-specifications/high-definition-audio-specification.pdf
// According to page 37, when enabling DMA, y... | //------------------------------------------------------------------------- | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_inthd.c#L190-L208 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_hda_get_sub_nodes | static unsigned int snd_hda_get_sub_nodes(struct intelhd_card_s *card, hda_nid_t nid,
hda_nid_t *start_id)
{
int parm;
parm = snd_hda_param_read(card, nid, AC_PAR_NODE_COUNT);
if(parm<0)
return 0;
*start_id = (parm >> 16) & 0xff;
return (parm & 0xff);
} | //------------------------------------------------------------------------ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_inthd.c#L520-L530 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | azx_reset | static unsigned int azx_reset(struct intelhd_card_s *chip)
{
int timeout;
mpxplay_debugf(IHD_DEBUG_OUTPUT,"azx reset_start: gctl1:%8.8X",azx_readl(chip, GCTL));
#if SBEMU_USE_CORB
azx_corb_stop(chip); //spec require corb stopped before reset(set CRST=0). this might be needed after a DOS hot reset
#endif
azx_writ... | //------------------------------------------------------------------------ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_inthd.c#L875-L927 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_hda_get_max_freq | static unsigned long snd_hda_get_max_freq(struct intelhd_card_s *card)
{
unsigned long i,freq=0;
for(i=0; rate_bits[i].hz; i++)
if((card->supported_formats&(1<<i)) && (rate_bits[i].hz<0xffffffff))
freq=rate_bits[i].hz;
return freq;
} | //------------------------------------------------------------------------- | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_inthd.c#L930-L937 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_ihd_buffer_init | static unsigned int snd_ihd_buffer_init(struct mpxplay_audioout_info_s *aui,struct intelhd_card_s *card)
{
unsigned int bytes_per_sample=(aui->bits_set>16)? 4:2;
#if SBEMU_USE_CORB
unsigned long allbufsize=BDL_SIZE+1024 + (HDA_CORB_MAXSIZE+HDA_CORB_ALIGN+HDA_RIRB_MAXSIZE+HDA_RIRB_ALIGN);
#else
unsigned long allbufsi... | //-------------------------------------------------------------------------
// init & close | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_inthd.c#L953-L1009 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | INTELHD_writeMIXER | static void INTELHD_writeMIXER(struct mpxplay_audioout_info_s *aui,unsigned long reg, unsigned long val)
{
struct intelhd_card_s *card=aui->card_private_data;
snd_hda_put_vol_mute(card,reg,0,HDA_OUTPUT,0,val&0x7f); //force clear mute bit(7)
snd_hda_put_vol_mute(card,reg,1,HDA_OUTPUT,0,val&0x7f); //force clear mute b... | //--------------------------------------------------------------------------
//mixer | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_inthd.c#L1621-L1626 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_ca0106_ptr_read | static unsigned int snd_ca0106_ptr_read(struct emu10k1_card *card,unsigned int reg,unsigned int chn)
{
unsigned int regptr, val;
regptr = (reg << 16) | chn;
outl(card->iobase + PTR, regptr);
val = inl(card->iobase + DATA);
return val;
} | // AUDIGYLS_USE_AC97
//-------------------------------------------------------------------- | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbl24.c#L76-L86 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_live24_mixer_read | static unsigned int snd_live24_mixer_read(struct emu10k1_card *card,unsigned int reg)
{
unsigned int channel_id=reg>>8;
reg&=0xff;
return snd_ca0106_ptr_read(card,reg,channel_id);
} | // Live 24 cards have no ac97 | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbl24.c#L356-L361 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_emu10k1_hw_init | static void snd_emu10k1_hw_init(struct emu10k1_card *card)
{
int ch;
uint32_t silent_page;
// disable audio and lock cache
emu10k1_writefn0(card,HCFG,HCFG_LOCKSOUNDCACHE | HCFG_LOCKTANKCACHE_MASK | HCFG_MUTEBUTTONENABLE);
// reset recording buffers
emu10k1_writeptr(card, MICBS, 0, ADCBS_BUFSIZE_NONE);
emu10k1_... | //-----------------------------------------------------------------------
// init & close | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbliv.c#L116-L332 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_emu_set_spdif_freq | static void snd_emu_set_spdif_freq(struct emu10k1_card *card,unsigned long freq)
{
uint32_t tmp=emu10k1_readptr(card,A_SPDIF_SAMPLERATE,0) & (~A_SPDIF_RATE_MASK);
switch(freq){
case 44100 :tmp|= A_SPDIF_44100;break;
case 96000 :tmp|= A_SPDIF_96000;break;
case 192000:tmp|= A_SPDIF_192000;break;
default :tmp... | //--------------------------------------------------------------------------
// mixer (FX) | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbliv.c#L378-L388 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_emu_ac97_init | static void snd_emu_ac97_init(struct emu10k1_card *card)
{
snd_emu_ac97_write(card, AC97_RESET, 0); // resets the volumes too
snd_emu_ac97_read(card, AC97_RESET);
// initial ac97 volumes (and clear mute flag)
snd_emu_ac97_write(card, AC97_MASTER_VOL_STEREO, 0x0202);
snd_emu_ac97_write(card, AC97_SURROUND_MASTER, ... | /*static void snd_emu_ac97_unmute(struct emu10k1_card *card,unsigned int reg)
{
uint32_t tmp=snd_emu_ac97_read(card,reg);
tmp&=~AC97_MUTE;
snd_emu_ac97_write(card,reg,tmp);
}*/ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbliv.c#L417-L435 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | emu10k1_clear_stop_on_loop | static void emu10k1_clear_stop_on_loop(struct emu10k1_card *card, uint32_t voicenum)
{
if (voicenum >= 32)
emu10k1_writeptr(card, SOLEH | ((0x0100 | (voicenum - 32)) << 16), 0, 0);
else
emu10k1_writeptr(card, SOLEL | ((0x0100 | voicenum) << 16), 0, 0);
} | //--------------------------------------------------------------------------
// emu10kx (k1,k2) routines | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbliv.c#L550-L556 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_emu10k1_selector | static unsigned int snd_emu10k1_selector(struct emu10k1_card *card,struct mpxplay_audioout_info_s *aui)
{
if(card->chips&EMU_CHIPS_10K1)
return 1;
return 0;
} | //------------------------------------------------------------------------
//emu10kx api (SB Live 5.1, SB Audigy 1,2,4) | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbliv.c#L786-L791 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | hw_read_20kx | static inline uint32_t hw_read_20kx(struct emu20kx_card_s *card,uint32_t reg)
{
outl(card->iobase + 0x0,reg);
return ((uint32_t)inl(card->iobase + 0x4));
} | //------------------------------------------------------------------------- | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbxfi.c#L224-L228 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | uint16_to_float14 | static unsigned int uint16_to_float14(unsigned int x)
{
unsigned int i;
if(x < 17)
return 0;
x *= 2031;
x /= 65535;
x += 16;
for (i = 0; !(x & 0x400); i++)
x <<= 1;
x = (((7 - i) & 0x7) << 10) | (x & 0x3ff);
return x;
} | // Map integer value ranging from 0 to 65535 to 14-bit float value ranging from 2^-6 to (1+1023/1024) | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbxfi.c#L318-L335 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | set_interval_timer | static void set_interval_timer(struct emu20kx_card_s *card, int msecs)
{
int tic = (HARDWARE_RATE*msecs)/1000;
hw_write_20kx (card, TIMR, tic | TIMR_IE|TIMR_IP);
} | //------------------------------------------------------------------------- | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbxfi.c#L356-L361 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | hw_reset_dac | static int hw_reset_dac(struct emu20kx_card_s *card)
{
uint32_t i = 0;
uint16_t gpioorg = 0;
unsigned int ret = 0;
if(i2c_unlock(card))
return -1;
do{
ret = hw_read_pci(card, 0xEC);
}while(!(ret & 0x800000));
hw_write_pci(card, 0xEC, 0x05); /* write to i2c status control */
/* To be effective, need to r... | /* DAC operations */ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbxfi.c#L462-L493 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_emu20kx_set_output_format | static void snd_emu20kx_set_output_format(struct emu20kx_card_s *card,struct mpxplay_audioout_info_s *aui)
{
switch(aui->card_wave_id){
case MPXPLAY_WAVEID_PCM_FLOAT:card->sfnum=SRC_SF_F32;break;
default:
switch(aui->bits_card){
case 32:card->sfnum=SRC_SF_S32;break;
case 24:card->sfnum=SRC_SF_S24;break;... | //-------------------------------------------------------------------------
/*#include "ac97_def.h"
#define AC97D 0x1C5400
#define AC97A 0x1C5404
static void emu20kx_ac97_write(struct emu20kx_card_s *card,unsigned int reg,unsigned int data)
{
hw_write_20kx(card,AC97A,reg);
hw_write_20kx(card,A... | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbxfi.c#L570-L610 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_emu20kx_buffer_init | static unsigned int snd_emu20kx_buffer_init(struct emu20kx_card_s *card,struct mpxplay_audioout_info_s *aui)
{
unsigned int bytes_per_sample=((aui->bits_set>16) || (aui->card_wave_id==MPXPLAY_WAVEID_PCM_FLOAT))? 4:2;
uint32_t pagecount,pcmbufp;
card->pcmout_bufsize=MDma_get_max_pcmoutbufsize(aui,0,EMU20KX_PAGESIZE,... | //------------------------------------------------------------------------- | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbxfi.c#L615-L642 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | EMU20KX_getbufpos | static long EMU20KX_getbufpos(struct mpxplay_audioout_info_s *aui)
{
struct emu20kx_card_s *card=aui->card_private_data;
unsigned long bufpos=0,ctl_ca;
ctl_ca=hw_read_20kx(card, SRCCA+card->src_idx*0x100);
bufpos=get_field(ctl_ca, SRCCA_CA);
bufpos=(bufpos + aui->card_dmasize - card->max_cisz - (unsigned long)ca... | //------------------------------------------------------------------------ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbxfi.c#L891-L906 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | EMU20KX_writeMIXER | static void EMU20KX_writeMIXER(struct mpxplay_audioout_info_s *aui,unsigned long reg, unsigned long val)
{
//struct emu20kx_card_s *card=aui->card_private_data;
} | //--------------------------------------------------------------------------
//mixer | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_sbxfi.c#L911-L914 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | via82xx_ReadAC97Codec_sub | static unsigned long via82xx_ReadAC97Codec_sub(unsigned int baseport)
{
unsigned long d0;
int retry = 2048;
do{
d0 = inl(baseport + VIA_REG_AC97_CTRL);
if( (d0 & VIA_REG_AC97_PRIMARY_VALID) != 0 )
break;
pds_delay_10us(1);
}while(--retry);
d0 = inl(baseport + VIA_REG_AC97_CTRL);
return d0;
} | //--------------------------------------------------------------------------
//mixer | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_via82.c#L464-L478 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | YMF_close | static void YMF_close (struct mpxplay_audioout_info_s *aui)
{
#if YMF_DEBUG
DBG_Logi("YMF_close\n");
#endif
struct ymf_card_s *card = aui->card_private_data;
if (card) {
if (card->iobase) {
pds_dpmi_unmap_physycal_memory(card->iobase);
}
}
if (card->dm)
MDma_free_cardmem(card->dm);
if (car... | // SIEN:IMOD 0:0 = legacy irq, 0:1 = INTA, 1:0 = serialized IRQ | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_ymf.c#L346-L365 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_ymfpci_timer_start | static int snd_ymfpci_timer_start (struct mpxplay_audioout_info_s *aui)
{
struct ymf_card_s *card = aui->card_private_data;
unsigned long flags;
unsigned int count;
spin_lock_irqsave(&card->reg_lock, flags);
count = 480; // 5ms: 0.005/(1/96000)
snd_ymfpci_writew(card, YDSXGR_TIMERCOUNT, count);
snd_ymfpc... | // .resolution = 10417, // 1 / 96 kHz = 10.41666...us
// .ticks = 0x10000, | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_ymf.c#L943-L956 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | YMF_mixer_init | void YMF_mixer_init (struct ymf_card_s *card)
{
#define IEC958_AES0_CON_EMPHASIS_NONE (0<<3) // none emphasis
#define IEC958_AES1_CON_ORIGINAL (1<<7) // depends on the category code
#define IEC958_AES1_CON_DIGDIGCONV_ID 0x02
#define IEC958_AES1_CON_PCM_CODER (IEC958_AES1_CON_DIGDIGCONV_ID|0x00)
#define IEC958_A... | // PCM | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_ymf.c#L971-L1019 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | snd_ymfpci_playback_prepare | static int snd_ymfpci_playback_prepare (struct mpxplay_audioout_info_s *aui)
{
//struct snd_pcm_runtime *runtime = substream->runtime;
struct ymf_card_s *card = aui->card_private_data;
//struct snd_ymfpci_pcm *ypcm = runtime->private_data;
//struct snd_kcontrol *kctl;
unsigned int nvoice;
//ypcm->period_si... | //static int snd_ymfpci_playback_prepare (struct snd_pcm_substream *substream) | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/mpxplay/au_cards/sc_ymf.c#L1752-L1773 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | DBG_Logv | void DBG_Logv(const char* fmt, va_list aptr)
{
#define SIZE (DUMP_BUFF_SIZE*4)
char buf[SIZE];
int len = vsprintf(buf, fmt, aptr);
assert(len < SIZE);
len = min(len, SIZE-1);
buf[len] = '\0';
if (ser_puts(buf)) {
return;
}
if(!(CPU_FLAGS()&CPU_IFLAG))
{ //use VGA when i... | //needs to work in interrupt handler. now use IN/OUT controls VGA directly. | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/sbemu/dpmi/dbgutil.c#L130-L173 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | DPMI_InitTSR | BOOL DPMI_InitTSR(uint32_t base, uint32_t newbase, uint32_t* outputp poffset, uint32_t* outputp psize)
{
if(poffset == NULL || psize == NULL)
return 0;
if(*poffset == 0 || *psize == 0)
{
int fd = open(__dos_argv0, O_RDONLY|O_BINARY, S_IRUSR);
BOOL ok = fd >= 0;
uint16_t MZ6[3... | //copy self to new linear base (relloc)
//poffset: start offset of code/data with current segment base addr
//psize: total size starting at current segment base addr | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/sbemu/dpmi/dpmi_tsr.c#L55-L192 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
SBEMU | github_2023 | crazii | c | DPMI_ShutdownTSR | BOOL DPMI_ShutdownTSR(void)
{
volatile uint32_t PreventOptimize;//prevent optimization out code after ljmp
asm __volatile__("xor %0, %0":"=r"(PreventOptimize) : :"memory");
if(PreventOptimize)
goto switch_back;
uint32_t fjmp[2] = {(uintptr_t)&&switch_back, ProgramOldCS};
uintptr_t olden... | //enable normal exit, if fails out before TSR | https://github.com/crazii/SBEMU/blob/f0cbde063396deb2c1246c9b3108a37755c68e9a/sbemu/dpmi/dpmi_tsr.c#L195-L242 | f0cbde063396deb2c1246c9b3108a37755c68e9a |
kurento | github_2023 | Kurento | c | send_dummy_event | static void
send_dummy_event (GstPad * pad)
{
GstElement *parent = gst_pad_get_parent_element (pad);
if (parent == NULL) {
return;
}
if (GST_PAD_IS_SINK (pad)) {
gst_pad_send_event (pad,
gst_event_new_custom (GST_EVENT_TYPE_DOWNSTREAM |
GST_EVENT_TYPE_SERIALIZED,
gst_st... | /*
* This function sends a dummy event to force blocked probe to be called
*/ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/kmsagnosticbin.c#L157-L179 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | remove_element_on_unlinked | static void
remove_element_on_unlinked (GstElement * element, const gchar * pad_name,
gchar * sink_name)
{
GstPad *pad = gst_element_get_static_pad (element, pad_name);
if (pad == NULL) {
return;
}
g_signal_connect (pad, "unlinked", G_CALLBACK (remove_on_unlinked_cb),
sink_name);
g_object_unr... | /* Sink name should be static memory */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/kmsagnosticbin.c#L309-L323 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_agnostic_bin2_link_pad | static void
kms_agnostic_bin2_link_pad (KmsAgnosticBin2 * self, GstPad * pad, GstPad * peer)
{
GstCaps *pad_caps, *peer_caps;
GstBin *bin;
GST_TRACE_OBJECT (self, "Linking: %" GST_PTR_FORMAT
" to %" GST_PTR_FORMAT, pad, peer);
// FIXME: There is a corner case not well covered by current implementation t... | /**
* Link a pad internally
*
* @self: The #KmsAgnosticBin2 owner of the pad
* @pad: (transfer full): The pad to be linked
* @peer: (transfer full): The peer pad
*/ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/kmsagnosticbin.c#L789-L842 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_agnostic_bin2_process_pad | static gboolean
kms_agnostic_bin2_process_pad (KmsAgnosticBin2 * self, GstPad * pad)
{
GstPad *peer = NULL;
if (!GST_OBJECT_FLAG_IS_SET (pad, KMS_AGNOSTIC_PAD_STARTED)) {
return FALSE;
}
if (!self->priv->started) {
return FALSE;
}
GST_TRACE_OBJECT (self, "Processing pad: %" GST_PTR_FORMAT, pad);
... | /**
* Process a pad for connecting or disconnecting, it should be always called
* with the agnostic lock hold.
*
* @self: The #KmsAgnosticBin2 owner of the pad
* @pad: The pad to be processed
*/ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/kmsagnosticbin.c#L851-L902 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | ext_data_destroy | static void
ext_data_destroy (ExtData * edata)
{
g_slice_free (ExtData, edata);
} | /* RtpMediaConfig end */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasertpendpoint.c#L189-L193 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | on_offer_media_direction | static GstSDPDirection
on_offer_media_direction (KmsSdpMediaDirectionExt * ext,
KmsBaseRtpEndpoint * self)
{
GstSDPDirection offer_dir;
g_object_get (self, "offer-dir", &offer_dir, NULL);
return offer_dir;
} | /* RTP hdrext end */
/* Media handler management begin */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasertpendpoint.c#L497-L506 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_base_rtp_endpoint_request_local_key_frame | static gboolean
kms_base_rtp_endpoint_request_local_key_frame (KmsBaseRtpEndpoint * self)
{
GstPad *pad;
GstEvent *event;
gboolean ret;
GST_DEBUG_OBJECT (self, "Forcing a new keyframe request");
pad =
gst_element_get_static_pad (self->priv->rtpbin,
VIDEO_RTPBIN_SEND_RTP_SRC);
if (pad == NULL) ... | /* Start Transport Send end */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasertpendpoint.c#L1160-L1190 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_base_rtp_endpoint_connect_input_elements | static void
kms_base_rtp_endpoint_connect_input_elements (KmsBaseSdpEndpoint *
base_endpoint, KmsSdpSession * sess)
{
KmsBaseRtpEndpoint *self = KMS_BASE_RTP_ENDPOINT (base_endpoint);
KmsBaseRtpSession *base_rtp_sess = KMS_BASE_RTP_SESSION (sess);
guint i, len;
len = gst_sdp_message_medias_len (sess->neg_s... | /* Payloading configuration end */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasertpendpoint.c#L1611-L1648 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | connection_state_changed | static void
connection_state_changed (KmsSdpSession * sess, guint new_state,
KmsBaseRtpEndpoint * self)
{
g_signal_emit (self, obj_signals[CONNECTION_STATE_CHANGED], 0, sess->id_str,
new_state);
} | /* Connect input elements end */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasertpendpoint.c#L1652-L1658 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_base_rtp_endpoint_jitterbuffer_set_latency | static void
kms_base_rtp_endpoint_jitterbuffer_set_latency (GstElement * jitterbuffer,
gint latency)
{
GstPad *src_pad;
GST_INFO_OBJECT (jitterbuffer, "Add probe: Set jitterbuffer latency");
src_pad = gst_element_get_static_pad (jitterbuffer, "src");
gst_pad_add_probe (src_pad,
GST_PAD_PROBE_TYPE_BU... | // Latency is set only when there are actual buffers flowing out | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasertpendpoint.c#L1993-L2007 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | ssrcs_are_mapped | static gboolean
ssrcs_are_mapped (GstElement * ssrcdemux,
guint32 local_ssrc, guint32 remote_ssrc)
{
GstElement *rtcpdemux =
g_object_get_qdata (G_OBJECT (ssrcdemux), rtcp_demux_peer_quark ());
guint local_ssrc_pair;
g_signal_emit_by_name (rtcpdemux, "get-local-rr-ssrc-pair", remote_ssrc,
&local_... | /* Connection management end */
/* Start Transport Send begin */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasertpsession.c#L282-L294 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_base_rtp_session_enable_connection_stats | static void
kms_base_rtp_session_enable_connection_stats (gpointer key, gpointer value,
gpointer user_data)
{
kms_i_rtp_connection_collect_latency_stats (KMS_I_RTP_CONNECTION (value),
TRUE);
} | /* Start Transport Send end */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasertpsession.c#L784-L790 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_base_sdp_endpoint_configure_media | static gboolean
kms_base_sdp_endpoint_configure_media (KmsSdpAgent * agent,
KmsSdpMediaHandler * handler, GstSDPMedia * media, gpointer user_data)
{
KmsSdpSession *sess = KMS_SDP_SESSION (user_data);
KmsBaseSdpEndpointClass *base_sdp_endpoint_class =
KMS_BASE_SDP_ENDPOINT_CLASS (G_OBJECT_GET_CLASS (sess->... | /* KmsSdpSession begin */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasesdpendpoint.c#L122-L138 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_base_sdp_endpoint_create_media_handler_impl | static void
kms_base_sdp_endpoint_create_media_handler_impl (KmsBaseSdpEndpoint * self,
const gchar * media, KmsSdpMediaHandler ** handler)
{
KmsBaseSdpEndpointClass *klass =
KMS_BASE_SDP_ENDPOINT_CLASS (G_OBJECT_GET_CLASS (self));
if (klass->create_media_handler ==
kms_base_sdp_endpoint_create_med... | /* KmsSdpSession end */
/* Media handler management begin */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsbasesdpendpoint.c#L316-L328 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | check_caps_probe | static GstPadProbeReturn
check_caps_probe (GstPad * pad, GstPadProbeInfo * info, gpointer data)
{
int width, height;
GstCaps *filter_caps, *caps;
GstElement *element;
GstStructure *st;
gboolean needs_filter = FALSE;
GstEvent *event = gst_pad_probe_info_get_event (info);
if (GST_EVENT_TYPE (event) != GST_... | /*
* FIXME: This is a hack to make x264 work.
*
* We have notice that x264 doesn't work if width or height is odd,
* so we force a rescale increasing one pixel that dimension
* when we detect this situation.
*/ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsenctreebin.c#L457-L504 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_remb_local_on_sending_rtcp | static gboolean
kms_remb_local_on_sending_rtcp (GObject *rtpsession,
GstBuffer *buffer, gboolean is_early, KmsRembLocal *self)
{
gboolean ret = FALSE;
GstClockTime current_time, elapsed;
KmsRTCPPSFBAFBREMBPacket remb_packet;
GstRTCPBuffer rtcp = {0,};
GstRTCPPacket packet;
guint packet_ssrc;
AddSsrcsD... | // Signal "RTPSession::on-sending-rtcp" doc: GStreamer/rtpsession.c | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsremb.c#L452-L530 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | is_remb | static gboolean
is_remb (KmsRTCPPSFBAFBPacket * packet)
{
GstMapInfo map = packet->rtcp_psfb_afb->map;
guint8 *fci = map.data;
if (map.size < 4) {
return FALSE;
}
return (memcmp (fci, "REMB", 4) == 0);
} | /* REMB begin */
// Receiver Estimated Max Bitrate (REMB) (draft-alvestrand-rmcat-remb).
//
// 0 1 2 3
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
// |V=2|P| FMT=15... | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsrtcp.c#L75-L86 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_rtcp_psfb_afb_remb_get_packet | gboolean
kms_rtcp_psfb_afb_remb_get_packet (KmsRTCPPSFBAFBPacket * afb_packet,
KmsRTCPPSFBAFBREMBPacket * remb_packet)
{
GstMapInfo map;
guint length;
guint8 *fci, *fci_end, br_exp;
guint32 br_mantissa;
int i;
g_return_val_if_fail (afb_packet != NULL, FALSE);
g_return_val_if_fail (afb_packet->type ==... | /* Inspired in The WebRTC project */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsrtcp.c#L121-L177 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | compute_mantissa_and_6_bit_base_2_expoonent | static gboolean
compute_mantissa_and_6_bit_base_2_expoonent (guint32 input_base10,
guint8 bits_mantissa, guint32 * mantissa, guint8 * exp)
{
guint32 mantissa_max;
guint8 exponent = 0;
gint i;
/* input_base10 = mantissa * 2^exp */
if (bits_mantissa > 32) {
GST_ERROR ("bits_mantissa must be <= 32");
... | /* Inspired in The WebRTC project */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsrtcp.c#L180-L207 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_utils_bin_remove | void
kms_utils_bin_remove (GstBin * bin, GstElement * element)
{
GST_DEBUG ("Remove %" GST_PTR_FORMAT " from %" GST_PTR_FORMAT, element, bin);
if (!gst_element_set_locked_state (element, TRUE)) {
GST_ERROR ("Cannot lock element %" GST_PTR_FORMAT, element);
}
gst_element_set_state (element, GST_STATE_NULL)... | /* ---- GstBin ---- */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsutils.c#L112-L125 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | is_dropping | static inline gboolean
is_dropping (GstPad * pad)
{
return GPOINTER_TO_INT (g_object_get_qdata (G_OBJECT (pad),
dropping_until_key_frame_quark ()));
} | /* Call this function holding the lock */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsutils.c#L335-L340 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | set_dropping | static inline void
set_dropping (GstPad * pad, gboolean dropping)
{
g_object_set_qdata (G_OBJECT (pad), dropping_until_key_frame_quark (),
GINT_TO_POINTER (dropping));
} | /* Call this function holding the lock */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsutils.c#L343-L348 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | send_dummy_event | static void
send_dummy_event (GstPad * pad, const gchar * name)
{
GstElement *parent = gst_pad_get_parent_element (pad);
if (parent == NULL) {
return;
}
if (GST_PAD_IS_SINK (pad)) {
gst_pad_send_event (pad,
gst_event_new_custom (GST_EVENT_TYPE_DOWNSTREAM |
GST_EVENT_TYPE_SERIALIZED... | /*
* This function sends a dummy event to force blocked probe to be called
*/ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsutils.c#L696-L716 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_utils_get_time_nsecs | GstClockTime
kms_utils_get_time_nsecs ()
{
GstClockTime time;
time = g_get_monotonic_time () * GST_USECOND;
return time;
} | /* REMB event end */
/* time begin */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsutils.c#L1088-L1096 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_utils_contains_proto | gboolean
kms_utils_contains_proto (const gchar * search_term, const gchar * proto)
{
gchar *pattern;
GRegex *regex;
gboolean ret;
pattern = g_strdup_printf ("(%s|.+/%s|%s/.+|.+/%s/.+)", proto, proto, proto,
proto);
regex = g_regex_new (pattern, 0, 0, NULL);
ret = g_regex_match (regex, search_term, G_... | /* time end */
/* RTP connection end */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/kmsutils.c#L1102-L1117 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_sdp_agent_add_proto_handler | gint
kms_sdp_agent_add_proto_handler (KmsSdpAgent * agent, const gchar * media,
KmsSdpMediaHandler * handler, GError ** error)
{
g_return_val_if_fail (KMS_IS_SDP_AGENT (agent), -1);
return KMS_SDP_AGENT_GET_CLASS (agent)->add_proto_handler (agent, media,
handler, error);
} | /* TODO: rename to _add_media_handler */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/src/gst-plugins/commons/sdpagent/kmssdpagent.c#L2130-L2138 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | remove_audiotestsrc | static gboolean
remove_audiotestsrc (GstElement * audiotestsrc)
{
GstElement *pipeline = GST_ELEMENT (gst_element_get_parent (audiotestsrc));
GST_DEBUG ("Remove element %" GST_PTR_FORMAT, audiotestsrc);
gst_object_ref (audiotestsrc);
gst_element_set_locked_state (audiotestsrc, TRUE);
gst_element_set_state (... | // ENABLE_EXPERIMENTAL_TESTS | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-core/tests/check/element/audiomixerbin.c#L241-L258 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_player_endpoint_disable_latency_probe | static void
kms_player_endpoint_disable_latency_probe (KmsPlayerEndpoint * self)
{
GstPad *pad;
if (self->priv->stats.src == NULL || self->priv->stats.meta_id == 0UL) {
return;
}
pad = gst_element_get_static_pad (self->priv->stats.src, "src");
if (pad == NULL) {
GST_WARNING_OBJECT (self, "No source... | /* This function must be called holding the element mutex */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-elements/src/gst-plugins/kmsplayerendpoint.c#L287-L308 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_player_endpoint_enable_latency_probe | static void
kms_player_endpoint_enable_latency_probe (KmsPlayerEndpoint * self)
{
GstPad *pad;
if (self->priv->stats.src == NULL) {
GST_DEBUG_OBJECT (self, "No source element for stats is yet available");
return;
}
pad = gst_element_get_static_pad (self->priv->stats.src, "src");
if (pad == NULL) {
... | /* This function must be called holding the element mutex */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-elements/src/gst-plugins/kmsplayerendpoint.c#L311-L335 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | recv_sample | static GstFlowReturn
recv_sample (GstAppSink * appsink, gpointer user_data)
{
KmsRecorderEndpoint *self =
KMS_RECORDER_ENDPOINT (GST_OBJECT_PARENT (appsink));
KmsUriEndpointState state = KMS_URI_ENDPOINT_STATE_STOP;
BaseTimeType *base_time = NULL;
GstCaps *caps = NULL;
gboolean unlock_element = FALSE;
... | // Adjust timestamps to avoid gaps created by paused recordings. | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-elements/src/gst-plugins/recorderendpoint/kmsrecorderendpoint.c#L274-L451 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_recorder_endpoint_send_eos_to_appsrcs | static guint
kms_recorder_endpoint_send_eos_to_appsrcs (KmsRecorderEndpoint * self)
{
guint size;
KMS_ELEMENT_UNLOCK (self);
SRCS_LOCK (self);
size = g_hash_table_size (self->priv->srcs);
if (size == 0) {
kms_base_media_muxer_set_state (self->priv->mux, GST_STATE_NULL);
goto end;
}
kms_base_me... | /*
* It should be always called with the element lock hold.
*/ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-elements/src/gst-plugins/recorderendpoint/kmsrecorderendpoint.c#L553-L576 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_rtp_endpoint_set_addr | static void
kms_rtp_endpoint_set_addr (KmsRtpEndpoint * self)
{
GList *ips, *l;
gboolean done = FALSE;
ips = nice_interfaces_get_local_ips (FALSE);
for (l = ips; l != NULL && !done; l = l->next) {
GInetAddress *addr;
gboolean is_ipv6 = FALSE;
GST_DEBUG_OBJECT (self, "Check local address: %s", (con... | /* Internal session management begin */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-elements/src/gst-plugins/rtpendpoint/kmsrtpendpoint.c#L321-L375 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | get_max_key_size | static guint
get_max_key_size (SrtpCryptoSuite crypto)
{
switch (crypto) {
case KMS_SDES_EXT_AES_CM_128_HMAC_SHA1_32:
case KMS_SDES_EXT_AES_CM_128_HMAC_SHA1_80:
return KMS_SRTP_CIPHER_AES_CM_128_SIZE;
case KMS_SDES_EXT_AES_256_CM_HMAC_SHA1_32:
case KMS_SDES_EXT_AES_256_CM_HMAC_SHA1_80:
ret... | /* Internal session management end */
/* Media handler management begin */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-elements/src/gst-plugins/rtpendpoint/kmsrtpendpoint.c#L408-L421 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_rtp_endpoint_configure_connection_keys | static void
kms_rtp_endpoint_configure_connection_keys (KmsRtpEndpoint * self,
KmsRtpBaseConnection * conn, const gchar * media)
{
SdesKeys *sdes_keys;
KMS_ELEMENT_LOCK (self);
sdes_keys = g_hash_table_lookup (self->priv->sdes_keys, media);
if (sdes_keys == NULL) {
GST_ERROR_OBJECT (self, "No keys co... | /* Media handler management end */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-elements/src/gst-plugins/rtpendpoint/kmsrtpendpoint.c#L698-L724 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
kurento | github_2023 | Kurento | c | kms_rtp_endpoint_configure_media | static gboolean
kms_rtp_endpoint_configure_media (KmsBaseSdpEndpoint * base_sdp_endpoint,
KmsSdpSession * sess, KmsSdpMediaHandler * handler, GstSDPMedia * media)
{
KmsRtpEndpoint *self = KMS_RTP_ENDPOINT (base_sdp_endpoint);
guint conn_len, c;
guint attr_len, a;
KmsRtpBaseConnection *conn;
gboolean ret =... | /* Configure media SDP begin */ | https://github.com/Kurento/kurento/blob/b04c741488b60a10692f08d01e87b8bb08ef0300/server/module-elements/src/gst-plugins/rtpendpoint/kmsrtpendpoint.c#L727-L780 | b04c741488b60a10692f08d01e87b8bb08ef0300 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.