Lines Matching defs:format
650 static int snd_pcm_oss_format_from(int format)
652 switch (format) {
674 static int snd_pcm_oss_format_to(int format)
676 switch (format) {
837 int format, sformat, n;
877 format = snd_pcm_oss_format_from(runtime->oss.format);
881 sformat = format;
883 sformat = snd_pcm_plug_slave_format(format, &sformat_mask);
892 snd_printd("Cannot find a format!!!\n");
908 snd_pcm_oss_format_from(runtime->oss.format), 0);
913 pdprintf("client: access = %i, format = %i, channels = %i, rate = %i\n",
917 pdprintf("slave: access = %i, format = %i, channels = %i, rate = %i\n",
1041 runtime->oss.format = snd_pcm_oss_format_to(params_format(params));
1056 snd_pcm_format_set_silence(runtime->format, runtime->dma_area, bytes_to_samples(runtime, runtime->dma_bytes));
1591 snd_pcm_format_t format;
1602 format = snd_pcm_oss_format_from(runtime->oss.format);
1603 width = snd_pcm_format_physical_width(format);
1610 snd_pcm_format_set_silence(format,
1623 snd_pcm_format_set_silence(format,
1647 snd_pcm_format_set_silence(runtime->format,
1805 static int snd_pcm_oss_set_format(struct snd_pcm_oss_file *pcm_oss_file, int format)
1809 if (format != AFMT_QUERY) {
1813 if (!(formats & format))
1814 format = AFMT_U8;
1821 if (runtime->oss.format != format) {
1823 runtime->oss.format = format;
1837 return substream->runtime->oss.format;
2262 runtime->oss.format = AFMT_U8;
2265 runtime->oss.format = AFMT_S16_LE;
2268 runtime->oss.format = AFMT_MU_LAW;