Skip to contentSkip to conversation

Query about SNDRV_PCM_FORMAT_GSM

DISCUSSION Patrick Lai 3 participants 4 messages Jun 22, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I see SNDRV_PCM_FORMAT_GSM is defined in asound.h. However, I do not find any reference to this macro except pcm_misc.c. I am curious how bps info(i.e 4.75 kbit/s) is passed down to the ALSA driver. Any pointers?

Thanks
Patrick

Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
#1 lore raw

At Wed, 22 Jun 2011 00:39:27 -0700,

Quoted 7 lines · Patrick Lai

Hi,

I see SNDRV_PCM_FORMAT_GSM is defined in asound.h. However, I do not find any reference to this macro except pcm_misc.c. I am curious how bps info(i.e 4.75 kbit/s) is passed down to the ALSA driver. Any pointers?

This is a vapor format until now, just reserved for the future implementation :)

Takashi

#2 lore raw
Quoted 9 lines · Takashi Iwai
Quoted 4 lines · Patrick Lai

I see SNDRV_PCM_FORMAT_GSM is defined in asound.h. However, I do not find any reference to this macro except pcm_misc.c. I am curious how bps info(i.e 4.75 kbit/s) is passed down to the ALSA driver. Any pointers?

This is a vapor format until now, just reserved for the future implementation :)

It may make sense to handle this in a similar way to MP3s and so on - the Intel guys were working on generalising the interface in their out of tree driver to be usable for other things, though they've not posted anything yet.

#3 lore raw

At Wed, 22 Jun 2011 12:58:33 +0100,

Quoted 9 lines · Mark Brown
Quoted 6 lines · Takashi Iwai
Quoted 4 lines · Patrick Lai

I see SNDRV_PCM_FORMAT_GSM is defined in asound.h. However, I do not find any reference to this macro except pcm_misc.c. I am curious how bps info(i.e 4.75 kbit/s) is passed down to the ALSA driver. Any pointers?

Quoted 7 lines
Quoted 2 lines

This is a vapor format until now, just reserved for the future implementation :)

It may make sense to handle this in a similar way to MP3s and so on - the Intel guys were working on generalising the interface in their out of tree driver to be usable for other things, though they've not posted anything yet.

Yeah, this has been worked since years ago, so it'd be great if it comes out finally. Then we need to settle down the proper definition of these non-standard formats.

Takashi