struct task *t)
{
struct writer_node *wn = container_of(t, struct writer_node, task);
struct private_oss_write_data *powd = wn->private_data;
struct btr_node *btrn = wn->btrn;
size_t frames, bytes;
struct task *t)
{
struct writer_node *wn = container_of(t, struct writer_node, task);
struct private_oss_write_data *powd = wn->private_data;
struct btr_node *btrn = wn->btrn;
size_t frames, bytes;
if (!powd) {
int32_t rate, ch, format;
get_btr_sample_rate(btrn, &rate);
if (!powd) {
int32_t rate, ch, format;
get_btr_sample_rate(btrn, &rate);
ret = oss_init(wn, rate, ch, format);
if (ret < 0)
goto out;
ret = oss_init(wn, rate, ch, format);
if (ret < 0)
goto out;
}
btr_merge(btrn, wn->min_iqs);
bytes = btr_next_buffer(btrn, &data);
}
btr_merge(btrn, wn->min_iqs);
bytes = btr_next_buffer(btrn, &data);
w->close = oss_close;
w->pre_select = oss_pre_select;
w->post_select = oss_post_select;
w->parse_config_or_die = oss_parse_config_or_die;
w->free_config = oss_free_config;
w->close = oss_close;
w->pre_select = oss_pre_select;
w->post_select = oss_post_select;
w->parse_config_or_die = oss_parse_config_or_die;
w->free_config = oss_free_config;
w->help = (struct ggo_help) {
.short_help = oss_write_args_info_help,
.detailed_help = oss_write_args_info_detailed_help
};
w->help = (struct ggo_help) {
.short_help = oss_write_args_info_help,
.detailed_help = oss_write_args_info_detailed_help
};