#!/bin/bash

TB_GAIN="$1"

DEVICE_PATH=/sys/bus/iio/devices
OUT_RES=out_resistance0_raw

# Talkback volume control
echo $TB_GAIN > $DEVICE_PATH/iio\:device1/$OUT_RES
echo $TB_GAIN > $DEVICE_PATH/iio\:device0/$OUT_RES

