- powd->sample_rate = conf->sample_rate_arg;
- powd->channels = conf->channels_arg;
- if (!conf->sample_rate_given) {
- int32_t rate;
- get_btr_sample_rate(btrn, &rate);
- powd->sample_rate = rate;
- }
- if (!conf->channels_given) {
- int32_t ch;
- get_btr_channels(btrn, &ch);
- powd->channels = ch;
- }
+ get_btr_sample_rate(btrn, &val);
+ powd->sample_rate = val;
+ get_btr_channels(btrn, &val);
+ powd->channels = val;
+ get_btr_sample_format(btrn, &val);
+ powd->sample_format = val;