Searched refs:stream_param (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/sound/pci/mixart/
H A Dmixart.c521 struct mixart_stream_param_desc stream_param; mixart_set_format() local
526 memset(&stream_param, 0, sizeof(stream_param)); mixart_set_format()
528 stream_param.coding_type = CT_LINEAR; mixart_set_format()
529 stream_param.number_of_channel = stream->channels; mixart_set_format()
531 stream_param.sampling_freq = chip->mgr->sample_rate; mixart_set_format()
532 if(stream_param.sampling_freq == 0) mixart_set_format()
533 stream_param.sampling_freq = 44100; /* if frequency not yet defined, use some default */ mixart_set_format()
537 stream_param.sample_type = ST_INTEGER_8; mixart_set_format()
538 stream_param.sample_size = 8; mixart_set_format()
541 stream_param.sample_type = ST_INTEGER_16LE; mixart_set_format()
542 stream_param.sample_size = 16; mixart_set_format()
545 stream_param.sample_type = ST_INTEGER_16BE; mixart_set_format()
546 stream_param.sample_size = 16; mixart_set_format()
549 stream_param.sample_type = ST_INTEGER_24LE; mixart_set_format()
550 stream_param.sample_size = 24; mixart_set_format()
553 stream_param.sample_type = ST_INTEGER_24BE; mixart_set_format()
554 stream_param.sample_size = 24; mixart_set_format()
557 stream_param.sample_type = ST_FLOATING_POINT_32LE; mixart_set_format()
558 stream_param.sample_size = 32; mixart_set_format()
561 stream_param.sample_type = ST_FLOATING_POINT_32BE; mixart_set_format()
562 stream_param.sample_size = 32; mixart_set_format()
572 stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels); mixart_set_format()
575 /* stream_param.samples_per_frame = 2; */ mixart_set_format()
576 /* stream_param.bytes_per_frame = 4; */ mixart_set_format()
577 /* stream_param.bytes_per_sample = 2; */ mixart_set_format()
579 stream_param.pipe_count = 1; /* set to 1 */ mixart_set_format()
580 stream_param.stream_count = 1; /* set to 1 */ mixart_set_format()
581 stream_param.stream_desc[0].uid_pipe = stream->pipe->group_uid; mixart_set_format()
582 stream_param.stream_desc[0].stream_idx = stream->substream->number; mixart_set_format()
586 request.data = &stream_param; mixart_set_format()
587 request.size = sizeof(stream_param); mixart_set_format()

Completed in 59 milliseconds